Actions

API17

Difference between revisions of "JLDAP::compare"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JLDAP::compare|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JLDAP::compare|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JLDAP::compare ($dn, $attribute, $value)
+
public function compare (
 +
        $dn
 +
        $attribute
 +
        $value
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed result of comparison (true, false, -1 on error)
mixed result of comparison (true, false, -1 on error)
+
* '''Defined''' on line 305 of libraries/joomla/client/ldap.php
===Defined in===
+
libraries/joomla/client/ldap.php (line 305)
+
* see source code in [[jplatform:client/ldap.php#cl-305|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JLDAP::compare source code''' on [[jplatform:client/ldap.php#cl-297|BitBucket]]
 +
* {{JVer|11.1}} Class [[JLDAP/11.1|JLDAP]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Client/11.1|Client]]
 +
* [[JLDAP::compare|Other versions of JLDAP::compare]]
 +
{{SeeAlso:JLDAP::compare}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JLDAP::compare|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JLDAP::compare|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JLDAP/11.1|JLDAP]]
+
===User contributed notes===
* [[JLDAP::compare|Other versions of this method]]
+
{{SeeAlso:JLDAP::compare}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 56: Line 57:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JLDAP]][[Category:JLDAP::compare]]</noinclude>
 
<noinclude>[[Category:JLDAP]][[Category:JLDAP::compare]]</noinclude>

Revision as of 21:15, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JLDAP::compare

Description

Compare an entry and return a true or false result.

Description:JLDAP::compare [Edit Descripton]

public function compare (
        $dn
        $attribute
        $value
)
Parameter Type Default Description
$dn string dn The DN which contains the attribute you want to compare
$attribute string attribute The attribute whose value you want to compare
$value string value The value you want to check against the LDAP attribute
  • Returns mixed result of comparison (true, false, -1 on error)
  • Defined on line 305 of libraries/joomla/client/ldap.php

See also

SeeAlso:JLDAP::compare [Edit See Also]

User contributed notes

<CodeExamplesForm />