Ejemplo n.º 1
0
 function __construct($data, $element, $path, $type = 'opctracking')
 {
     $this->_type = $type;
     //if (method_exists('JParameter', 'getInstance'))
     //return JParameter::getInstance($element, $path);
     JParameter::__construct($element, $path);
     $this->bind($data);
 }
Ejemplo n.º 2
0
 /**
  * modified
  */
 public function __construct($data = '', $path = '')
 {
     parent::__construct($data);
     jimport('joomla.form.form');
     JForm::addFormPath($path);
     $form =& JForm::getInstance('templateDetails', JPATH_ADMINISTRATOR . '/templates/rt_missioncontrol/templateDetails.xml', array(), true, '//config');
     $this->_form = $form;
 }
Ejemplo n.º 3
0
 /**
  * modified
  */
 function __construct($data, $path = '')
 {
     parent::__construct($data);
     if ($path) {
         $this->loadSetupFile($path);
     }
     // Set base path
     $this->_elementPath[] = JPATH_SITE . DS . 'libraries' . DS . 'joomla' . DS . 'html' . DS . 'parameter' . DS . 'element';
 }
Ejemplo n.º 4
0
 /**
  * This constructor is overloaded to accept XML setup data directly
  *
  * @access	protected
  * @param	string The raw parms text
  * @param	string The xml setup data
  * @since	1.5
  */
 function __construct($data, $xmldata = '')
 {
     parent::__construct('_default');
     if (trim($data)) {
         $this->loadINI($data);
     }
     if (!empty($xmldata)) {
         $this->loadSetupData($xmldata);
     }
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  *
  * @access	protected
  * @param	string The raw parms text
  * @param	string Path to the xml setup file
  * @param	string Namespace to the xml setup file
  * @since	1.5
  */
 function __construct($data, $path = '', $namespace)
 {
     parent::__construct('_default');
     // Set base path
     $this->_elementPath[] = JPATH_COMPONENT_ADMINISTRATOR . DS . 'elements';
     if (trim($data)) {
         $this->loadINI($data);
     }
     if ($path) {
         $this->loadSetupFile($path);
     }
     if ($namespace) {
         $this->namespace = $namespace;
     }
     $this->_raw = $data;
 }
Ejemplo n.º 6
0
 function __construct($data = null, $path = '', $keys = null)
 {
     parent::__construct('', $path);
     $this->_data = new StdClass();
     if ($data) {
         if (!is_object($data)) {
             $data = json_decode($data);
         }
         if ($keys) {
             if (!is_array($keys)) {
                 $keys = explode('.', $keys);
             }
             $this->_key = $keys;
             foreach ($keys as $key) {
                 $data = isset($data->{$key}) ? $data->{$key} : $data;
             }
         }
         $this->bind($this->_data, $data);
     }
 }
Ejemplo n.º 7
0
 /**
  * @param string The raw parms text
  * @param string Path to the xml setup file
  * @param string The type of setup file
  */
 function __construct($text, $path = '', $type = 'component')
 {
     parent::__construct($text, $path);
 }
Ejemplo n.º 8
0
 /**
  * Constructor
  *
  * @access	protected
  * @param	string The raw parms text
  * @param	string payment_element payment element name
  * @since	1.5
  */
 function __construct($data, $element = '', $type = 'component', $pluginfolder)
 {
     $lang = JFactory::getLanguage();
     $lang->load('plg_' . $pluginfolder . '_' . $element, JPATH_ADMINISTRATOR);
     if (JVM_VERSION === 2) {
         $path = JPATH_ROOT . DS . 'plugins' . DS . $pluginfolder . DS . basename($element) . DS . basename($element) . '.xml';
     } else {
         $path = JPATH_ROOT . DS . 'plugins' . DS . $pluginfolder . DS . basename($element) . '.xml';
     }
     parent::__construct($element, $path);
     $this->_type = $type;
     if (JVM_VERSION === 2) {
     } else {
     }
     // 		$this->_raw = $data;
     $this->bind($data);
 }
Ejemplo n.º 9
0
 public function __construct($data = '', $path = '')
 {
     parent::__construct($data, $path);
 }
Ejemplo n.º 10
0
 /**
  * constructor
  */
 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);
 }
Ejemplo n.º 11
0
 function __construct($text, $file = '', $type = 'component')
 {
     parent::__construct($text, $file);
 }
Ejemplo n.º 12
0
 /**
  * Constructor
  *
  * @access	protected
  * @param	string The raw parms text
  * @param	string payment_element payment element name
  * @since	1.5
  */
 function __construct($data, $element = '', $type = 'component', $pluginfolder)
 {
     JPlugin::loadLanguage('plg_' . $pluginfolder . '_' . $element);
     if (JVM_VERSION === 2) {
         $path = JPATH_PLUGINS . DS . $pluginfolder . DS . basename($element) . DS . basename($element) . '.xml';
     } else {
         $path = JPATH_PLUGINS . DS . $pluginfolder . DS . basename($element) . '.xml';
     }
     parent::__construct($element, $path);
     $this->_type = $type;
     if (JVM_VERSION === 2) {
     } else {
     }
     // 		$this->_raw = $data;
     $this->bind($data);
 }
Ejemplo n.º 13
0
 /**
  * Constructor
  *
  */
 function __construct($data = '')
 {
     parent::__construct($data);
 }
Ejemplo n.º 14
0
 /**
  * Contstruct the Parent
  */
 public function __construct($data, $path = '')
 {
     parent::__construct($data, $path);
     $this->addElementPath(TUIYO_HELPERS . DS . "elements" . DS);
 }
Ejemplo n.º 15
0
 public function __construct($data = '', $path = '')
 {
     if (!$data && !$path) {
         return false;
     }
     parent::__construct($data, $path);
 }