1<?php 2/** 3 * Basic GUID search. 4 * 5 * PHP version 5 6 * 7 * @category Kolab 8 * @package Kolab_Server 9 * @author Gunnar Wrobel <wrobel@pardus.de> 10 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 11 * @link http://pear.horde.org/index.php?package=Kolab_Server 12 */ 13 14/** 15 * Basic GUID search. 16 * 17 * Copyright 2008-2016 Horde LLC (http://www.horde.org/) 18 * 19 * See the enclosed file COPYING for license information (LGPL). If you 20 * did not receive this file, see http://www.horde.org/licenses/lgpl21. 21 * 22 * @category Kolab 23 * @package Kolab_Server 24 * @author Gunnar Wrobel <wrobel@pardus.de> 25 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 26 * @link http://pear.horde.org/index.php?package=Kolab_Server 27 */ 28class Horde_Kolab_Server_Search_Operation_Children 29extends Horde_Kolab_Server_Search_Operation_Base 30{ 31 /** 32 * Perform the search. 33 * 34 * @param string $parent_guid The guid of the parent. 35 * @param string $objectclass The type of children to return. 36 * 37 * @return mixed The search result. 38 */ 39 public function searchChildren($parent_guid, $objectclass) 40 { 41 $criteria = new Horde_Kolab_Server_Query_Element_Equals( 42 'Objectclass', $objectclass 43 ); 44 $params = array( 45 'attributes' => Horde_Kolab_Server_Object_Top::ATTRIBUTE_GUID 46 ); 47 $data = $this->_composite->server->findBelow( 48 $criteria, $parent, $params 49 ); 50 return self::guidFromResult($data); 51 } 52}