html Library 193
Behavior 196
Email 200
Grid 200
Image 203
List 204
Menu 208
Select 209
Building Component HTML Layouts (Templates) 212
Iterative Templates 213
Table of Contents
[ v ]
Component Backend 214
Admin Form 215
Toolbar 216
Sub-Menu 222
Itemized Data 224
Pagination 224
Ordering 228
Filtering and Searching 231
Summary 241
Chapter 9: Customizing the Page 243
Application Message Queue 243
Redirects 245
Component XML Metadata Files and Menu Parameters 248
Using Menu Item Parameters 257
Modifying the Document 258
Page Title 259
Pathway/Breadcrumb 259
JavaScript 261
CSS 262
Metadata 263
Custom Header Tags 263
Translating 264
Translating Text 264
Defining Translations 265
Debugging Translations 267
Using JavaScript Effects 268
JPane 268
Tooltips 269
Fx.Slide 271
Summary 275
Chapter 10: APIs and Web Services 277
XML 277
Parsing 278
Editing 282
Saving 283
AJAX 284
Response 284
Request 286
LDAP 290
Email 294
Table of Contents
[ vi ]
File Transfer Protocol 297
Web Services 299
Building a Web Service (XML-RPC Plugin) 301
Summary 309
Chapter 11: Error Handling and Security 311
Errors, Warnings, and Notices 312
Return Values 313
Customizing Error Handling 314
Dealing with CGI Request Data 315
Preprocessing CGI Data 315
Escaping and Encoding Data 317
Escaping and Quoting Database Data 318
Encode XHTML Data 319
Regular Expressions 320
Patterns 320
Matching 322
Replacing 323
Access Control 323
Menu Item Access Control 325
Extension Access Control 325
Attacks 327
How to Avoid Common Attacks 328
Using the Session Token 328
Code Injection 329
XSS (Cross Site Scripting) 331
File System Snooping 332
Dealing with Attacks 332
Log Out and Block 333
Attack Logging 335
Notify the Site Administrator 336
Summary 337
Chapter 12: Utilities and Useful Classes 339
Dates 340
File System 345
Paths 345
Folders 347
Files 351
Archives 354
Arrays 355
Trees 359
Log Files 361
Summary 364
Table of Contents
[ vii ]
Appendix 365
Classes 365
JObject 366
Properties 366
Constructors 366
Methods 367
JUser 368
Properties 368
Constructors 369
Methods 369
JModel 372
Properties 372
Constructors 372
Methods 372
JView 374
Properties 375
Constructors 375
Methods 375
JController 378
Properties 379
Constructors 379
Methods 379
JTable 383
Properties 383
Constructors 383
Methods 384
JError 388
Methods 388
JDocument 393
Properties 393
Constructors 393
Methods 394
JApplication 398
Properties 398
Constructors 399
Methods 399
JURI 407
Properties 407
Constructors 407
Methods 407
JLanguage 411
Properties 411
Constructors 411
Methods 412
JLanguageHelper 416
Methods 416
Table of Contents
[ viii ]
JText 417
Methods 417
JElement 417
Properties 418
Constructors 418
Methods 418
JParameter 419
Properties 419
Constructors 419
Methods 420
JCache 422
Properties 422
Constructors 423
Methods 423
JMail 424
Constructors 425
Methods 425
JMailHelper 427
Methods 427
JFactory 428
Methods 428
JRegistry 431
Properties 431
Constructors 431
Methods 431
JSession 434
Properties 434
Constructors 434
Methods 435
JRoute 438
Methods 438
JMenu 438
Properties 438
Constructors 439
Methods 439
JPathway 441
Properties 441
Methods 441
JDatabase 442
Properties 442
Constructors 443
Methods 443
Parameters (Core JElements) 452
Configuration 455
Index 459
Preface
This book will guide you through the complexities of implementing components,
modules, and plugins in Joomla! 1.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25