Contao\Model::row PHP Метод

row() публичный Метод

Return the current record as associative array
public row ( ) : array
Результат array The data record
    public function row()
    {
        return $this->arrData;
    }

Usage Example

 /**
  * 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();
 }