src/ICal/ICal.php
public function initFile($file)
    {
        if (empty($this->cal)) {
            $lines = $this->fileOrUrl($file);

            $this->initLines($lines);
        } else {
            trigger_error('ICal::initFile: Calendar already initialised in constructor', E_USER_NOTICE);
        }

        return $this;
    }
public function initFile($file)
    {
        if (empty($this->cal)) {
            $lines = $this->fileOrUrl($file);

            $this->initLines($lines);
        } else {
            trigger_error('ICal::initFile: Calendar already initialised in constructor', E_USER_NOTICE);
        }

        return $this;
    }
public function initFile ( $ file ) { if ( empty ( $ this -> cal ) ) { $ lines = $ this -> fileOrUrl ( $ file ) ; $ this -> initLines ( $ lines ) ; } else { trigger_error ( 'ICal::initFile: Calendar already initialised in constructor' , E_USER_NOTICE ) ; } return $ this ; }
Initialises lines from a file

@param  string $file
@return ICal
Initialises lines from a file