public static function getSettings() { $ret = parent::getSettings(); $ret['favouritesModel'] = 'Kwc_FavouritesSelenium_Favourite_Model'; return $ret; }
public function testGetFavouriteComponentIds() { $componentIds = Kwc_Favourites_Component::getFavouriteComponentIds('Kwc_Favourites_Favourite_Model'); $this->assertEquals(count($componentIds), 2); }
public static function modifyComponentLink($ret, $componentId, $settings) { return $ret . '<div class="kwcFavouritesPageComponentFavouritesCount">' . count(Kwc_Favourites_Component::getFavouriteComponentIds($settings['favouritesModel'])) . '</div>'; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['favouritesModel'] = 'Kwc_Favourites_Favourite_Model'; return $ret; }