Contao\Model\Collection::setRow PHP Méthode

setRow() public méthode

Set the current row from an array
public setRow ( array $arrData ) : static
$arrData array The row data as array
Résultat static The model collection object
    public function setRow(array $arrData)
    {
        if ($this->intIndex < 0) {
            $this->first();
        }
        $this->arrModels[$this->intIndex]->setRow($arrData);
        return $this;
    }