Chained calls are now possible for most framework class setters and methods not returning a value

This commit is contained in:
alexander.makarow
2011-02-23 20:20:28 +00:00
parent 9b83d58e30
commit 75041e8620
75 changed files with 529 additions and 10 deletions

View File

@@ -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;
}
/**