JLDAP/ construct: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Constructor
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Des... |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Constructor | Constructor | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 46: | Line 44: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===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=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
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