示例#1
0
 /**
  * Generates the standard ModelRecord object
  * @param array $data Row data - associated array
  * @param bollean $new is new instance, not loaded from database
  */
 public function __construct($data = false, $new = true)
 {
     parent::__construct($data);
     $modelName = substr(get_class($this), 0, -6);
     // "Record" length
     $this->Model = Model::factoryInstance($modelName);
     $this->_new = $new;
 }
示例#2
0
 /**
  * Generates the standard request object
  */
 public function __construct()
 {
     $this->removeMagicGpc();
     parent::__construct($_POST);
 }