Class Mage_Eav_Model_Entity_Attribute_Backend_Datetime

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /Eav/Model/Entity/Attribute/Backend/Datetime.php (line 27)

Mage_Eav_Model_Entity_Attribute_Backend_Abstract
   |
   --Mage_Eav_Model_Entity_Attribute_Backend_Datetime
Direct descendents
Class Description
Mage_Catalog_Model_Product_Attribute_Backend_Startdate Speical Start Date attribute backend
Method Summary
void beforeSave (mixed $object)
string formatDate (string $date)
Variables
Methods
beforeSave (line 37)

Formating date value before save to DB

should set (bool, string) correct type for empty value from html form, neccessary for farther proccess, else date string

  • access: public
void beforeSave (mixed $object)
  • mixed $object

Redefinition of:
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::beforeSave()

Redefined in descendants as:
formatDate (line 66)

Prepare date for save in DB

string format used from input fields (all date input fields need apply locale settings) int value can be declared in code (this meen whot we use valid date)

  • access: public
string formatDate (string $date)
  • string $date: | int $date

Inherited Methods

Inherited From Mage_Eav_Model_Entity_Attribute_Backend_Abstract

Mage_Eav_Model_Entity_Attribute_Backend_Abstract::afterDelete()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::afterLoad()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::afterSave()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::beforeDelete()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::beforeSave()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getAttribute()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getDefaultValue()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getEntityIdField()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getTable()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getType()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::getValueId()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::isStatic()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::setAttribute()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::setValueId()
Mage_Eav_Model_Entity_Attribute_Backend_Abstract::validate()

Documentation generated on Fri, 11 Feb 2011 17:00:51 +0200 by phpDocumentor 1.4.3