Exemple #1
0
 public function __construct(&$parent)
 {
     parent::__construct();
     // Set parent
     if (is_object($parent)) {
         $this->parent = $parent;
     }
 }
 /**
  * Constructor
  */
 function __construct($id = '', $properties = null)
 {
     parent::__construct();
     //Normalize Properties
     $args = func_get_args();
     $defaults = $this->integrate_id($id);
     $properties = $this->make_properties($args, $defaults);
     //Save init properties
     $this->properties_init = $properties;
     //Set Properties
     $this->set_properties($properties);
 }
 /**
  * Constructor
  * @param string $id Unique ID for content type
  * @param array $props (optional) Type properties (optional because props can be set post-init)
  */
 public function __construct($id, $props = null)
 {
     parent::__construct();
     $this->set_id($id)->set_props($props);
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     //Init instances
     $this->fields = new SLB_Fields();
     $this->themes = new SLB_Themes($this);
     if (!is_admin()) {
         $this->template_tags = new SLB_Template_Tags($this);
     }
 }