protected function _rewrite($file, $data, $create = false, $customFlags = 0)
    {
        if ($create) {
            return $this->_file_put_contents(
                $file,
                $data,
                $customFlags
            );
        }

        return false;
    }
protected function _rewrite($file, $data, $create = false, $customFlags = 0)
    {
        if ($create) {
            return $this->_file_put_contents(
                $file,
                $data,
                $customFlags
            );
        }

        return false;
    }
protected function _rewrite ( $ file , $ data , $ create = false , $ customFlags = 0 ) { if ( $ create ) { return $ this -> _file_put_contents ( $ file , $ data , $ customFlags ) ; } return false ; }
Writes content to the beginning of a file under consideration of virtual-fs

This method is intend to write content to a file under consideration of virtual-fs.

@param string  $file        The file to write to
@param string  $data        The content to write
@param bool $create      TRUE to create file if it not exists, otherwise FALSE to do not
@param int $customFlags Custom flags as integer

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed INTEGER bytes written on success, otherwise FALSE on error
@access protected
Writes content to the beginning of a file under consideration of virtual - fs