コード例 #1
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('latitude' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'Between' => array('max' => 90000000, 'min' => -90000000, 'breakChainOnFailure' => true)), 'longitude' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Int' => array('breakChainOnFailure' => true), 'Between' => array('max' => 180000000, 'min' => -180000000, 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }
コード例 #2
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('voice' => array('Restriction\\Commercial\\VoiceSmsRestrictionValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'sms' => array('Restriction\\Commercial\\VoiceSmsRestrictionValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'data' => array('HasSameValues' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))));
     parent::__construct($options);
 }
コード例 #3
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), 'PercentFalseDecimals' => array('breakChainOnFailure' => true))));
     parent::__construct($options);
 }
コード例 #4
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('adjusts' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('PreBill\\AdjustValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'discounts' => array('PreBill\\UpdatedDiscountsValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'taxes' => array('PreBill\\TaxesListValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'customCharges' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('PreBill\\CustomChargeValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))))));
     parent::__construct($options);
 }
コード例 #5
0
 public function __construct($options = null)
 {
     $this->_spec = array('validators' => array('customField_1' => array('StringLength' => array('max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'customField_2' => array('StringLength' => array('max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'customField_3' => array('StringLength' => array('max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'customField_4' => array('StringLength' => array('max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true))));
     parent::__construct($options);
 }