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 504 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


When updating an existing user, array can contain any of the public properties associated
with a JUser object. If user parameters are going to be bound they must be passed in a key
named params and be in INI string format. The values are then bound to the object.
When creating a new user the username property must already be set. If password is
omitted from array a random password will be generated.
Parameters array Associative array with which to bind
Returns true on success
defParam( key : string, value : mixed) : mixed
If the user's parameter is not defined, this defines the parameter and sets the value.
Parameters key Name of the parameter
value Value of the parameter
Returns Previous value of the user's parameter
Appendix
[ 370 ]
delete( ) : boolean
Removes user from the Joomla! database.
Returns true on success
getError( ) : string
Gets the object's error log.
Returns Error log
static &getInstance( id : mixed=0 ) : JUser
Gets a reference to a global instance of a JUser object. If the object does not exist, it will
be created.


Pages:
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516