Beispiel #1
0
 /**
  * Конструктор категорий
  * @return null
  */
 public function __construct()
 {
     if (!self::$c && (self::$c = cache::o()->read('categories')) === false) {
         self::cats2array();
         cache::o()->write(self::$c);
     }
     tpl::o()->register_modifier("print_cats", array($this, 'print_selected'));
 }