mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
issue 2662 trash, widget, session, trackback, spamfilter, tag
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12260 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e1a22ca6f0
commit
5219a360c6
31 changed files with 3465 additions and 3173 deletions
|
|
@ -159,7 +159,8 @@ class trashAdminController extends trash
|
|||
$originObject = unserialize($output->data->getSerializedObject());
|
||||
$output = $oAdminController->restoreTrash($originObject);
|
||||
|
||||
if(!$output->toBool()) {
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return new Object(-1, $output->message);
|
||||
}
|
||||
|
|
@ -189,7 +190,8 @@ class trashAdminController extends trash
|
|||
$trashSrls = Context::get('trash_srls');
|
||||
if($trashSrls) $trashSrlList = explode(',', $trashSrls);
|
||||
|
||||
if(count($trashSrlList) > 0) {
|
||||
if(count($trashSrlList) > 0)
|
||||
{
|
||||
$oTrashModel = &getModel('trash');
|
||||
$args->trashSrl = $trashSrlList;
|
||||
$output = $oTrashModel->getTrashList($args);
|
||||
|
|
@ -220,6 +222,5 @@ class trashAdminController extends trash
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file trash.controller.php */
|
||||
/* Location: ./modules/trash/trash.controller.php */
|
||||
/* End of file trash.admin.controller.php */
|
||||
/* Location: ./modules/trash/trash.admin.controller.php */
|
||||
|
|
|
|||
|
|
@ -7,12 +7,14 @@
|
|||
* @package /modules/trash
|
||||
* @version 0.1
|
||||
*/
|
||||
class trashAdminView extends trash {
|
||||
class trashAdminView extends trash
|
||||
{
|
||||
/**
|
||||
* Initialization
|
||||
* @return void
|
||||
*/
|
||||
function init() {
|
||||
function init()
|
||||
{
|
||||
// 템플릿 경로 지정 (board의 경우 tpl에 관리자용 템플릿 모아놓음)
|
||||
$template_path = sprintf("%stpl/",$this->module_path);
|
||||
$this->setTemplatePath($template_path);
|
||||
|
|
@ -22,7 +24,8 @@ class trashAdminView extends trash {
|
|||
* Trash list
|
||||
* @return void
|
||||
*/
|
||||
function dispTrashAdminList() {
|
||||
function dispTrashAdminList()
|
||||
{
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
||||
|
|
@ -47,4 +50,5 @@ class trashAdminView extends trash {
|
|||
$this->setTemplateFile('trash_list');
|
||||
}
|
||||
}
|
||||
?>
|
||||
/* End of file trash.admin.view.php */
|
||||
/* Location: ./modules/trash/trash.admin.view.php */
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
require_once(_XE_PATH_.'modules/trash/model/TrashVO.php');
|
||||
|
||||
/**
|
||||
* trash class
|
||||
* trash the module's high class
|
||||
|
|
@ -7,15 +9,14 @@
|
|||
* @package /modules/trash
|
||||
* @version 0.1
|
||||
*/
|
||||
|
||||
require_once(_XE_PATH_.'modules/trash/model/TrashVO.php');
|
||||
|
||||
class trash extends ModuleObject {
|
||||
class trash extends ModuleObject
|
||||
{
|
||||
/**
|
||||
* Implement if additional tasks are necessary when installing
|
||||
* @return Object
|
||||
*/
|
||||
function moduleInstall() {
|
||||
function moduleInstall()
|
||||
{
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
@ -23,7 +24,8 @@ class trash extends ModuleObject {
|
|||
* A method to check if successfully installed
|
||||
* @return bool
|
||||
*/
|
||||
function checkUpdate() {
|
||||
function checkUpdate()
|
||||
{
|
||||
//$oDB = &DB::getInstance();
|
||||
//$oModuleModel = &getModel('module');
|
||||
|
||||
|
|
@ -34,12 +36,13 @@ class trash extends ModuleObject {
|
|||
* Execute update
|
||||
* @return Object
|
||||
*/
|
||||
function moduleUpdate() {
|
||||
function moduleUpdate()
|
||||
{
|
||||
//$oDB = &DB::getInstance();
|
||||
//$oModuleModel = &getModel('module');
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
/* End of file trash.class.php */
|
||||
/* Location: ./modules/trash/trash.class.php */
|
||||
|
|
|
|||
|
|
@ -93,4 +93,5 @@ class trashModel extends trash
|
|||
$oTrashVO->setRegdate($stdObject->regdate);
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file trash.model.php */
|
||||
/* Location: ./modules/trash/trash.model.php */
|
||||
|
|
|
|||
|
|
@ -7,12 +7,15 @@
|
|||
* @package /modules/trash
|
||||
* @version 0.1
|
||||
*/
|
||||
class trashView extends trash {
|
||||
class trashView extends trash
|
||||
{
|
||||
/**
|
||||
* Initialization
|
||||
* @return void
|
||||
*/
|
||||
function init() {
|
||||
function init()
|
||||
{
|
||||
}
|
||||
}
|
||||
?>
|
||||
/* End of file trash.view.php */
|
||||
/* Location: ./modules/trash/trash.view.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue