public function __construct($options = null)
 {
     $this->_messageTemplates[self::TOO_MUCH_DEPTH] = 'Too many nested configurations';
     $this->_spec = array('breakChainOnFailure' => true, 'validators' => array('ValidateOne' => array('breakChainOnFailure' => true, 'prefixPath' => array("\\Core\\Model\\Validate\\" => APPLICATION_PATH . "/modules/core/models/Validate/"), 'validators' => array('IsBoolean' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'StringLength' => array('breakChainOnFailure' => true, 'max' => 2047), 'Config\\ArrayConfigValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'Config\\StructConfigValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))));
     $this->_keysSpec = array('validators' => array('StringLength' => array('breakChainOnFailure' => true, 'min' => 1, 'max' => 31), 'Regex' => array('breakChainOnFailure' => true, 'pattern' => ' /^[a-zA-Z0-9\\-\\_]+$/')));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_messageTemplates[self::NOT_BUSINESS_RULE] = "Invalid type given. Business rule model expected";
     $this->_messageTemplates[self::BUSINESS_RULE_TYPE_NOT_ALLOWED] = "Business rule type '%value%' not allowed for universe '%universe%'";
     $this->_spec = array('validators' => array('type' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'InArray' => array('breakChainOnFailure' => true, 'haystack' => array(BusinessRule::DISABLE_VOICE, BusinessRule::DISABLE_DATA, BusinessRule::DISABLE_SMS, BusinessRule::DISABLE_ALL, BusinessRule::CHANGE_COMMERCIAL_GROUP, BusinessRule::CHANGE_LIFE_CYCLE, BusinessRule::SEND_SMS)), 'Ericsson_CheckCommercialGroupRestricted' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::CHANGE_COMMERCIAL_GROUP)), 'commercialGroupId' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::CHANGE_COMMERCIAL_GROUP), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::CHANGE_COMMERCIAL_GROUP, 'inverted' => true), 'Ericsson_CommercialGroupExistsById' => array('breakChainOnFailure' => true, 'checkRestrictions' => true)), 'nextLifeCycleStatus' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::CHANGE_LIFE_CYCLE), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::CHANGE_LIFE_CYCLE, 'inverted' => true), 'LifeCycleStatus' => array('breakChainOnFailure' => true)), 'smsText' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::SEND_SMS), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'type', 'value' => BusinessRule::SEND_SMS, 'inverted' => true), 'GSM0338Charset' => array('breakChainOnFailure' => true), 'GSM0338StringLength' => array('breakChainOnFailure' => true, 'min' => 1, 'max' => 160))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $discounts = array('general', 'baSubscriptions', 'customerSubscriptions', 'expense', 'consumptionVoice', 'consumptionSms', 'consumptionData');
     foreach ($discounts as $discount) {
         $this->_spec['validators'][$discount] = array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'breakChainOnFailure' => true, 'validators' => array('DiscountValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))));
     }
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_messageTemplates[self::TOO_MUCH_DEPTH] = 'Too many nested configurations';
     $this->_messageTemplates[self::INVALID_ITEM_TYPE] = 'Unrecognized type of first element';
     $this->_messageTemplates[self::NOT_HOMOGENUOUS_ARRAY] = 'Every item must be same type';
     $this->_spec = array();
     $this->_keysSpec = array('validators' => array('Int' => array('breakChainOnFailure' => true)));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('sms' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'isBoolean' => array('breakChainOnFailure' => true)), 'msisdnList' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'sms', 'value' => true), 'Array' => array('breakChainOnFailure' => true, 'distinct' => true, 'validators' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 15, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)))), 'email' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'isBoolean' => array('breakChainOnFailure' => true)), 'emailList' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'email', 'value' => true, 'type' => \Zend_Validate_NotEmpty::EMPTY_ARRAY), 'Array' => array('breakChainOnFailure' => true, 'distinct' => true, 'validators' => array('EmailAddress' => array('mx' => false, 'breakChainOnFailure' => true)))), 'snmp' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'isBoolean' => array('breakChainOnFailure' => true))));
     $org = \App::getOrgUserLogged();
     if ($org->getType() != OrgCustomerModel::ORG_TYPE) {
         $org = OrgService::getInstance()->getParentByType($org, OrgCustomerModel::ORG_TYPE);
     }
     if ($org && !is_null($org->getSupplementaryServicesId())) {
         $services = SupplServicesService::getInstance()->load($org->getSupplementaryServicesId());
         if (!$services || $services->getApplicationOriginatedSms() != SupplServicesModel::ST_ACTIVATED) {
             $this->_spec['validators']['sms']['Identical'] = array('token' => false, 'messageTemplates' => array(\Zend_Validate_Identical::NOT_SAME => "Application originated sms service not activated"));
         }
     }
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('min' => 5, 'max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'regex' => array('pattern' => "/^[a-zA-Z0-9_.@]+\$/", 'breakChainOnFailure' => true), 'Amplia_SupervisionGroupNotExistsByName' => array('breakChainOnFailure' => true)), 'description' => array('StringLength' => array('max' => 150, 'encoding' => "UTF-8", 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('date' => array('Date' => array('breakChainOnFailure' => true, 'format' => 'Y-m-d')), 'user' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'observation' => array('StringLength' => array('max' => 255, 'min' => 1, 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('mt' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Restriction\\DataRestrictionValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'mo' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Restriction\\MoRestrictionValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))));
     parent::__construct($options);
 }
