API15:JAuthentication/getInstance/ja
出典: Joomla! ドキュメンテーション
目次 |
Description
Returns a reference to a global authentication object, only creating it if it doesn't already exist.
Syntax
& getInstance()
Returns
object The global object
Defined in
libraries/joomla/user/authentication.php
Importing
jimport( 'joomla.user.authentication' );
Source Body
function & getInstance() { static $instances; if (!isset ($instances)) { $instances = array (); } if (empty ($instances[0])) { $instances[0] = new JAuthentication(); } return $instances[0]; }
Examples
<CodeExamplesForm />
