/** * Compile the module * @return void */ protected function compile() { $arrConfigs = array(); $objConfigs = Config::findMultipleByIds($this->iso_config_ids); if (null !== $objConfigs) { while ($objConfigs->next()) { $arrConfigs[] = array('config' => $objConfigs->current(), 'label' => $objConfigs->current()->getLabel(), 'active' => Isotope::getConfig()->id == $objConfigs->id ? true : false, 'href' => \Environment::get('request') . (strpos(\Environment::get('request'), '?') === false ? '?' : '&') . 'config=' . $objConfigs->id); } } \Haste\Generator\RowClass::withKey('class')->addFirstLast()->applyTo($arrConfigs); $this->Template->configs = $arrConfigs; }