Back to FeedDocument class

Method __construct

public
__construct
(mixed $options = array())
Class constructor
Parameters
  • array $options Associative array of options
Since
  • 1.7.0
Class: FeedDocument
Project: Joomla

Method __construct - Source code

/**
 * Class constructor
 *
 * @param   array  $options  Associative array of options
 *
 * @since  1.7.0
 */
public function __construct($options = array())
{
    parent::__construct($options);
    // Set document type
    $this->_type = 'feed';
    // Gets and sets timezone offset from site configuration
    $this->lastBuildDate = CmsFactory::getDate();
    $this->lastBuildDate->setTimezone(new \DateTimeZone(CmsFactory::getApplication()->get('offset', 'UTC')));
}