mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7642 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
97bc43ee55
commit
fd444dea19
5 changed files with 193 additions and 22 deletions
|
|
@ -49,8 +49,6 @@
|
|||
|
||||
$this->insertLog($obj->module_srl, $obj->document_srl, $obj->title, $obj->content);
|
||||
|
||||
$config = $oModuleModel->getModuleConfig('syndication');
|
||||
|
||||
$id = $oSyndicationModel->getID('channel', $obj->module_srl);
|
||||
$this->ping($id, 'deleted');
|
||||
|
||||
|
|
@ -68,14 +66,42 @@
|
|||
$output = executeQuery('syndication.getExceptModule', $obj);
|
||||
if($output->data->count) return new Object();
|
||||
|
||||
$config = $oModuleModel->getModuleConfig('syndication');
|
||||
|
||||
$id = $oSyndicationModel->getID('site', $obj->module_srl);
|
||||
$this->ping($id, 'deleted');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
||||
function triggerMoveDocumentToTrash(&$obj) {
|
||||
$document_srl = $obj->document_srl;
|
||||
$module_srl = $obj->module_srl;
|
||||
|
||||
$oSyndicationModel = &getModel('syndication');
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
if($oSyndicationModel->isExceptedModules($module_srl)) return new Object();
|
||||
|
||||
$id = $oSyndicationModel->getID('channel', $module_srl);
|
||||
$this->ping($id, 'deleted');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
function triggerRestoreTrash(&$obj) {
|
||||
$document_srl = $obj->document_srl;
|
||||
$module_srl = $obj->module_srl;
|
||||
|
||||
$oSyndicationModel = &getModel('syndication');
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
if($oSyndicationModel->isExceptedModules($module_srl)) return new Object();
|
||||
|
||||
$id = $oSyndicationModel->getID('article', $module_srl.'-'.$document_srl);
|
||||
$this->ping($id, 'article');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
function insertLog($module_srl, $document_srl, $title = null, $summary = null) {
|
||||
$args->module_srl = $module_srl;
|
||||
$args->document_srl = $document_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue