private static function init() { if (self::$s_config == null) { self::$s_config = new myConfigWrapper("app_"); } self::$s_expiry = self::$s_config->get("feature_cache_expiry_sec"); if (self::$s_cache == NULL) { self::$s_cache = new myCache("getFeaturedTeams", self::$s_expiry); } }
public static function getIdList(&$mode, &$featured) { $keywords = @$_REQUEST["keywords"]; if (empty($keywords)) { $featured = @$_REQUEST["featured"]; } else { $featured = ""; } if ($featured == "kalturas") { // in this case it's only about kshows $mode = mySearchUtils::MODE_KSHOW; $id_list = myFeatureUtils::getFeaturedShowsIdList(); } elseif ($featured == "teams") { // in this case it's only about kshows $mode = mySearchUtils::MODE_KSHOW; $id_list = myFeatureUtils::getFeaturedTeamsIdList(); } else { $featured = NULL; $id_list = NULL; // mySearchUtils::decodeStringToList( $ids ); } return $id_list; }