Exemplo n.º 9
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('description' => array('NotEmpty' => array('breakChainOnFailure' => true)), 'value' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Regex' => array('pattern' => "/^[0-9]+\$|^-[0-9]+\$/", 'breakChainOnFailure' => true), 'Between' => array('max' => 999999999999999, 'min' => -999999999999999, 'inclusive' => true, 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('fiscalNumber' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 24, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'regex' => array('pattern' => "/^[\\d\\w\\s\\-]{5,50}\$/", 'breakChainOnFailure' => true)), 'billingAccountName' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'StringLength' => array('max' => 64, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'billable' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'automaticPrebill' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'crmBillingAccountId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 32, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'addressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'address' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'addressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'contactIsPrimaryContact' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'contact' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'contactIsPrimaryContact', 'value' => false), 'ContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'taxes' => array('Collection' => array('validators' => array('tax' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TaxValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'ArrayRepitedItemLimit' => array('breakChainOnFailure' => true, 'checkField' => 'name'))))), 'discounts' => array('Collection' => array('validators' => array('discount' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('DiscountThresholdValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'ArrayRepitedItemLimit' => array('breakChainOnFailure' => true, 'checkField' => 'name'))))), 'expenseCounter' => array('Organization\\Types\\ExpenseThresholdValidate' => array('acceptArrayAsModel' => true, 'breakChainOnFailure' => true)), 'paymentMethod' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'paymentRelatedData', 'value' => \App_Validate_NotEmptyIfField::NOT_EMPTY), 'StringLength' => array('max' => 128, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'paymentRelatedData' => array('StringLength' => array('max' => 128, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'regionId' => array('Int' => array('breakChainOnFailure' => true), 'Enum_Region' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('home' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'roaming' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL))));
     parent::__construct($options);
 }
Exemplo n.º 12
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('status' => array('NotEmpty' => array('breakChainOnFailure' => true), 'LifeCycleStatus' => array('breakChainOnFailure' => true)), 'timer' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0)), 'vouchers' => array('LifeCycle\\VoucherValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'transitions' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('LifeCycle\\TransitionValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('addedTaxes' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('PreBill\\TaxValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'removedTaxes' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('NotEmpty' => array('breakChainOnFailure' => true))))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('monthlyActive' => array('Money' => array('breakChainOnFailure' => true)), 'monthlySuspended' => array('Money' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
Exemplo n.º 15
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('breakChainOnFailure' => true, 'min' => 5, 'max' => 64, 'encoding' => 'UTF-8')), 'apns' => array('ApnList' => array('breakChainOnFailure' => true)), 'staticAddressing' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'network' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'staticAddressing', 'value' => true), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'staticAddressing', 'value' => false), 'Ip' => array('breakChainOnFailure' => true)), 'mask' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'staticAddressing', 'value' => true), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'staticAddressing', 'value' => false), 'Mask' => array('breakChainOnFailure' => true)), 'ipType' => array('NotEmpty' => array('breakChainOnFailure' => true), 'IpType' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_messageTemplates = array(self::NO_SMS_MSISDN => "No Sms msisdn model", self::NO_AVAILABLE_NUMBER => "%value% is not available");
     $this->_spec = array('validators' => array('msisdn' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 15, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'Digits' => array('breakChainOnFailure' => true), 'Ericsson_SupplServiceMsisdnAvailable' => array('breakChainOnFailure' => true, 'supplServicesId' => 'supplServicesId')), 'description' => array('StringLength' => array('max' => 15, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'supplServicesId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_SupplServiceExistsById' => array('breakChainOnFailure' => true), 'Ericsson_SupplServiceReadyForAdditionalMsisdns' => array('breakChainOnFailure' => true, 'maxMsisdns' => 100))));
     parent::__construct($options);
 }
