\AllMerchantsPage_Controller
Synopsis
class AllMerchantsPage_Controller
extends ProductGroup_Controller
{
- // members
- protected static string $merchant_product_session_array_name = 'merchantproductsessionarray';
- protected static string $ppp_param = 'ppp';
- protected static string $pos_param = 'pos';
- protected static string $category_param = 'category';
- protected static string $merchant_param = 'merchant';
- protected static string $city_param = 'city';
- protected static string $price_from_param = 'pricefrom';
- protected static string $price_upto_param = 'priceupto';
- protected Boolean $mydebug = false;
- protected Array $productArray = ;
- protected Int $productCount = 0;
- protected Int $productsPerPage = 4;
- protected Int $productOffSet = 0;
- protected Int $categoryID = 0;
- protected Int $merchantPageID = 0;
- protected Int $cityID = 0;
- protected Int $priceFrom = 0;
- protected Int $priceUpTo = 0;
- private static DataObjectSet $products_cache = NULL;
- private static $stage_appendix_cache = NULL;
- protected static Int $merchant_only_show_number_of_minutes = 30;
- protected static String $merchant_session_param = 'merchant';
- // methods
- public static void get_merchant_product_session_array_name()
- public static void set_merchant_product_session_array_name()
- public static void get_ppp_param()
- public static void get_pos_param()
- public static void get_category_param()
- public static void get_merchant_page_param()
- public static void get_city_param()
- public static void get_price_from_param()
- public static void get_price_upto_param()
- public void init()
- public String moreproducts()
- public void index()
- public Form FilterForm()
- public void filter()
- public DataObjectSet Products()
- public String MoreProductsLink()
- public String CurrentPageLink()
- public Int ProductCount()
- public Int CurrentlyShowing()
- protected Array variablesForTemplate()
- protected void filterGetVariables()
- protected void productLimit()
- protected void productOffSet()
- protected void productsPerPage()
- protected void sortbyAndFilterIDMaker()
- protected void stageAppendix()
- public void MyDebug()
- public static void set_merchant_only_show_number_of_minutes()
- public static void get_merchant_only_show_number_of_minutes()
- public static void set_merchant_session_param()
- public static void get_merchant_session_param()
- public static void get_only_show_filter()
- public void onlyshow()
- public void clearonlyshow()
- public void showallonlyshowlinks()
Hierarchy
Extends
- ProductGroup_Controller
Members
private
- $products_cache — DataObjectSet
- $stage_appendix_cache
protected
- $categoryID — Int
- $category_param
- $cityID — Int
- $city_param
- $merchantPageID — Int
- $merchant_only_show_number_of_minutes
—
Int
The number of minutes the site will only show the particular merchant. - $merchant_param
- $merchant_product_session_array_name
- $merchant_session_param
—
String
The session variable name used to set the merchant - $mydebug — Boolean
- $pos_param
- $ppp_param
- $priceFrom — Int
- $priceUpTo — Int
- $price_from_param
- $price_upto_param
- $productArray — Array
- $productCount — Int
- $productOffSet — Int
- $productsPerPage — Int
Methods
protected
- filterGetVariables()
- productLimit()
- productOffSet()
- productsPerPage()
- sortbyAndFilterIDMaker()
- stageAppendix()
- variablesForTemplate() — additional variables for template rendering
public
- CurrentPageLink() — link for current page
- CurrentlyShowing() — total number of products already showing
- FilterForm() — returns filter form for filtering products on page
- MoreProductsLink() — returns Link to show more products using Ajax
- MyDebug()
- ProductCount() — total number of products available for current filter
- Products()
- clearonlyshow() — action to clear the only show
- filter()
- get_category_param()
- get_city_param()
- get_merchant_only_show_number_of_minutes()
- get_merchant_page_param()
- get_merchant_product_session_array_name()
- get_merchant_session_param()
- get_only_show_filter() — Returns the ID of the Merchant set to "Only show" - if any
- get_pos_param()
- get_ppp_param()
- get_price_from_param()
- get_price_upto_param()
- index()
- init()
- moreproducts() — AJAX Controller to show products
- onlyshow() — action to show only one merchant for particular space of time
- set_merchant_only_show_number_of_minutes()
- set_merchant_product_session_array_name()
- set_merchant_session_param()
- showallonlyshowlinks()