public function getChild($name)
    {
        foreach ($this->getChildren() as $child) {
            if ($name == $child->getName()) {
                return $child;
            }
        }
        throw new DAV\Exception\NotFound('Addressbook with name \''.$name.'\' could not be found');
    }
public function getChild($name)
    {
        foreach ($this->getChildren() as $child) {
            if ($name == $child->getName()) {
                return $child;
            }
        }
        throw new DAV\Exception\NotFound('Addressbook with name \''.$name.'\' could not be found');
    }
public function getChild ( $ name ) { foreach ( $ this -> getChildren ( ) as $ child ) { if ( $ name == $ child -> getName ( ) ) { return $ child ; } } throw new DAV \ Exception \ NotFound ( 'Addressbook with name \'' . $ name . '\' could not be found' ) ; }
Returns a single addressbook, by name.

@param string $name

@todo needs optimizing

@return AddressBook
Returns a single addressbook by name .