Пример #1
0
 public function __construct($name, array $options = array())
 {
     if ($name instanceof JForm) {
         foreach ($name as $property => $value) {
             $this->{$property} = $value;
         }
     } else {
         parent::__construct($name, $options);
     }
 }
Пример #2
0
 public function __construct($name, array $options = array())
 {
     parent::__construct($name, $options);
     global $ext_prefix;
     $this->ext_prefix = $ext_prefix;
 }
Пример #3
0
 /**
  * Constructor (similar to JForm)
  */
 public function __construct($name, array $options = array())
 {
     parent::__construct($name, $options);
 }
Пример #4
0
 /**
  * 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);
 }