public function __construct() { if (self::$instance === NULL) { self::$instance =& $this; self::$_restricted_names = get_config('restricted_names'); } foreach (self::$_restricted_names as $property_name) { if (property_exists($this, $property_name)) { die(__('Property ', 'tfuse') . $property_name . ' ' . __('not allowed in class:', 'tfuse') . ' ' . $this->_the_class_name); } } if (property_exists($this, '_the_class_name')) { $this->__autoload(); if (method_exists($this, '__init')) { collect_init($this->_the_class_name); } } }
/* * Autoload some helpers defined in cfg['init_helpers'] */ $cfg = get_config('init_helpers'); foreach ($cfg as $helper) { include_once TFUSE . '/helpers/' . strtoupper($helper) . '.php'; } /** * Actions and Filters */ include_once TFUSE . '/actions_and_filters.php'; /* * Now the framework has finished loading. * Do some after-loading actions. */ $inits = collect_init(NULL, TRUE); foreach ($inits as $class) { $tmp =& __load($class); $tmp->__init(); } unset($inits, $class, $tmp); function _tfuse_fix_new_options_negate($options, $type) { if ($type != 'admin' || !get_option(TF_THEME_PREFIX . '_tfuse_framework_options')) { return $options; } static $called = false; if ($called) { return $options; } $called = true;