Exemplo n.º 1
0
 public function __set($attributeName, $value)
 {
     if (in_array($value, array(self::EVERYONE_GROUP_NAME, self::SUPER_ADMINISTRATORS_GROUP_NAME)) || $this->isEveryone && in_array($attributeName, array('name', 'group', 'users', 'groups')) || $this->isSuperAdministrators && in_array($attributeName, array('name', 'rights'))) {
         throw new NotSupportedException();
     }
     parent::__set($attributeName, $value);
 }