XPressME Integration Kit

Trac

source: trunk/include/xoops_block_cache.php @ 42

Last change on this file since 42 was 42, checked in by toemon, 15 years ago

include/xml.phpライブラリーのD3pipeとの重複でXPressME側で重複を回避していても、モジュールのロード順番などでD3pipeが後になると、D3Pipe側で重複エラーになるので、クラス名、function名を変更することにした。

File size: 533 bytes
Line 
1<?php
2        require_once dirname( __FILE__ ) .'/xml.php' ;
3        require_once dirname( __FILE__ ) .'/xpress_cache.php' ;
4       
5        function xpress_block_cache_write($mydirname,$block_name,$block)
6        {
7                        $xml = xpress_XML_serialize($block);
8                        $xml_name = $block_name . '.xml';
9                        xpress_cache_write($mydirname,$xml_name,$xml);
10        }
11        function xpress_block_cache_read($mydirname,$block_name)
12        {
13                        $xml_name = $block_name . '.xml';
14                        $xml_data = xpress_cache_read($mydirname,$xml_name);
15                        return @xpress_XML_unserialize($xml_data);
16        }
17?>
Note: See TracBrowser for help on using the repository browser.