Class Mage_Api2_Model_Resource_Validator
API2 Abstarct Validator
This is an object to which we encapsulate all business logic of validation and different invariants. But instead of different validators, we group all logic in one class but in different methods.
If fails validation, then validation method returns false, and getErrors() will return an array of errors that explain why the validation failed.
Direct known subclasses
Mage_Api2_Model_Resource_Validator_Eav, Mage_Api2_Model_Resource_Validator_Fields, Mage_Catalog_Model_Api2_Product_Image_Validator_Image, Mage_Catalog_Model_Api2_Product_Validator_Product, Mage_Catalog_Model_Api2_Product_Website_Validator_Admin_WebsiteIndirect known subclasses
Mage_CatalogInventory_Model_Api2_Stock_Item_Validator_Item, Mage_Customer_Model_Api2_Customer_Address_Validator
Abstract
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.php
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.php
protected
|
|
protected
|
|
protected
|
|
public
array
|
protected
array
|
$_errors | array() |
#
Array of validation failure errors. |