示例#1
0
文件: Date.php 项目: raz0rsdge/horde
 /**
  * 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);
 }