/** * The function total count of all subscribers. * * @static * @access public * @return int The count. */ public static function getCount() { $Item = new self(); return $Item->findSize(); }
/** * The function returns count of announces by current type. * * @static * @access public * @param int $type The announce type. * @return int The count. */ public static function getCount($type = null) { $Announce = new self(); $params = array(); if ($type !== null) { $params[] = 'Type = ' . $type; } return $Announce->findSize($params); }
/** * The function returns TRUE if current link for current Object is already in Router, otherwise FALSE. * * @static * @access public * @param string $link The link. * @param object $Object The Object. * @return bool TRUE on success, FALSE on failure. */ public static function has($link, Object $Object = null) { $Router = new self(); $params = array(); $params[] = 'Link = ' . $link; if ($Object !== null) { $params[] = 'Type = ' . self::getType($Object); $params[] = 'PageId = ' . $Object->Id; } return $Router->findSize($params) > 0; }