public function getSafeAttributeNames() { return array_merge(parent::getSafeAttributeNames(), $this->_safeAttributes); }
public function getSafeAttributeNames() { if (!$this->eavEnable) { return parent::getSafeAttributeNames(); } return array_merge($this->getSafeEavAttributeNames(), parent::getSafeAttributeNames()); }
/** * @inheritDoc */ public function getSafeAttributeNames() { $scenarios = $this->scenarios(); $scenario = $this->getScenario(); if ($scenarios === null) { return parent::getSafeAttributeNames(); } elseif (isset($scenarios[$scenario])) { return $scenarios[$scenario]; } else { return array(); } }
/** * Mark all table columns as safe attributes by default. * @return array list of safe attributes (equal to table columns). * @todo do something with it, coz it's security fail */ public function getSafeAttributeNames() { if ($this->setOnlySafeAttributes) { return parent::getSafeAttributeNames(); } else { return array_keys($this->getMetaData()->columns); } }
public function getSafeAttributeNames() { return array_unique(array_merge(parent::getSafeAttributeNames(), $this->safeAttributes())); }