mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-14 20:16:54 +01:00
Chained calls are now possible for most framework class setters and methods not returning a value
This commit is contained in:
@@ -40,10 +40,12 @@ class CFormStringElement extends CFormElement
|
||||
|
||||
/**
|
||||
* @param string $value scenario names separated by commas.
|
||||
* @return CFormStringElement
|
||||
*/
|
||||
public function setOn($value)
|
||||
{
|
||||
$this->_on=preg_split('/[\s,]+/',$value,-1,PREG_SPLIT_NO_EMPTY);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user