src/ICal/ICal.php
public function initString($string)
    {
        if (empty($this->cal)) {
            $lines = explode(PHP_EOL, $string);

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

        return $this;
    }
public function initString($string)
    {
        if (empty($this->cal)) {
            $lines = explode(PHP_EOL, $string);

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

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

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