SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 487 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

The first of these is the default
value, and the last of these is the type to which we want to cast the retrieved value.
This table describes the different types that are supported:
Name Description
INT, INTEGER Whole number
FLOAT, DOUBLE Floating-point number
BOOL, BOOLEAN true or false
WORD String consisting of the letters A-Z (this is not case sensitive)
STRING String
ARRAY Array of mixed values
For a more comprehensive range of type-casting options, we can
use the JInputFilter class that supports ten different data types.
For a complete description of JInputFilter refer to the official API
documentation: http://api.joomla.org/Joomla-Framework/
Filter/JInputFilter.html.
The last method that we will explore is the toString() method. The most common
way in which we use this method is to produce a string that can be used to describe
attributes in an XHTML tag.
In this example, we create an image tag, which uses an array to populate its attributes:
$attributes = array();
$attributes['src'] = 'http://example.


Pages:
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6