JLDAP/ construct: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 48: | Line 48: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JLDAP | category=JLDAP | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:51, 25 March 2017
Description
Constructor
<! removed transcluded page call, red link never existed >
Syntax
__construct($configObj=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $configObj | null | An object of configuration variables public |
Defined in
libraries/joomla/client/ldap.php
Importing
jimport( 'joomla.client.ldap' );
Source Body
function __construct($configObj = null)
{
if (is_object($configObj))
{
$vars = get_class_vars(get_class($this));
foreach (array_keys($vars) as $var)
{
if (substr($var, 0, 1) != '_') {
if ($param = $configObj->get($var)) {
$this-> $var = $param;
}
}
}
}
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples