public function write($path, $data, $public = true)
    {
        $path = $this->_relativepath($path, $public);
        $this->_write($path, $data, $public);
    }
public function write($path, $data, $public = true)
    {
        $path = $this->_relativepath($path, $public);
        $this->_write($path, $data, $public);
    }
public function write ( $ path , $ data , $ public = true ) { $ path = $ this -> _relativepath ( $ path , $ public ) ; $ this -> _write ( $ path , $ data , $ public ) ; }
Write data to a path. The boolean value determins whether to look for the
path in the public or protected folder.

@param string $path   The path
@param string $data   The data to write to the path
@param bool   $public Determines if the path is in the public/protected folder

@return string
Write data to a path . The boolean value determins whether to look for the path in the public or protected folder .