/** * Return a count of the number of children this share has * * @param string $user The user to use for checking perms * @param integer $perm A Horde_Perms::* constant * @param boolean $allLevels Count grandchildren or just children * * @return integer The number of child shares */ public function countChildren($user, $perm = Horde_Perms::SHOW, $allLevels = true) { return $this->_gallery->getShareOb()->countShares($user, $perm, null, $this, $allLevels); }