src/rss/Crss.php
public function getRSS()
    {
        $this->checkValidity();

        if (!$this->valid) {
            $this->createRSS();
        }

        if ($this->sendHeader) {
            header('Content-type: application/rss+xml; charset=UTF-8');
        }

        readfile($this->rssFile);
    }
public function getRSS()
    {
        $this->checkValidity();

        if (!$this->valid) {
            $this->createRSS();
        }

        if ($this->sendHeader) {
            header('Content-type: application/rss+xml; charset=UTF-8');
        }

        readfile($this->rssFile);
    }
public function getRSS ( ) { $ this -> checkValidity ( ) ; if ( ! $ this -> valid ) { $ this -> createRSS ( ) ; } if ( $ this -> sendHeader ) { header ( 'Content-type: application/rss+xml; charset=UTF-8' ) ; } readfile ( $ this -> rssFile ) ; }
Function that should be called to receive the RSS feed.
Checks if the latest RSS File is up to date, if not, generates a new one.
@return void
Function that should be called to receive the RSS feed . Checks if the latest RSS File is up to date if not generates a new one .