API16

JAuthentication/ construct: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Constructor <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Constructor
Constructor


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JAuthentication/__construct|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JAuthentication/__construct}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 29: Line 27:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JAuthentication/__construct|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JAuthentication/__construct}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=__construct
  category=__construct
  category=JAuthentication
  category=JAuthentication
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:19, 25 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

Code Examples