22 return new BaseObject(-1,
'msg_not_permitted');
30 if(!$oTrashVO->getTrashSrl()) $oTrashVO->setTrashSrl(
getNextSequence());
31 if(!is_string($oTrashVO->getSerializedObject())) $oTrashVO->setSerializedObject(serialize($oTrashVO->getSerializedObject()));
32 $oTrashVO->setIpaddress($_SERVER[
'REMOTE_ADDR']);
34 $oTrashVO->setRegdate(date(
'YmdHis'));
54 if(is_array($tmpTrashSrls)) $trashSrls = $tmpTrashSrls;
55 else $trashSrls = explode(
'|@|', $tmpTrashSrls);
81 $output = $oTrashModel->getTrashAllList(array());
89 foreach(
$output->data as $value)
91 $trashSrls[] = $value->getTrashSrl();
97 $args =
new stdClass();
98 $args->trashSrl = $trashSrls;
108 foreach(
$output->data as $oTrashVO)
114 $classFile = sprintf(
'%s%s.admin.controller.php', $classPath, $oTrashVO->getOriginModule());
116 if(!file_exists($classFile))
return new BaseObject(-1,
'not exist restore module class file');
122 if(!$output2->toBool())
return new BaseObject(-1, $output2->message);
137 if(is_array($trashSrlList))
143 foreach($trashSrlList as $value)
146 $output = $oTrashModel->getTrash($value);
153 $classFile = sprintf(
'%s%s.admin.controller.php', $classPath,
$output->data->getOriginModule());
155 if(!file_exists($classFile))
return new BaseObject(-1,
'not exist restore module class file');
160 $originObject = unserialize(
$output->data->getSerializedObject());
163 if(!$output->toBool())
192 if($trashSrls) $trashSrlList = explode(
',', $trashSrls);
194 if(count($trashSrlList) > 0)
197 $args =
new stdClass();
198 $args->trashSrl = $trashSrlList;
205 $trashList = array();
209 $oSecurity =
new Security($trashList);
210 $oSecurity->encodeHTML(
'..');
211 $this->
add(
'trash_list', $trashList);
221 if(!is_array($trashSrls))
return false;
222 $args =
new stdClass();
223 $args->trashSrls = $trashSrls;
225 if(!
$output->toBool())
return false;
setMessage($message= 'success', $type=NULL)
procTrashAdminEmptyTrash()
setRedirectUrl($url= './', $output=NULL)
getInstance($db_type=NULL)
_relationDataDelete($isAll, &$trashSrls)
getAdminController($module_name)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
if(isset($_REQUEST['encode'])) if(isset($_REQUEST['decode'])) $lang