/** * adds a new group view type for product group lists to the handler. * * @param string $groupHolderView the class name of the group view to add * * @return void * * @author Sebastian Diel <*****@*****.**> * @since 14.02.2011 */ public static function addGroupHolderView($groupHolderView) { SilvercartGroupViewHandler::addGroupHolderView($groupHolderView); }
throw new Exception('Class "Page" has to extend "SilvercartPage".'); } } if (class_exists('Page_Controller')) { $ext = new ReflectionClass('Page_Controller'); if ($ext->getParentClass()->getName() != 'SilvercartPage_Controller') { throw new Exception('Class "Page_Controller" has to extend "SilvercartPage_Controller".'); } } // ---------------------------------------------------------------------------- // add possible group views // ---------------------------------------------------------------------------- SilvercartGroupViewHandler::addGroupView('SilvercartGroupViewList'); SilvercartGroupViewHandler::addGroupView('SilvercartGroupViewTile'); SilvercartGroupViewHandler::addGroupHolderView('SilvercartGroupViewList'); SilvercartGroupViewHandler::addGroupHolderView('SilvercartGroupViewTile'); // ---------------------------------------------------------------------------- // set default group view if not existant // ---------------------------------------------------------------------------- if (is_null(SilvercartGroupViewHandler::getDefaultGroupView())) { SilvercartGroupViewHandler::setDefaultGroupView('SilvercartGroupViewList'); } if (is_null(SilvercartGroupViewHandler::getDefaultGroupHolderView())) { SilvercartGroupViewHandler::setDefaultGroupHolderView('SilvercartGroupViewList'); } if (class_exists('GoogleSitemap') && method_exists('GoogleSitemap', 'register_dataobject')) { GoogleSitemap::register_dataobject('SilvercartProduct', null, '0.2'); } // ---------------------------------------------------------------------------- // add silvercart branding if no other branding is set // ----------------------------------------------------------------------------