set() public method

Override all methods to keep back-compatible
public set ( $name, $value = UNDEFINED )
示例#1
0
文件: Field.php 项目: atk4/atk4
 /**
  * Sets the value of the field. Identical to $model[$fieldname]=$value.
  *
  * @param mixed $value new value
  *
  * @return $this
  */
 public function set($value = null)
 {
     $this->owner->set($this->short_name, $value);
     return $this;
 }