public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('is_string($attributeName)');
     $this->maxLength = DatabaseCompatibilityUtil::getMaxVarCharLength();
     $this->messageCountData[static::EMAIL_TOO_LONG] = 0;
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('$attributeName == null');
     $states = $this->resolveStates();
     $this->states = ArrayUtil::resolveArrayToLowerCase($states);
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('is_string($attributeName)');
     $customFieldData = CustomFieldDataModelUtil::getDataByModelClassNameAndAttributeName($this->modelClassName, $this->attributeName);
     $dropDownValues = unserialize($customFieldData->serializedData);
     $this->dropDownValues = ArrayUtil::resolveArrayToLowerCase($dropDownValues);
     $this->missingDropDownInstructions[DropDownSanitizerUtil::ADD_MISSING_VALUE] = array();
 }
 /**
  * Override to ensure the attribute is only a single attribute and also setup the message count data.
  * @param string $modelClassName
  * @param string $attributeName
  */
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('is_string($attributeName)');
     $model = new $modelClassName(false);
     $this->attributeModelClassName = $this->resolveAttributeModelClassName($model, $this->attributeName);
     $this->messageCountData[static::FOUND] = 0;
     $this->messageCountData[static::UNFOUND] = 0;
     $this->messageCountData[static::EXTERNAL_SYSTEM_ID_TOO_LONG] = 0;
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('$attributeName == null');
     $this->messageCountData[static::FULL_NAME_TOO_LONG] = 0;
     $this->messageCountData[static::FULL_NAME_TOO_SHORT] = 0;
     $model = new $modelClassName(false);
     $this->firstNameMaxLength = StringValidatorHelper::getMaxLengthByModelAndAttributeName($model, 'firstName');
     $this->lastNameMaxLength = StringValidatorHelper::getMaxLengthByModelAndAttributeName($model, 'lastName');
     $this->lastNameMinLength = StringValidatorHelper::getMinLengthByModelAndAttributeName($model, 'lastName');
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     $this->dropDownValues = ProductTemplateElementUtil::getProductTemplateTypeDropdownArray();
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('$attributeName == null');
 }
 /**
  * Override to assert $attributeName is only a single attribute as this is the only way this analyzer
  * supports it.
  * @param string $modelClassName
  * @param string $attributeName
  */
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('is_string($attributeName)');
 }
 /**
  * Override to make the min length information.
  * @param string $modelClassName
  * @param array $attributeName
  */
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     assert('is_string($attributeName)');
     $this->minLength = $this->resolveMinLength($modelClassName, $attributeName);
 }
 public function __construct($modelClassName, $attributeName)
 {
     parent::__construct($modelClassName, $attributeName);
     $this->dropDownValues = SellPriceFormula::getTypeDropDownArray();
 }