Exemplo n.º 17
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('type' => array('NotEmpty' => array('breakChainOnFailure' => true), 'InArray' => array('haystack' => array('tariffPlanLifeCycle', 'tariffPlanService', 'lifeCycle', 'restrictions', 'supplementaryServices', 'zonePlan'))), 'name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 32, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('status' => array('Identical' => array('breakChainOnFailure' => true, 'token' => LifeCycleModel::STATUS_DEACTIVATED))));
     parent::__construct($options);
 }
Exemplo n.º 19
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('namespace' => WatcherValidate::$VALIDATOR_PRESET_NAMESPACE, 'entityType' => WatcherValidate::$VALIDATOR_PRESET_ENTITY_TYPE, 'entityId' => WatcherValidate::$VALIDATOR_PRESET_ENTITY_ID));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('n1' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999999999 + 1)), 'n2' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999999999 + 1)), 'n3' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999999999 + 1)), 'n4' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 't4N', 'value' => \App_Validate_NotEmptyIfField::NOT_NULL, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999999999 + 1)), 'n5' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999999999 + 1)), 'q1' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'n1', 'value' => \App_Validate_NotEmptyIfField::NOT_NULL, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 99999999 + 1)), 't2S' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999 + 1)), 't2Q' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'n2', 'value' => \App_Validate_NotEmptyIfField::NOT_NULL, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 15999999 + 1)), 't4Q' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'n4', 'value' => \App_Validate_NotEmptyIfField::NOT_NULL, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 15999999 + 1)), 't6Q' => array('Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 15999999 + 1)), 'txN' => array('NotEmpty' => array('breakChainOnFailure' => true, 'value' => \App_Validate_NotEmptyIfField::NOT_NULL), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => 0), 'LessThan' => array('breakChainOnFailure' => true, 'max' => 999999999999 + 1)), 'pool' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'chargeUnused' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'dynamic' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'EmptyIfField' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::BOOLEAN, 'field' => 'pool', 'value' => false))));
     parent::__construct($options);
 }
