public function write($output)
    {
        //lets parse the file
        if ($this->_hasBeenModified($this->_file) || !file_exists($output)) {
            //get the data
            file_put_contents($output, $this->getData());
            //update the timestamp
            $this->_cache_data['timestamp'] = time();
            file_put_contents($this->_cache_file, serialize($this->_cache_data));
        }
    }
public function write($output)
    {
        //lets parse the file
        if ($this->_hasBeenModified($this->_file) || !file_exists($output)) {
            //get the data
            file_put_contents($output, $this->getData());
            //update the timestamp
            $this->_cache_data['timestamp'] = time();
            file_put_contents($this->_cache_file, serialize($this->_cache_data));
        }
    }
public function write ( $ output ) { //lets parse the file if ( $ this -> _hasBeenModified ( $ this -> _file ) || ! file_exists ( $ output ) ) { //get the data file_put_contents ( $ output , $ this -> getData ( ) ) ; //update the timestamp $ this -> _cache_data [ 'timestamp' ] = time ( ) ; file_put_contents ( $ this -> _cache_file , serialize ( $ this -> _cache_data ) ) ; } }
Write the output of the file into and output.

@param string $output Compress file
@param bool   $force  Determine whether to foce the compression regardless of the
cache value

@return string
Write the output of the file into and output .