SimplePie_Parse_Date::__construct PHP Method

__construct() public method

Create new SimplePie_Parse_Date object, and set self::day_pcre, self::month_pcre, and self::built_in
public __construct ( )
    public function __construct()
    {
        $this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
        $this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')';
        static $cache;
        if (!isset($cache[get_class($this)])) {
            $all_methods = get_class_methods($this);
            foreach ($all_methods as $method) {
                if (strtolower(substr($method, 0, 5)) === 'date_') {
                    $cache[get_class($this)][] = $method;
                }
            }
        }
        foreach ($cache[get_class($this)] as $method) {
            $this->built_in[] = $method;
        }
    }