Doctrine_Record::call PHP Méthode

call() public méthode

call
public call ( string | array $callback, string $column ) : Doctrine_Record
$callback string | array valid callback
$column string column name
Résultat Doctrine_Record provides a fluent interface
    public function call($callback, $column)
    {
        $args = func_get_args();
        array_shift($args);
        if (isset($args[0])) {
            $fieldName = $args[0];
            $args[0] = $this->get($fieldName);
            $newvalue = call_user_func_array($callback, $args);
            $this->_data[$fieldName] = $newvalue;
        }
        return $this;
    }