private function _write($file, $data, $config)
    {
        $result = file_put_contents($file, $data);
        if ($result !== false) {
            // set permissions of the new file (no execute)
            $chmod = $config->get('Cache.SerializerPermissions');
            if ($chmod !== null) {
                chmod($file, $chmod & 0666);
            }
        }
        return $result;
    }
private function _write($file, $data, $config)
    {
        $result = file_put_contents($file, $data);
        if ($result !== false) {
            // set permissions of the new file (no execute)
            $chmod = $config->get('Cache.SerializerPermissions');
            if ($chmod !== null) {
                chmod($file, $chmod & 0666);
            }
        }
        return $result;
    }
private function _write ( $ file , $ data , $ config ) { $ result = file_put_contents ( $ file , $ data ) ; if ( $ result !== false ) { // set permissions of the new file (no execute) $ chmod = $ config -> get ( 'Cache.SerializerPermissions' ) ; if ( $ chmod !== null ) { chmod ( $ file , $ chmod & 0666 ) ; } } return $ result ; }
Convenience wrapper function for file_put_contents
@param string $file File name to write to
@param string $data Data to write into file
@param HTMLPurifier_Config $config
@return int|bool Number of bytes written if success, or false if failure.
Convenience wrapper function for file_put_contents