/** * Populates an element model based on a query result. * * @param array $row * @return BaseElementModel|BaseModel|void */ public function populateElementModel($row) { $row['type'] = "Venti_Event"; return Venti_OutputModel::populateModel($row); }
/** * Elements transfered into array of Venti_OutputModel * * @param array * * @return array of Venti_OutputModels */ protected function populateElementModel(array $array) { $model = Venti_OutputModel::populateModel($array); return $model; }