mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-04 23:34:05 +01:00
Chained calls are now possible for most framework class setters and methods not returning a value
This commit is contained in:
@@ -103,6 +103,7 @@ class CClientScript extends CApplicationComponent
|
||||
|
||||
/**
|
||||
* Cleans all registered scripts.
|
||||
* @return CClientScript
|
||||
*/
|
||||
public function reset()
|
||||
{
|
||||
@@ -116,6 +117,7 @@ class CClientScript extends CApplicationComponent
|
||||
$this->linkTags=array();
|
||||
|
||||
$this->recordCachingAction('clientScript','reset',array());
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -392,10 +394,12 @@ class CClientScript extends CApplicationComponent
|
||||
* This setter is provided in case when core javascript files are manually published
|
||||
* to a pre-specified location. This may save asset publishing time for large-scale applications.
|
||||
* @param string $value the base URL of all core javascript files.
|
||||
* @return CClientScript
|
||||
*/
|
||||
public function setCoreScriptUrl($value)
|
||||
{
|
||||
$this->_baseUrl=$value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user