Class Mage_XmlConnect_Block_Adminhtml_Mobile_Form_Element_Datetime

Description

XmlConnect data selector form element

Located in /XmlConnect/Block/Adminhtml/Mobile/Form/Element/Datetime.php (line 34)

Varien_Data_Form_Element_Abstract
   |
   --Mage_XmlConnect_Block_Adminhtml_Mobile_Form_Element_Datetime
Variable Summary
Zend_Date $_value
Method Summary
Mage_XmlConnect_Block_Adminhtml_Mobile_Form_Element_Datetime __construct ([ $attributes = array()])
string getElementHtml ()
string getValue ([string $format = null])
Zend_Date getValueInstance ()
Varien_Data_Form_Element_Date setValue (mixed $value, [string $format = null], [string $locale = null])
int _toTimestamp (int $value)
Variables
Zend_Date $_value (line 39)
  • access: protected
Methods
Constructor __construct (line 41)
  • access: public
Mage_XmlConnect_Block_Adminhtml_Mobile_Form_Element_Datetime __construct ([ $attributes = array()])
  • $attributes
getElementHtml (line 152)

Output the input field and assign calendar instance to it.

In order to output the date:

  • the value must be instantiated (Zend_Date)
  • output format must be set (compatible with Zend_Date)

  • access: public
string getElementHtml ()
getValue (line 120)

Get date value as string.

Format can be specified, or it will be taken from $this->getFormat()

  • access: public
string getValue ([string $format = null])
  • string $format: (compatible with Zend_Date)
getValueInstance (line 136)

Get value instance, if any

  • access: public
Zend_Date getValueInstance ()
setValue (line 77)

Set date value If Zend_Date instance is provided instead of value, other params will be ignored.

Format and locale must be compatible with Zend_Date

  • access: public
Varien_Data_Form_Element_Date setValue (mixed $value, [string $format = null], [string $locale = null])
  • mixed $value
  • string $format
  • string $locale
_toTimestamp (line 58)

If script executes on x64 system, converts large numeric values to timestamp limit

  • access: protected
int _toTimestamp (int $value)
  • int $value

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