Exemplo n.º 21
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'value' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'GreaterThan' => array('breakChainOnFailure' => true, 'min' => -1))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('transitions' => array('NotEmpty' => array('breakChainOnFailure' => true), 'SupplServicesTariff\\TransitionsTariffValidate' => array('breakChainOnFailure' => true)), 'customer' => array('NotEmpty' => array('breakChainOnFailure' => true), 'SupplServicesTariff\\SelfManagementTariff\\CustomerTariffValidate' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('simSetup' => array('Money' => array('breakChainOnFailure' => true)), 'simTransportation' => array('Money' => array('breakChainOnFailure' => true)), 'simActivation' => array('Money' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 32, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'Ericsson_CommercialGroupNotExistsByName' => array('breakChainOnFailure' => true), 'Regex' => array('pattern' => '/^[a-zA-Z0-9\\_\\.\\@\\s]*$/', 'breakChainOnFailure' => true)), 'description' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 100, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'customerId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'type' => OrgCustomerModel::ORG_TYPE)), 'servicePackId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'Ericsson_ServicePackExistsById' => array('breakChainOnFailure' => true, 'checkRestrictions' => true, 'checkPublished' => true), 'CommercialGroup\\CommercialGroupCurrencyValidate' => array('breakChainOnFailure' => true)), 'billingAccountId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'Ericsson_BillingAccountExistsById' => array('breakChainOnFailure' => true, 'organizationIdField' => 'customerId')), 'whiteList' => array('ScreeningList' => array('breakChainOnFailure' => true), 'Ericsson_ServicePackScreeningListNotLocked' => array('breakChainOnFailure' => true, 'servicePackIdField' => 'servicePackId')), 'blackList' => array('ScreeningList' => array('breakChainOnFailure' => true), 'Ericsson_ServicePackScreeningListNotLocked' => array('breakChainOnFailure' => true, 'servicePackIdField' => 'servicePackId')), 'roamingList' => array('ScreeningList' => array('breakChainOnFailure' => true), 'Ericsson_ServicePackScreeningListNotLocked' => array('breakChainOnFailure' => true, 'servicePackIdField' => 'servicePackId')), 'limitVoice' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Control\\LimitValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'limitSms' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Control\\LimitValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'limitData' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Control\\LimitValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'limitTotal' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Control\\TotalLimitValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'Control\\TotalLimitValidateIfAllEnabled' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'aggregatorId' => array('StringLength' => array('breakChainOnFailure' => true, 'min' => 1), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'type' => OrgAggregatorModel::ORG_TYPE))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('universeType' => array('NotEmpty' => array('breakChainOnFailure' => true), 'InArray' => array('haystack' => array(AlarmRuleModel::UNIVERSE_BILLING_ACCOUNT, AlarmRuleModel::UNIVERSE_COMMERCIAL_GROUP, AlarmRuleModel::UNIVERSE_CUSTOMER, AlarmRuleModel::UNIVERSE_SUBSCRIPTIONS_OF_COMMERCIAL_GROUP, AlarmRuleModel::UNIVERSE_SUBSCRIPTIONS_OF_SUPERVISION_GROUP))), 'universeId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'customerId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'rules' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::EMPTY_ARRAY), 'Array' => array('breakChainOnFailure' => true, 'prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('AlarmRule\\RuleValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('token' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 60, 'min' => 60, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'orgId' => array('NotEmpty' => array('breakChainOnFailure' => true)), 'username' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'apiId', 'value' => null)), 'apiId' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'username', 'value' => null)), 'controller' => array('NotEmpty' => array('breakChainOnFailure' => true)), 'action' => array('NotEmpty' => array('breakChainOnFailure' => true)), 'expireDatetime' => array('NotEmpty' => array('breakChainOnFailure' => true)), 'params' => array('Array' => array('breakChainOnFailure' => true)), 'url' => array('NotEmpty' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('n2' => array('Empty' => array('breakChainOnFailure' => true)), 'n3' => array('Empty' => array('breakChainOnFailure' => true)), 'n4' => array('Empty' => array('breakChainOnFailure' => true)), 'n5' => array('Empty' => array('breakChainOnFailure' => true)), 't2S' => array('NotEmpty' => array('breakChainOnFailure' => true)), 't2Q' => array('NotEmpty' => array('breakChainOnFailure' => true)), 't4Q' => array('Empty' => array('breakChainOnFailure' => true)), 't6Q' => array('Empty' => array('breakChainOnFailure' => true)), 'txN' => array('LessThan' => array('breakChainOnFailure' => true, 'max' => 3600 + 1))));
     parent::__construct($options);
 }
Exemplo n.º 28
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('customerId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'organizationType' => OrgCustomerModel::ORG_TYPE)), 'voice' => array('Mod' => array('breakChainOnFailure' => true, 'mod' => 10), 'LimitedInt' => array('breakChainOnFailure' => true, 'min' => 0 - 1, 'max' => 10000 + 1)), 'sms' => array('Mod' => array('breakChainOnFailure' => true, 'mod' => 10), 'LimitedInt' => array('breakChainOnFailure' => true, 'min' => 0 - 1, 'max' => 10000 + 1)), 'data' => array('Mod' => array('breakChainOnFailure' => true, 'mod' => 10), 'LimitedInt' => array('breakChainOnFailure' => true, 'min' => 0 - 1, 'max' => 10000 + 1))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('destinationStatus' => array('NotEmpty' => array('breakChainOnFailure' => true), 'LifeCycleStatus' => array('breakChainOnFailure' => true)), 'manual' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'automatic' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'automaticInfo' => array('LifeCycle\\AutomaticInfoValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('name' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 100, 'min' => 1, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'defaultData' => array('NotEmpty' => array('breakChainOnFailure' => true), 'TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DataTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DefaultTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'data' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DataTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\AdditionalTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'defaultOrigVoice' => array('NotEmpty' => array('breakChainOnFailure' => true), 'TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\VoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DefaultTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'origVoice' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\VoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\AdditionalTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'TariffPlan\\Services\\DefaultDestinationTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'defaultTermVoice' => array('NotEmpty' => array('breakChainOnFailure' => true), 'TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\VoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DefaultTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\TermVoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'termVoice' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\VoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\TermVoiceTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\AdditionalTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'defaultSms' => array('NotEmpty' => array('breakChainOnFailure' => true), 'TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\SmsTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\DefaultTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'sms' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TariffPlan\\ServiceTariffUpgradeV20Validate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\SmsTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'TariffPlan\\Services\\AdditionalTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'TariffPlan\\Services\\DefaultDestinationTariffValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))));
     parent::__construct($options);
 }