Esempio n. 1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $id = JRequest::getInt('id');
     $project = JRequest::getInt('p');
     $this->setId($id);
     $this->project_id = $project;
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JModelLegacy
  */
 public function __construct($config = array())
 {
     if (!empty($config["tableName"])) {
         $this->tableName = $config["tableName"];
         $this->name = $config["tableName"];
     }
     if (!empty($config["context"])) {
         $this->context = strtolower($config["context"]);
     }
     $this->modelConfig = $config;
     parent::__construct($config);
 }
Esempio n. 3
0
 /**
  * Constructor.
  *
  * @param   array  $config  Configuration array
  *
  * @throws  RuntimeException
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->defaultXmlFile = new SimpleXMLElement(file_get_contents(JPATH_COMPONENT_ADMINISTRATOR . '/models/forms/webservice_defaults.xml'));
 }
Esempio n. 4
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->project_id = JFactory::getApplication()->input->getInt('p', 0);
 }