public function canSetProperty($name) { return parent::canSetProperty($name) or $this->hasLangAttribute($name); }
/** * Validate properties that are save in the 'search scenario'. * (non-PHPdoc) * @see CComponent::canSetProperty() */ public function canSetProperty($key) { if (parent::canSetProperty($key)) { return true; } if ($this->getOwner()->getScenario() === 'search') { return $this->getOwner()->isAttributeSafe($key); } return false; }
/** * Expose translatable attributes as writeable */ public function canSetProperty($name) { return in_array($name, $this->translationAttributes) || in_array($name, array_keys($this->multilingualRelations)) ? true : parent::canSetProperty($name); }
/** * Expose translatable attribues as writeable */ public function canSetProperty($name) { return in_array($name, $this->translationAttributes) ? true : parent::canSetProperty($name); }