public function __construct($params = array()) { $options = a::merge(static::$defaults, $params); parent::__construct($options); }
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(); } }
public function __construct($name, $pathImg) { parent::__construct($name, $pathImg); }
public function __construct($name, $pathImg, Brand $brand, Engine $engine) { parent::__construct($name, $pathImg); $this->brand = $brand; $this->engine = $engine; }