| Category | Zend |
| Package | Zend_Ldap |
| Subpackage | Node |
| Copyright | Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |

class Zend_Ldap_Node extends Zend_Ldap_Node_Abstract implements Iterator, RecursiveIterator
| Category | Zend |
| Package | Zend_Ldap |
| Subpackage | Node |
| Copyright | Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_children | Holds an array of the current node's children |
| # $_delete | This node will be deleted |
| - $_iteratorRewind | Controls iteration status |
| # $_ldap | Holds the connection to the LDAP server if in connected mode |
| # $_new | This node will be added |
| # $_newDn | Holds the node's new DN if node is renamed |
| # $_originalData | Holds the node's orginal attributes (as loaded) |
| + create() | Factory method to create a new detached Zend_Ldap_Node for a given DN |
| + fromArray() | Factory method to create a detached Zend_Ldap_Node from array data |
| + fromLdap() | Factory method to create an attached Zend_Ldap_Node for a given DN |
| # __construct() | Constructor. |
| + __set() | Sets a LDAP attribute. |
| + __sleep() | Serialization callback |
| + __unset() | Deletes a LDAP attribute. |
| + __wakeup() | Deserialization callback |
| # _assertChangeableAttribute() | |
| # _ensureRdnAttributeValues() | Ensures that teh RDN attributes are correctly set |
| # _getDn() | Gets the DN of the current node as a Zend_Ldap_Dn. |
| # _loadData() | |
| # _markAsNew() | Marks this node as new. |
| # _markAsToBeDeleted() | Marks this node as to be deleted. |
| # _setAttribute() | Checks if the attribute can be set and sets it accordingly |
| # _setDateTimeAttribute() | Checks if the attribute can be set and sets it accordingly |
| + appendObjectClass() | Appends to the objectClass. |
| + appendToAttribute() | Appends to a LDAP attribute. |
| + appendToDateTimeAttribute() | Appends to a LDAP date/time attribute. |
| + attachLdap() | Attach node to an LDAP connection |
| + countChildren() | Count children of current node. |
| + countSubtree() | Count items in current subtree found by given filter. |
| + current() | Return the current attribute. |
| + delete() | Marks this node as to be deleted |
| + deleteAttribute() | Deletes a LDAP attribute. |
| + detachLdap() | Detach node from LDAP connection |
| + exists() | Check if node exists on LDAP. |
| + getChangedData() | Gets changed node data. |
| + getChanges() | Returns all changes made. |
| + getChildren() | Returns the children for the current node. |
| + getCurrentDn() | Gets the current DN of the current node as a Zend_Ldap_Dn. |
| + getLdap() | Gets the current LDAP connection |
| + getParent() | Returns the parent of the current node |
| + hasChildren() | Checks if current node has children. |
| + isAttached() | Checks if the current node is attached to a LDAP server. |
| + isNew() | Tells if the node is consiedered as new (not present on the server) |
| + key() | Return the attribute name. |
| + move() | {@see setDn()} |
| + next() | Move forward to next attribute. |
| + offsetSet() | Sets a LDAP attribute. |
| + offsetUnset() | Deletes a LDAP attribute. |
| + reload() | Reload node attributes from LDAP. |
| + removeDuplicatesFromAttribute() | Removes duplicate values from a LDAP attribute |
| + removeFromAttribute() | Remove given values from a LDAP attribute |
| + rename() | {@see setDn()} |
| + rewind() | Rewind the Iterator to the first attribute. |
| + searchChildren() | Gets children of current node. |
| + searchSubtree() | Search current subtree with given options. |
| + setAttribute() | Sets a LDAP attribute. |
| + setDateTimeAttribute() | Sets a LDAP date/time attribute. |
| + setDn() | Sets the new DN for this node |
| + setObjectClass() | Sets the objectClass. |
| + setPasswordAttribute() | Sets a LDAP password |
| + toLdif() | Returns a LDIF representation of the current node |
| + update() | Sends all pending changes to the LDAP server |
| + valid() | Check if there is a current attribute |
| + willBeDeleted() | Is this node going to be deleted once update() is called? |
| + willBeMoved() | Is this node going to be moved once update() is called? |
protected $_childrenprivate $_iteratorRewind = falseprotected $_ldapZend_Ldapprotected $_newDnZend_Ldap_Dnprotected $_originalData
public static function create( |
$dn)
|
Zend_Ldap_Node for a given DN.string|array| |
|
array $objectClass |
Zend_Ldap_NodeZend_Ldap_Exception
public static function fromArray( |
array $data)
|
Zend_Ldap_Node from array data.array $data |
|
boolean $fromDataSource |
Zend_Ldap_NodeZend_Ldap_Exception
public static function fromLdap( |
$dn)
|
Zend_Ldap_Node for a given DN.string|array| |
|
|
Zend_Ldap_NodeZend_Ldap_Exception
protected function __construct( |
)
|
|
|
array $data |
|
boolean $fromDataSource |
|
|
Zend_Ldap_Exception
public function __set( |
$name)
|
string $name |
|
mixed $value |
Zend_Ldap_Exception
public function __sleep( |
)
|
public function __unset( |
$name)
|
string $name |
Zend_Ldap_Exception
public function __wakeup( |
)
|
protected function _assertChangeableAttribute( |
$name)
|
protected function _ensureRdnAttributeValues( |
)
|
protected function _getDn( |
)
|
Zend_Ldap_Dn
protected function _loadData( |
array $data)
|
protected function _markAsNew( |
$new)
|
boolean $new |
protected function _markAsToBeDeleted( |
$delete)
|
boolean $delete |
protected function _setAttribute( |
$name)
|
string $name |
|
mixed $value |
|
boolean $append |
Zend_Ldap_Exception
protected function _setDateTimeAttribute( |
$name)
|
string $name |
|
integer|array $value |
|
boolean $utc |
|
boolean $append |
Zend_Ldap_Exception
public function appendObjectClass( |
$value)
|
array|string $value |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function appendToAttribute( |
$name)
|
string $name |
|
mixed $value |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function appendToDateTimeAttribute( |
$name)
|
string $name |
|
integer|array $value |
|
boolean $utc |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function attachLdap( |
)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_ExceptionZend_Ldap_Dn::isChildOf()
public function countChildren( |
)
|
Zend_Ldap_Exception
public function countSubtree( |
$filter)
|
string| |
|
integer $scope |
Zend_Ldap_Exception
public function current( |
)
|
public function delete( |
)
|
Zend_Ldap_Node *Provides a fluid interface*
public function deleteAttribute( |
$name)
|
string $name |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function detachLdap( |
)
|
Zend_Ldap_Node *Provides a fluid interface*
public function exists( |
)
|
|
Zend_Ldap_Exception
public function getChangedData( |
)
|
Zend_Ldap::add() and Zend_Ldap::update().
public function getChanges( |
)
|
public function getChildren( |
)
|
Zend_Ldap_Node_ChildrenIteratorZend_Ldap_Exception
public function getCurrentDn( |
)
|
Zend_Ldap_Dn.Zend_Ldap_Dn
public function getLdap( |
)
|
public function getParent( |
)
|
|
Zend_Ldap_NodeZend_Ldap_Exception
public function hasChildren( |
)
|
Zend_Ldap_Exception
public function isAttached( |
)
|
public function isNew( |
)
|
exits() to see if a node is already there.
public function key( |
)
|
public function move( |
$newDn)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function next( |
)
|
public function offsetSet( |
$name)
|
string $name |
|
mixed $value |
Zend_Ldap_Exception
public function offsetUnset( |
$name)
|
string $name |
Zend_Ldap_Exception
public function reload( |
)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function removeDuplicatesFromAttribute( |
$attribName)
|
string $attribName |
public function removeFromAttribute( |
$attribName)
|
string $attribName |
|
mixed|array $value |
public function rename( |
$newDn)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function rewind( |
)
|
public function searchChildren( |
$filter)
|
string| |
|
string $sort |
Zend_Ldap_Node_CollectionZend_Ldap_Exception
public function searchSubtree( |
$filter)
|
string| |
|
integer $scope |
|
string $sort |
Zend_Ldap_Node_CollectionZend_Ldap_Exception
public function setAttribute( |
$name)
|
string $name |
|
mixed $value |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function setDateTimeAttribute( |
$name)
|
string $name |
|
integer|array $value |
|
boolean $utc |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function setDn( |
$newDn)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function setObjectClass( |
$value)
|
array|string $value |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function setPasswordAttribute( |
$password)
|
string $password |
|
string $hashType |
|
string $attribName |
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function toLdif( |
array $options = array())
|
array $options |
public function update( |
)
|
|
Zend_Ldap_Node *Provides a fluid interface*Zend_Ldap_Exception
public function valid( |
)
|
public function willBeDeleted( |
)
|
public function willBeMoved( |
)
|