Exemplo n.º 1
0
 public function __construct($params = array())
 {
     $options = a::merge(static::$defaults, $params);
     parent::__construct($options);
 }
Exemplo n.º 2
0
 public function __construct($modelName = null, $aData = null, $dataAction = DataModel::REPLACE_DATA)
 {
     if ($modelName == null) {
         $modelName = get_class($this);
     }
     parent::__construct($modelName);
     $oDef = $this->getDefinition($modelName);
     $this->primaryKey = $oDef->getPrimaryKey();
     if (count($aData) > 0) {
         $this->setFields($aData, $dataAction);
     } else {
         $this->setFieldsToDefaults();
     }
 }
Exemplo n.º 3
0
 public function __construct($name, $pathImg)
 {
     parent::__construct($name, $pathImg);
 }
Exemplo n.º 4
0
 public function __construct($name, $pathImg, Brand $brand, Engine $engine)
 {
     parent::__construct($name, $pathImg);
     $this->brand = $brand;
     $this->engine = $engine;
 }