__construct() protected method

If no version is given, a feed in RSS 2.0 format will be generated.
protected __construct ( string $version = Feed::RSS2 )
$version string the version constant (RSS1/RSS2/ATOM).
Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct()
 {
     parent::__construct(Feed::ATOM);
 }