Parameters [options] Associative array of options
isAdmin( ) : boolean
Checks if application is administrator (client ID is 1).
Returns true if application is backend
isSite( ) : boolean
Checks if application is frontend (client ID is 0).
Returns true if application is frontend
Appendix
[ 405 ]
loadConfiguration( file : string ) : void
Loads the application configuration and sets the database debug mode.
Parameters file Path to configuration file
loadSession( name : string ) : void
Loads the session. Creates a new session, if the session does not already exist.
Parameters name Session name
login( credentials : array, options : array=array() ) : mixed
Checks Joomla! credentials. credentials must include the keys username and
password. If the login fails a warning will be raised. If any onLoginUser event handlers
return false, login will be unsuccessful.
Parameters
credentials Associative array of user credentials
[options] Options to pass to the authentication plugins
Returns true on success
logout( ) : boolean
If a user is logged-in, logs them out
Returns true on success
prependMetaTag( name : string, content : string ) : void
Deprecated; use of this method is no longer advised.
Pages:
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563