Reformat class files based on PHP coding convention

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9828 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-11-17 02:00:46 +00:00
parent 339b2de797
commit be6d9a096d
6 changed files with 1085 additions and 1081 deletions

View file

@ -1,14 +1,12 @@
<?php
/**
/**
* @class CacheApc
* @author NHN (developer@xpressengine.com)
* @brief APC Handler
* @version 0.1
*
**/
class CacheApc extends CacheBase {
class CacheApc extends CacheBase {
var $valid_time = 36000;
function getInstance($opt=null){
@ -68,5 +66,7 @@
function truncate() {
return apc_clear_cache('user');
}
}
?>
}
/* End of file CacheApc.class.php */
/* Location: ./classes/cache/CacheApc.class.php */

View file

@ -4,21 +4,20 @@
* @author NHN (developer@xpressengine.com)
* @brief Cache Handler
* @version 0.1
*
**/
class CacheHandler extends Handler {
var $handler = null;
var $keyGroupVersions = null;
function &getInstance($target='object') {
function &getInstance($target = 'object') {
if(!$GLOBALS['__XE_CACHE_HANDLER__'][$target]) {
$GLOBALS['__XE_CACHE_HANDLER__'][$target] = new CacheHandler($target);
}
return $GLOBALS['__XE_CACHE_HANDLER__'][$target];
}
function CacheHandler($target, $info=null) {
function CacheHandler($target, $info = null) {
if(!$info) $info = Context::getDBInfo();
if($info){
if($target == 'object'){
@ -127,4 +126,5 @@ class CacheBase{
}
}
/* End of file : CacheHandler.class.php */
/* End of file CacheHandler.class.php */
/* Location: ./classes/cache/CacheHandler.class.php */

View file

@ -1,14 +1,12 @@
<?php
/**
/**
* @class CacheMemcache
* @author NHN (developer@xpressengine.com)
* @brief Memcache Handler
* @version 0.1
*
**/
class CacheMemcache extends CacheBase {
class CacheMemcache extends CacheBase {
var $valid_time = 36000;
var $Memcache;
@ -90,8 +88,10 @@
}
function truncate() {
// not support memcached
// not supported on memcached
return false;
}
}
?>
}
/* End of file CacheMemcache.class.php */
/* Location: ./classes/cache/CacheMemcache.class.php */

View file

@ -1,11 +1,11 @@
<?php
/**
/**
* @class FileHandler
* @author NHN (developers@xpressengine.com)
* @brief contains methods for accessing file system
**/
class FileHandler {
class FileHandler {
/**
* @brief changes path of target file, directory into absolute path
* @param[in] $source path
@ -672,5 +672,7 @@
{
return (is_readable($filename) && !!filesize($filename));
}
}
?>
}
/* End of file FileObject.class.php */
/* Location: ./classes/file/FileObject.class.php */

View file

@ -1,12 +1,12 @@
<?php
/**
/**
* @class FileObject
* @author NHN (developers@xpressengine.com)
* @brief file abstraction class
**/
class FileObject extends Object
{
class FileObject extends Object
{
var $fp = null; ///< file descriptor
var $path = null; ///< file path
var $mode = "r"; ///< file open mode
@ -123,6 +123,7 @@
$this->fp = null;
}
}
}
}
?>
/* End of file FileObject.class.php */
/* Location: ./classes/file/FileObject.class.php */

View file

@ -1,5 +1,5 @@
<?php
/**
/**
* @class Object
* @author NHN (developers@xpressengine.com)
* @brief Base class design to pass the Object instance between XE Modules
@ -7,8 +7,7 @@
* @remark Every modules inherits from Object class. It includes error, message, and other variables for communicatin purpose
**/
class Object {
class Object {
var $error = 0; // / "Error code (if 0, it is not an error)
var $message = 'success'; // / "Error message (if success, it is not an error)
@ -144,5 +143,7 @@
function toBoolean() {
return $this->toBool();
}
}
?>
}
/* End of file Object.class.php */
/* Location: ./classes/object/Object.class.php */