public function __construct($name, array $options = array()) { if ($name instanceof JForm) { foreach ($name as $property => $value) { $this->{$property} = $value; } } else { parent::__construct($name, $options); } }
public function __construct($name, array $options = array()) { parent::__construct($name, $options); global $ext_prefix; $this->ext_prefix = $ext_prefix; }
/** * Constructor (similar to JForm) */ public function __construct($name, array $options = array()) { parent::__construct($name, $options); }
/** * constructor * * @param array $data data * @param string $path path */ public function __construct($data, $path = '') { $this->_identifier = str_replace("\\", "-", str_replace(".xml", "", str_replace(JPATH_SITE, '', $path))); $this->_identifier = str_replace('/', '-', $this->_identifier); parent::__construct($data, $path); }