Exemplo n.º 1
0
 public static function get_instance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 protected function __construct()
 {
     parent::__construct();
     $this->elementName = $this->get_element_name();
     $this->db_key = 'upfront_' . get_stylesheet() . '_' . $this->elementName . '_presets';
     $registry = Upfront_PresetServer_Registry::get_instance();
     $registry->set($this->elementName, $this);
 }