Minahito
minah****@users*****
2006年 1月 5日 (木) 17:26:23 JST
Index: xoops2jp/html/kernel/XCube_RenderCache.class.php diff -u /dev/null xoops2jp/html/kernel/XCube_RenderCache.class.php:1.1.2.1 --- /dev/null Thu Jan 5 17:26:23 2006 +++ xoops2jp/html/kernel/XCube_RenderCache.class.php Thu Jan 5 17:26:23 2006 @@ -0,0 +1,65 @@ +<?php +// $Id: XCube_RenderCache.class.php,v 1.1.2.1 2006/01/05 08:26:23 minahito Exp $ + +class XCube_RenderCache +{ + var $mCacheId = null; + var $mResourceName = null; + + function XCube_RenderCache() + { + } + + /** + * @return bool + */ + function isCache($cachetime = null) + { + } + + function setResourceName($name) + { + $this->mResourceName = $name; + } + + /** + * @return string + */ + function getCacheId() + { + } + + /** + * @return string + */ + function _getFileName() + { + } + + function save($renderTarget) + { + $filename = $this->_getFileName(); + $fp = fopen($filename, "wb"); + fwrite($fp, $renderTarget->getResult()); + fclose($fp); + } + + function load() + { + if ($this->isCache()) { + return file_get_contents($this->_getFileName()); + } + } + + function clear() + { + } + + function reset() + { + $this->mResourceName = null; + } +} + + +?> \ No newline at end of file