public static function get_active_filter($cityID = 0, $categoryID = 0)
 {
     $filter = self::$active_filter;
     $merchantID = AllMerchantsPage_Controller::get_only_show_filter();
     if ($merchantID) {
         $filter .= " AND ParentID = {$merchantID}";
     }
     return $filter;
 }
 public static function get_active_filter($checkMerchant = true)
 {
     $filter = self::$active_filter;
     if ($checkMerchant) {
         $merchantID = intval(Session::get(AllMerchantsPage_Controller::get_merchant_session_param()));
         if ($merchantID) {
             $filter .= " AND ParentID = {$merchantID}";
         }
     }
     return $filter;
 }
 public static function get_active_filter($checkMerchant = true)
 {
     $filter = self::$active_filter;
     if ($checkMerchant) {
         $merchantID = AllMerchantsPage_Controller::get_only_show_filter();
         if ($merchantID) {
             $table = "MerchantPage";
             if (Versioned::current_stage() == "Live") {
                 $table .= "_Live";
             }
             $filter .= " AND " . $table . ".ID = " . ($merchantID - 0);
         }
     }
     return $filter;
 }
 public static function set_merchant_session_param($s)
 {
     self::$merchant_session_param = $s;
 }