MetaDate::GetTypeName PHP Method

GetTypeName() public static method

public static GetTypeName ( )
    public static function GetTypeName()
    {
        return 'date';
    }

Usage Example

Ejemplo n.º 1
0
 public function setValue($p_value)
 {
     if (!MetaDate::IsValid($p_value)) {
         throw new InvalidValueException($p_value, MetaDate::GetTypeName());
     }
     $this->m_value = trim($p_value);
     list($this->m_year, $this->m_month, $this->m_monthDay) = preg_split('/-/', $this->m_value);
     $timestamp = strtotime($this->m_value);
     $date_time = getdate($timestamp);
     $this->m_weekDay = $date_time['wday'];
 }