public function write_files($files) {
        if (empty($files)) {
            return '';
        }
        $string = '';
        foreach ($files as $file) {
            if ($file->is_directory()) {
                continue;
            }
            $string .= '<file name="' . $file->get_filename() . '" path="' . $file->get_filepath() . '" encoding="base64">';
            $string .= base64_encode($file->get_content());
            $string .= "</file>\n";
        }
        return $string;
    }
public function write_files($files) {
        if (empty($files)) {
            return '';
        }
        $string = '';
        foreach ($files as $file) {
            if ($file->is_directory()) {
                continue;
            }
            $string .= '<file name="' . $file->get_filename() . '" path="' . $file->get_filepath() . '" encoding="base64">';
            $string .= base64_encode($file->get_content());
            $string .= "</file>\n";
        }
        return $string;
    }
public function write_files ( $ files ) { if ( empty ( $ files ) ) { return '' ; } $ string = '' ; foreach ( $ files as $ file ) { if ( $ file -> is_directory ( ) ) { continue ; } $ string .= '<file name="' . $ file -> get_filename ( ) . '" path="' . $ file -> get_filepath ( ) . '" encoding="base64">' ; $ string .= base64_encode ( $ file -> get_content ( ) ) ; $ string .= "</file>\n" ; } return $ string ; }
Generte the XML to represent some files.
@param array of store array of stored_file objects.
@return string $string the XML.
Generte the XML to represent some files .