Exemplo n.º 1
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     if (isset($options['useStaticList']) && $options['useStaticList']) {
         $this->_type = EnumeratedService::TIME_ZONE_STATIC_ENUM_NAME;
     }
 }
Exemplo n.º 2
0
 public function isValid($data, $context = null, $removeNotPresentFields = false)
 {
     if ($this->hasEmptyList()) {
         throw new ForbiddenException('User has no available regions');
     }
     return parent::isValid($data, $context, $removeNotPresentFields);
 }