API16

JAuthentication/ construct: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 31: Line 31:


===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=*

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