API16

JAuthentication/ construct: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m clean up
Line 2: Line 2:
Constructor
Constructor


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>


<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >
Line 29: Line 27:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >



Revision as of 13:39, 24 March 2017

Description

Constructor


<! removed transcluded page call, red link never existed >

Syntax

__construct()


Defined in

libraries/joomla/user/authentication.php

Importing

jimport( 'joomla.user.authentication' );

Source Body

function __construct()
{
        $isLoaded = JPluginHelper::importPlugin('authentication');

        if (!$isLoaded) {
                JError::raiseWarning('SOME_ERROR_CODE', JText::_('JAuthentication::__construct: Could not load authentication libraries.'));
        }
}


<! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />