You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function __set($name,$value) {
if(substr($name,-3)==='Url') {
if(isset($this->_urls[substr($name,0,-3)]))
$this->_urls[substr($name,0,-3)]=$value;
}
if(substr($name,-4)==='View') {
if(isset($this->_views[substr($name,0,-4)]))
$this->_views[substr($name,0,-4)]=$value;
}
//parent::__set($name,$value);
}
could be :
public function __set($name,$value) {
if(substr($name,-3)==='Url') {
if(isset($this->_urls[substr($name,0,-3)]))
return $this->_urls[substr($name,0,-3)]=$value;
}
if(substr($name,-4)==='View') {
if(isset($this->_views[substr($name,0,-4)]))
return $this->_views[substr($name,0,-4)]=$value;
}
return parent::__set($name,$value);
}
The text was updated successfully, but these errors were encountered:
abos5
changed the title
why not return value in setter of UserModule (UserModule::__set()) as CComponen
why not return value in setter of UserModule (UserModule::__set()) as CComponent::__set() does
Oct 8, 2014
could be :
The text was updated successfully, but these errors were encountered: