cvs: pear /Net_LDAP2/LDAP2 RootDSE.php

From: Date: Thu, 30 Apr 2009 08:02:37 +0000
Subject: cvs: pear /Net_LDAP2/LDAP2 RootDSE.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56011@lists.php.net to get a copy of this message
beni Thu Apr 30 08:02:37 2009 UTC Modified files: /pear/Net_LDAP2/LDAP2 RootDSE.php Log: * againl phpcs http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/RootDSE.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Net_LDAP2/LDAP2/RootDSE.php diff -u pear/Net_LDAP2/LDAP2/RootDSE.php:1.4 pear/Net_LDAP2/LDAP2/RootDSE.php:1.5 --- pear/Net_LDAP2/LDAP2/RootDSE.php:1.4 Thu Apr 30 07:36:21 2009 +++ pear/Net_LDAP2/LDAP2/RootDSE.php Thu Apr 30 08:02:37 2009 @@ -10,7 +10,7 @@ * @author Jan Wagner <wagner@netsols.de> * @copyright 2009 Jan Wagner * @license http://www.gnu.org/copyleft/lesser.html LGPL -* @version CVS $Id: RootDSE.php,v 1.4 2009/04/30 07:36:21 beni Exp $ +* @version CVS $Id: RootDSE.php,v 1.5 2009/04/30 08:02:37 beni Exp $ * @link http://pear.php.net/package/Net_LDAP2/ */ @@ -49,13 +49,13 @@ /** * Fetches a RootDSE object from an LDAP connection * - * @param Net_LDAP2 $ldap Directory from which the RootDSE should be fetched - * @param array $attrs Array of attributes to search for + * @param Net_LDAP2 $ldap Directory from which the RootDSE should be fetched + * @param array $attrs Array of attributes to search for * * @access static * @return Net_LDAP2_RootDSE|Net_LDAP2_Error */ - public static function fetch(&$ldap, $attrs = null) + public static function fetch($ldap, $attrs = null) { if (!$ldap instanceof Net_LDAP2) { return PEAR::raiseError("Unable to fetch Schema: Parameter \$ldap must be a Net_LDAP2 object!"); @@ -107,6 +107,7 @@ * Alias function of getValue() for perl-ldap interface * * @see getValue() + * @return mixed */ public function get_value() { @@ -124,13 +125,14 @@ */ public function supportedExtension($oids) { - return $this->_checkAttr($oids, 'supportedExtension'); + return $this->checkAttr($oids, 'supportedExtension'); } /** * Alias function of supportedExtension() for perl-ldap interface * * @see supportedExtension() + * @return boolean */ public function supported_extension() { @@ -148,13 +150,14 @@ */ public function supportedVersion($versions) { - return $this->_checkAttr($versions, 'supportedLDAPVersion'); + return $this->checkAttr($versions, 'supportedLDAPVersion'); } /** * Alias function of supportedVersion() for perl-ldap interface * * @see supportedVersion() + * @return boolean */ public function supported_version() { @@ -172,13 +175,14 @@ */ public function supportedControl($oids) { - return $this->_checkAttr($oids, 'supportedControl'); + return $this->checkAttr($oids, 'supportedControl'); } /** * Alias function of supportedControl() for perl-ldap interface * * @see supportedControl() + * @return boolean */ public function supported_control() { @@ -196,13 +200,14 @@ */ public function supportedSASLMechanism($mechlist) { - return $this->_checkAttr($mechlist, 'supportedSASLMechanisms'); + return $this->checkAttr($mechlist, 'supportedSASLMechanisms'); } /** * Alias function of supportedSASLMechanism() for perl-ldap interface * * @see supportedSASLMechanism() + * @return boolean */ public function supported_sasl_mechanism() { @@ -219,7 +224,7 @@ * @access protected * @return boolean */ - public function _checkAttr($values, $attr) + protected function checkAttr($values, $attr) { if (!is_array($values)) $values = array($values);

« previous php.pear.cvs (#56011) next »