/** * Registers Cache hooks * * @version 2.0 * @since 1.0.0 * @author Dan Aldridge * * @param string $file Alias for Cache Store */ public function doCache($file) { $return = false; switch ($file) { case 'config': $return = $this->generate_config_cache(); break; case 'routes': $return = Core_Classes_coreObj::getRoute()->generate_cache(); break; case 'blocks': $return = Core_Classes_coreObj::getBlocks()->generate_cache(); break; case 'statistics': $return = $this->generate_stats_cache(); break; case 'plugins': $query = Core_Classes_coreObj::getDBO()->queryBuilder()->select('*')->from('#__' . $file)->build(); $this->setup($file, $query); break; } // TODO: throw a hook in here, and modify this baby so the hook can add to this switch without modifying the core code... hrm ;x - xLink if ($return !== false) { $this->writeFile($file, $return); } }
/** * Build all the blocks in the template * * @version 1.0 * @since 1.0 * @author Dan Aldridge * */ public function buildBlocks() { $objBlocks = Core_Classes_coreObj::getBlocks(); // $objBlocks->insertBlocks(); }