Mage_Customer_Block_Widget_Dob Class Reference

Inheritance diagram for Mage_Customer_Block_Widget_Dob:

Mage_Customer_Block_Widget_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 _construct ()
 isEnabled ()
 isRequired ()
 setDate ($date)
 getDay ()
 getMonth ()
 getYear ()
 getDateFormat ()


Detailed Description

Definition at line 27 of file Dob.php.


Member Function Documentation

_construct (  ) 

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 29 of file Dob.php.

00030     {
00031         parent::_construct();
00032 
00033         // default template location
00034         $this->setTemplate('customer/widget/dob.phtml');
00035     }

getDateFormat (  ) 

Returns format which will be applied for DOB in javascript

Returns:
string

Definition at line 74 of file Dob.php.

00075     {
00076         return Mage::app()->getLocale()->getDateStrFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
00077     }

getDay (  ) 

Definition at line 54 of file Dob.php.

00055     {
00056         return $this->getTime() ? date('d', $this->getTime()) : '';
00057     }

getMonth (  ) 

Definition at line 59 of file Dob.php.

00060     {
00061         return $this->getTime() ? date('m', $this->getTime()) : '';
00062     }

getYear (  ) 

Definition at line 64 of file Dob.php.

00065     {
00066         return $this->getTime() ? date('Y', $this->getTime()) : '';
00067     }

isEnabled (  ) 

Definition at line 37 of file Dob.php.

00038     {
00039         return (bool)$this->getConfig('dob_show');
00040     }

isRequired (  ) 

Definition at line 42 of file Dob.php.

00043     {
00044         return $this->getConfig('dob_show')=='req';
00045     }

setDate ( date  ) 

Definition at line 47 of file Dob.php.

00048     {
00049         $this->setTime($date ? strtotime($date) : false);
00050         $this->setData('date', $date);
00051         return $this;
00052     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:02 2009 for Magento by  doxygen 1.5.8