*/ /** * Klasa ThemeCssPeer * * @package stThemePlugin * @subpackage lib */ class ThemeCssPeer extends BaseThemeCssPeer { /** * Tablica z css'ami tematów graficznych * @var array */ protected static $css = array(); /** * Pobieranie dostępnych css'ów dla tematu graficznego * * @param int $id Numer id tematu graficznego * @return array */ public static function doSelectByThemeId($id) { if (!isset(self::$css[$id])) { $c = new Criteria(); $c->add(ThemeCssPeer::THEME_ID, $id); $fc = new stFunctionCache('stThemePlugin'); self::$css[$id] = $fc->cacheCall(array('ThemeCssPeer', 'doSelect'), array($c), array('namespace' => 'model')); } return self::$css[$id]; } /** * Przeciążanie funkcji onDelete * * @param mixed $values * @param PropelConnection $con */ public static function doDelete($values, $con = null) { $stCache = new stFunctionCache('stThemePlugin'); $stCache->removeAll(); parent::doDelete($values, $con); } }