/** * Returns an ArrayList with values for products per page, e.g. * <pre> * <select> * <% loop $SilvercartConfig.ProductsPerPageOptionsForTemplate %> * <option value="{$Option}">{$Value}</option> * <% end_loop %> * </select> * </pre> * * @return array * * @author Sebastian Diel <*****@*****.**> * @since 26.11.2014 */ public static function getProductsPerPageOptionsForTemplate() { if (is_null(self::$productsPerPageOptionsForTemplate)) { self::$productsPerPageOptionsForTemplate = new ArrayList(); $options = self::getProductsPerPageOptions(); foreach ($options as $option => $value) { self::$productsPerPageOptionsForTemplate->push(new ArrayData(array('Option' => $option, 'Value' => $value))); } } return self::$productsPerPageOptionsForTemplate; }