Last change
on this file since 42 was
42,
checked in by toemon, 16 years ago
|
include/xml.phpライブラリーのD3pipeとの重複でXPressME側で重複を回避していても、モジュールのロード順番などでD3pipeが後になると、D3Pipe側で重複エラーになるので、クラス名、function名を変更することにした。
|
File size:
533 bytes
|
Rev | Line | |
---|
[36] | 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 | {
|
---|
[42] | 7 | $xml = xpress_XML_serialize($block);
|
---|
[36] | 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);
|
---|
[42] | 15 | return @xpress_XML_unserialize($xml_data);
|
---|
[36] | 16 | }
|
---|
| 17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.