/** * Set the DataContainer data with an object of type Model * @param Model $objModel */ public function setDataFromModel(Model $objModel) { $arrData = $objModel->row(); foreach ($arrData as $key => $value) { if (strpos($key, $this->strDataPrefix) !== false) { $this->arrData[$key] = $value; } } $this->parseGivenData(); }