Class Mage_Api2_Model_Resource_Validator_Fields
API2 Fields Validator
- Mage_Api2_Model_Resource_Validator
- Mage_Api2_Model_Resource_Validator_Fields
Direct known subclasses
Mage_CatalogInventory_Model_Api2_Stock_Item_Validator_Item
Package: Mage\Api2
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Api2/Model/Resource/Validator/Fields.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Api2/Model/Resource/Validator/Fields.php
public
|
|
protected
|
|
protected
Zend_Validate_Interface
|
#
_getValidatorInstance( string $type, array $options )
Get validator object instance Override the method if we need to use not only Zend validators! |
public
boolean
|
#
isValidData( array $data, boolean $isPartial = false )
Validate data. If fails validation, then this method returns false, and getErrors() will return an array of errors that explain why the validation failed. |
_addError(),
_addErrors(),
_setErrors(),
getErrors()
|
string |
CONFIG_NODE_KEY
|
'fields' |
#
Config node key of current validator |
protected
|
$_resource |
|
#
Resource |
protected
array
|
$_validators |
|
#
List of Validators (Zend_Validate_Interface) The key is a field name, a value is validator for this field |
protected
array
|
$_requiredFields |
|
#
List of required fields |
$_errors
|