27 $args->module =
'page';
31 unset(
$args->page_name);
33 if(
$args->use_mobile !=
'Y')
$args->use_mobile =
'';
37 $columnList = array(
'module_srl');
41 unset(
$args->module_srl);
45 foreach(
$args as $key=>$val)
53 switch (
$args->page_type)
65 unset(
$args->page_caching_interval);
78 if(!
$args->module_srl)
81 $msg_code =
'success_registed';
86 $msg_code =
'success_updated';
92 $this->
add(
'module_srl',
$output->get(
'module_srl'));
104 $this->procPageAdminInsert();
110 preg_match_all(
'!<img hasContent="true" ([^>]+)!is', $target, $matches);
111 $pattern =
'!document_srl="(\d+)"!';
112 foreach($matches[1] as $match)
115 preg_match($pattern, $match, $match2);
118 $array[(int)$match2[1]] = 1;
136 if($type ==
"mobile")
138 if(!$mcontent) $mcontent =
'';
143 if(!isset($content)) $content =
'';
147 $document_srls = array();
148 $this->putDocumentsInPageToArray(
$module_info->content, $document_srls);
149 $this->putDocumentsInPageToArray(
$module_info->mcontent, $document_srls);
153 $obj =
new stdClass();
155 $obj->list_count = 99999999;
159 foreach(
$output->data as $document)
161 if($document_srls[$document->document_srl])
continue;
172 $oFileController->setFilesValid(
$module_info->module_srl);
177 $this->setMessage($msg_code);
180 $this->procPageAdminRemoveWidgetCache();
194 $this->add(
'module',
'page');
196 $this->setMessage(
'success_deleted');
199 $this->setRedirectUrl($returnUrl);
227 $oFileController->printUploadedFileList($upload_target_srl);
242 if($file_srl)
$output = $oFileController->deleteFile($file_srl, $this->grant->manager);
244 $oFileController->printUploadedFileList($upload_target_srl);
257 $columnList = array(
'module_srl',
'content');
264 $oWidgetController->recompileWidget($content);
270 foreach($cache_files as $file_name)
279 foreach($cache_files as $file_name)
286 if($oCacheHandler->isSupport())
289 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
290 $oCacheHandler->delete($cache_key);
306 return new BaseObject(-1,
'msg_not_permitted');
310 $obj->module_srl = $this->module_info->module_srl;
311 $obj->is_notice =
'N';
313 settype(
$obj->title,
"string");
316 if(
$obj->title ==
'')
$obj->title =
'Untitled';
324 $target = (
$obj->ismobile ==
'Y') ?
'mdocument_srl' :
'document_srl';
327 if($oDocument->isExists() && $oDocument->document_srl ==
$obj->document_srl)
330 $msg_code =
'success_updated';
336 $msg_code =
'success_registed';
340 if(!isset($this->module_info->{$target}) || (isset($this->module_info->{$target}) && $this->module_info->{$target} !==
$document_srl))
352 $this->add(
'document_srl',
$output->get(
'document_srl'));
353 $this->add(
'is_mobile',
$obj->ismobile);
356 $this->setMessage($msg_code);
setMessage($message= 'success', $type=NULL)
getController($module_name)
procPageAdminRemoveWidgetCache()
Clear widget cache files of the specified page.
procPageAdminInsertConfig()
Additional pages of basic information.
procPageAdminInsertContent()
Save page edits.
& getInstance($target= 'object', $info=null, $always_use_file=false)
high class of the module page
procPageAdminDelete()
Delete page.
$module_info
an object containing the module information
setRedirectUrl($url= './', $output=NULL)
page of the module admin controller class
readDir($path, $filter= '', $to_lower=FALSE, $concat_prefix=FALSE)
cut_str($string, $cut_size=0, $tail= '...')
procPageAdminArticleDocumentInsert()
putDocumentsInPageToArray($target, &$array)
procPageAdminInsert()
Add a Page.
procPageAdminUpdate()
Page Modify.
procDeleteFile()
Delete the attachment Delete individual files in the editor using.
procUploadFile()
Upload attachments.