Contao\Database\Result::__set PHP Méthode

__set() public méthode

Set a particular field of the current row
public __set ( mixed $strKey, string $varValue )
$strKey mixed The field name
$varValue string The field value
    public function __set($strKey, $varValue)
    {
        if (empty($this->arrCache)) {
            $this->next();
        }
        $this->blnModified = true;
        $this->arrCache[$strKey] = $varValue;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function __set($strKey, $varValue)
 {
     $this->result->__set($strKey, $varValue);
 }