public function __construct($config = array()) { parent::__construct($config); $id = JRequest::getInt('id'); $project = JRequest::getInt('p'); $this->setId($id); $this->project_id = $project; }
/** * 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); }
/** * 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')); }
public function __construct($config = array()) { parent::__construct($config); $this->project_id = JFactory::getApplication()->input->getInt('p', 0); }