public function __destruct() { // if (isset($this->fields)) { // $this->fields->__destruct(); // } parent::__destruct(); }
function __construct() { global $phpAnvil; parent::__construct(); $this->enableLog(); $this->_core = $phpAnvil; $this->_application = $phpAnvil->application; $this->_site = $phpAnvil->site; $this->plugins = new PluginCollection(); // $this->alerts = new anvilContainer(); $this->_webPath = $phpAnvil->site->webPath; $this->_pagePath = $this->_webPath; return true; }
public function __construct() { parent::__construct(); // $this->enableLog(); $this->_newProperties(); }
public function __construct() { $this->enableLog(); parent::__construct(); }
public function __construct($id = null, $properties = null) { parent::__construct($properties); global $phpAnvil; $this->_core = $phpAnvil; // $this->enableTrace(); //---- Unset defined properties before defining virtual versions //---- of the properties // unset($this->class); // unset($this->id); // unset($this->style); // unset($this->preClientScript); // unset($this->postClientScript); // unset($this->anvilTemplate); // unset($this->outerTemplate); // unset($this->outerTemplateID); //---- Define virtual properties. // $this->addProperty('class', ''); // $this->addProperty('id', 0); // $this->addProperty('style', ''); // // $this->addProperty('preClientScript', ''); // $this->addProperty('postClientScript', ''); // // $this->addProperty('anvilTemplate', null); // $this->addProperty('outerTemplate', ''); // $this->addProperty('outerTemplateID', ''); $this->id = $id; // $this->setProperties($properties); // return parent::__construct($properties); // $this->enableLog(); }
/** * @param $traceEnabled * (optional) Setting to TRUE will enable anvilFuse tracing. [FALSE] */ public function __construct($traceEnabled = false) { parent::__construct($traceEnabled); }