Esempio n. 1
0
 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);
         }
     }
 }