mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Convert Object class to BaseObject in core classes
This commit is contained in:
parent
5bdf95932f
commit
1a81fd43f3
16 changed files with 129 additions and 120 deletions
|
|
@ -18,7 +18,7 @@ class ModuleHandler extends Handler
|
|||
var $mid = NULL; ///< Module ID
|
||||
var $document_srl = NULL; ///< Document Number
|
||||
var $module_srl = NULL; ///< Module Number
|
||||
var $module_info = NULL; ///< Module Info. Object
|
||||
var $module_info = NULL; ///< Module Info
|
||||
var $error = NULL; ///< an error code.
|
||||
var $httpStatusCode = NULL; ///< http status code.
|
||||
|
||||
|
|
@ -1237,14 +1237,14 @@ class ModuleHandler extends Handler
|
|||
* @param string $trigger_name trigger's name to call
|
||||
* @param string $called_position called position
|
||||
* @param object $obj an object as a parameter to trigger
|
||||
* @return Object
|
||||
* @return BaseObject
|
||||
* */
|
||||
public static function triggerCall($trigger_name, $called_position, &$obj)
|
||||
{
|
||||
// skip if not installed
|
||||
if(!Context::isInstalled())
|
||||
{
|
||||
return new Object();
|
||||
return new BaseObject();
|
||||
}
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
|
|
@ -1292,7 +1292,7 @@ class ModuleHandler extends Handler
|
|||
));
|
||||
}
|
||||
|
||||
if(is_object($output) && method_exists($output, 'toBool') && !$output->toBool())
|
||||
if($output instanceof BaseObject && !$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
|
@ -1342,7 +1342,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
return new Object();
|
||||
return new BaseObject();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* @author NAVER (developers@xpressengine.com)
|
||||
* base class of ModuleHandler
|
||||
* */
|
||||
class ModuleObject extends Object
|
||||
class ModuleObject extends BaseObject
|
||||
{
|
||||
|
||||
var $mid = NULL; ///< string to represent run-time instance of Module (XE Module)
|
||||
|
|
@ -561,7 +561,7 @@ class ModuleObject extends Object
|
|||
}
|
||||
|
||||
// check return value of action
|
||||
if($output instanceof Object)
|
||||
if($output instanceof BaseObject)
|
||||
{
|
||||
$this->setError($output->getError());
|
||||
$this->setMessage($output->getMessage());
|
||||
|
|
@ -587,11 +587,11 @@ class ModuleObject extends Object
|
|||
$addon_file = $oAddonController->getCacheFilePath($is_mobile ? "mobile" : "pc");
|
||||
if(FileHandler::exists($addon_file)) include($addon_file);
|
||||
|
||||
if($original_output instanceof Object && !$original_output->toBool())
|
||||
if($original_output instanceof BaseObject && !$original_output->toBool())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
elseif($output instanceof Object && $output->getError())
|
||||
elseif($output instanceof BaseObject && $output->getError())
|
||||
{
|
||||
$this->setError($output->getError());
|
||||
$this->setMessage($output->getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue