Exemple #1
0
 /**
  * Treats attributes defined by defineAttributes() as array offsets.
  *
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     if (parent::offsetExists($offset) || in_array($offset, $this->attributeNames())) {
         return true;
     } else {
         return false;
     }
 }