php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경

This commit is contained in:
BJRambo 2017-11-28 20:01:28 +09:00
parent f4c19a3e0f
commit f3f40f6859
109 changed files with 976 additions and 976 deletions

View file

@ -657,18 +657,18 @@ class boardView extends board
$document_srl = Context::get('document_srl');
if(!$document_srl)
{
return new Object(-1, "msg_invalid_request");
return new BaseObject(-1, "msg_invalid_request");
}
if($this->grant->view == false || ($this->module_info->consultation == 'Y' && !$this->grant->manager && !$this->grant->consultation_read))
{
return new Object(-1, "msg_not_permitted");
return new BaseObject(-1, "msg_not_permitted");
}
$oDocument = getModel('document')->getDocument($document_srl);
if(!$oDocument->isExists())
{
return new Object(-1, "msg_invalid_request");
return new BaseObject(-1, "msg_invalid_request");
}
Context::set('oDocument', $oDocument);
@ -765,20 +765,20 @@ class boardView extends board
{
$format = lang('msg_protect_regdate_document');
$massage = sprintf($format, $this->module_info->protect_document_regdate);
return new Object(-1, $massage);
return new BaseObject(-1, $massage);
}
}
if($this->module_info->protect_content == "Y" || $this->module_info->protect_update_content == 'Y')
{
if($oDocument->get('comment_count') > 0 && $this->grant->manager == false)
{
return new Object(-1, 'msg_protect_update_content');
return new BaseObject(-1, 'msg_protect_update_content');
}
}
}
if($member_info->is_admin == 'Y' && $logged_info->is_admin != 'Y')
{
return new Object(-1, 'msg_admin_document_no_modify');
return new BaseObject(-1, 'msg_admin_document_no_modify');
}
// if the document is not granted, then back to the password input form
@ -892,7 +892,7 @@ class boardView extends board
{
$format = lang('msg_protect_regdate_document');
$massage = sprintf($format, $this->module_info->protect_document_regdate);
return new Object(-1, $massage);
return new BaseObject(-1, $massage);
}
}
@ -900,7 +900,7 @@ class boardView extends board
{
if($oDocument->get('comment_count')>0 && $this->grant->manager == false)
{
return new Object(-1,'msg_protect_delete_content');
return new BaseObject(-1,'msg_protect_delete_content');
}
}
@ -977,7 +977,7 @@ class boardView extends board
// if the parent comment is not existed
if(!$parent_srl)
{
return new Object(-1, 'msg_invalid_request');
return new BaseObject(-1, 'msg_invalid_request');
}
// get the comment
@ -1039,7 +1039,7 @@ class boardView extends board
// if the comment is not existed
if(!$comment_srl)
{
return new Object(-1, 'msg_invalid_request');
return new BaseObject(-1, 'msg_invalid_request');
}
// get comment information
@ -1054,7 +1054,7 @@ class boardView extends board
{
$format = lang('msg_protect_regdate_comment');
$massage = sprintf($format, $this->module_info->protect_document_regdate);
return new Object(-1, $massage);
return new BaseObject(-1, $massage);
}
}
if($this->module_info->protect_update_comment === 'Y' && $this->grant->manager == false)
@ -1062,13 +1062,13 @@ class boardView extends board
$childs = $oCommentModel->getChildComments($comment_srl);
if(count($childs) > 0)
{
return new Object(-1, 'msg_board_update_protect_comment');
return new BaseObject(-1, 'msg_board_update_protect_comment');
}
}
if($member_info->is_admin == 'Y' && $logged_info->is_admin != 'Y')
{
return new Object(-1, 'msg_admin_comment_no_modify');
return new BaseObject(-1, 'msg_admin_comment_no_modify');
}
// if the comment is not exited, alert an error message
@ -1122,7 +1122,7 @@ class boardView extends board
{
$format = lang('msg_protect_regdate_comment');
$massage = sprintf($format, $this->module_info->protect_document_regdate);
return new Object(-1, $massage);
return new BaseObject(-1, $massage);
}
}
@ -1132,7 +1132,7 @@ class boardView extends board
$childs = $oCommentModel->getChildComments($comment_srl);
if(count($childs) > 0)
{
return new Object(-1, 'msg_board_delete_protect_comment');
return new BaseObject(-1, 'msg_board_delete_protect_comment');
}
}
@ -1212,7 +1212,7 @@ class boardView extends board
if($this->grant->update_view !== true)
{
return new Object(-1, 'msg_not_permitted');
return new BaseObject(-1, 'msg_not_permitted');
}
$updatelog = $oDocumentModel->getDocumentUpdateLog($document_srl);
@ -1232,7 +1232,7 @@ class boardView extends board
if($this->grant->update_view !== true)
{
return new Object(-1, 'msg_not_permitted');
return new BaseObject(-1, 'msg_not_permitted');
}
$update_log = $oDocumentModel->getUpdateLog($update_id);
@ -1268,7 +1268,7 @@ class boardView extends board
{
iF($this->grant->vote_log_view !== true)
{
return new Object(-1, 'msg_not_permitted');
return new BaseObject(-1, 'msg_not_permitted');
}
$oMemberModel = getModel('member');
@ -1289,7 +1289,7 @@ class boardView extends board
}
else
{
return new Object(-1, 'msg_not_target');
return new BaseObject(-1, 'msg_not_target');
}
$output = executeQueryArray($queryId, $args);