Ansel_Gallery_Decorator_Date::countChildren PHP Method

countChildren() public method

Return a count of the number of children this share has
public countChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : integer
$user string The user to use for checking perms
$perm integer A Horde_Perms::* constant
$allLevels boolean 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);
    }