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());
 }
예제 #3
0
 /**
  * @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();
     }
 }
예제 #4
0
 /**
  * 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);
     }
 }
예제 #5
0
 public function getSafeAttributeNames()
 {
     return array_unique(array_merge(parent::getSafeAttributeNames(), $this->safeAttributes()));
 }