mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
add phpDoc comment in trash module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10800 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
663fcaf84b
commit
7f54f7b14e
6 changed files with 95 additions and 51 deletions
|
|
@ -1,15 +1,19 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class documentController
|
* trashAdminController class
|
||||||
|
* trash admin the module's controller class
|
||||||
|
*
|
||||||
* @author NHN (developers@xpressengine.com)
|
* @author NHN (developers@xpressengine.com)
|
||||||
* @brief document the module's controller class
|
* @package /modules/trash
|
||||||
**/
|
* @version 0.1
|
||||||
|
*/
|
||||||
class trashAdminController extends trash
|
class trashAdminController extends trash
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @brief object insert to trash
|
* object insert to trash
|
||||||
* @param $obj : TrashVO type object
|
* @param TrashVO $obj
|
||||||
**/
|
* @return Object
|
||||||
|
*/
|
||||||
function insertTrash($obj)
|
function insertTrash($obj)
|
||||||
{
|
{
|
||||||
if(Context::get('is_logged'))
|
if(Context::get('is_logged'))
|
||||||
|
|
@ -32,9 +36,10 @@ class trashAdminController extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief empty trash
|
* Empty trash
|
||||||
* @param trashSrls : trash_srl in array
|
* @param array trashSrls
|
||||||
**/
|
* @return Object
|
||||||
|
*/
|
||||||
function procTrashAdminEmptyTrash()
|
function procTrashAdminEmptyTrash()
|
||||||
{
|
{
|
||||||
global $lang;
|
global $lang;
|
||||||
|
|
@ -60,8 +65,11 @@ class trashAdminController extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief empty trash - private method
|
* Empty trash - private method
|
||||||
**/
|
* @param string $isAll
|
||||||
|
* @param array trashSrls
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
function _relationDataDelete($isAll, &$trashSrls)
|
function _relationDataDelete($isAll, &$trashSrls)
|
||||||
{
|
{
|
||||||
if($isAll == 'true') $trashSrls = array();
|
if($isAll == 'true') $trashSrls = array();
|
||||||
|
|
@ -95,8 +103,9 @@ class trashAdminController extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief restore content object
|
* Restore content object
|
||||||
**/
|
* @return void|Object
|
||||||
|
*/
|
||||||
function procTrashAdminRestore()
|
function procTrashAdminRestore()
|
||||||
{
|
{
|
||||||
global $lang;
|
global $lang;
|
||||||
|
|
@ -150,6 +159,10 @@ class trashAdminController extends trash
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set trash list to Context
|
||||||
|
* @return void|Object
|
||||||
|
*/
|
||||||
function procTrashAdminGetList()
|
function procTrashAdminGetList()
|
||||||
{
|
{
|
||||||
if(!Context::get('is_logged')) return new Object(-1,'msg_not_permitted');
|
if(!Context::get('is_logged')) return new Object(-1,'msg_not_permitted');
|
||||||
|
|
@ -173,9 +186,10 @@ class trashAdminController extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief empty trash
|
* empty trash
|
||||||
* @param trashSrls : trash_srl in array
|
* @param array trashSrls
|
||||||
**/
|
* @return bool
|
||||||
|
*/
|
||||||
function _emptyTrash($trashSrls)
|
function _emptyTrash($trashSrls)
|
||||||
{
|
{
|
||||||
if(!is_array($trashSrls)) return false;
|
if(!is_array($trashSrls)) return false;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class trashView
|
* trashAdminView class
|
||||||
|
* Admin view class of the trash module
|
||||||
|
*
|
||||||
* @author NHN (developers@xpressengine.com)
|
* @author NHN (developers@xpressengine.com)
|
||||||
* @brief View class of the module trash
|
* @package /modules/trash
|
||||||
**/
|
* @version 0.1
|
||||||
|
*/
|
||||||
class trashAdminView extends trash {
|
class trashAdminView extends trash {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialization
|
* Initialization
|
||||||
**/
|
* @return void
|
||||||
|
*/
|
||||||
function init() {
|
function init() {
|
||||||
// 템플릿 경로 지정 (board의 경우 tpl에 관리자용 템플릿 모아놓음)
|
// 템플릿 경로 지정 (board의 경우 tpl에 관리자용 템플릿 모아놓음)
|
||||||
$template_path = sprintf("%stpl/",$this->module_path);
|
$template_path = sprintf("%stpl/",$this->module_path);
|
||||||
|
|
@ -17,8 +19,9 @@ class trashAdminView extends trash {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief trash list
|
* Trash list
|
||||||
**/
|
* @return void
|
||||||
|
*/
|
||||||
function dispTrashAdminList() {
|
function dispTrashAdminList() {
|
||||||
$args->page = Context::get('page'); // /< Page
|
$args->page = Context::get('page'); // /< Page
|
||||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class document
|
* trash class
|
||||||
|
* trash the module's high class
|
||||||
|
*
|
||||||
* @author NHN (developers@xpressengine.com)
|
* @author NHN (developers@xpressengine.com)
|
||||||
* @brief document the module's high class
|
* @package /modules/trash
|
||||||
**/
|
* @version 0.1
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(_XE_PATH_.'modules/trash/model/TrashVO.php');
|
require_once(_XE_PATH_.'modules/trash/model/TrashVO.php');
|
||||||
|
|
||||||
class trash extends ModuleObject {
|
class trash extends ModuleObject {
|
||||||
/**
|
/**
|
||||||
* @brief Implement if additional tasks are necessary when installing
|
* Implement if additional tasks are necessary when installing
|
||||||
**/
|
* @return Object
|
||||||
|
*/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief a method to check if successfully installed
|
* A method to check if successfully installed
|
||||||
**/
|
* @return bool
|
||||||
|
*/
|
||||||
function checkUpdate() {
|
function checkUpdate() {
|
||||||
//$oDB = &DB::getInstance();
|
//$oDB = &DB::getInstance();
|
||||||
//$oModuleModel = &getModel('module');
|
//$oModuleModel = &getModel('module');
|
||||||
|
|
@ -26,8 +31,9 @@ class trash extends ModuleObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Execute update
|
* Execute update
|
||||||
**/
|
* @return Object
|
||||||
|
*/
|
||||||
function moduleUpdate() {
|
function moduleUpdate() {
|
||||||
//$oDB = &DB::getInstance();
|
//$oDB = &DB::getInstance();
|
||||||
//$oModuleModel = &getModel('module');
|
//$oModuleModel = &getModel('module');
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class documentController
|
* trashController
|
||||||
|
* trash the module's controller class
|
||||||
|
*
|
||||||
* @author NHN (developers@xpressengine.com)
|
* @author NHN (developers@xpressengine.com)
|
||||||
* @brief document the module's controller class
|
* @package /modules/trash
|
||||||
**/
|
* @version 0.1
|
||||||
|
*/
|
||||||
class trashController extends trash
|
class trashController extends trash
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,20 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* trashModel class
|
||||||
|
* trash the module's model class
|
||||||
|
*
|
||||||
|
* @author NHN (developers@xpressengine.com)
|
||||||
|
* @package /modules/trash
|
||||||
|
* @version 0.1
|
||||||
|
*/
|
||||||
class trashModel extends trash
|
class trashModel extends trash
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @brief get one trash object
|
* Get one trash object
|
||||||
**/
|
* @param int $trashSrl
|
||||||
|
* @pram array $columnList
|
||||||
|
* @return TrashVO
|
||||||
|
*/
|
||||||
function getTrash($trashSrl, $columnList = array())
|
function getTrash($trashSrl, $columnList = array())
|
||||||
{
|
{
|
||||||
$oTrashVO = new TrashVO();
|
$oTrashVO = new TrashVO();
|
||||||
|
|
@ -20,8 +30,11 @@ class trashModel extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief get trash object list
|
* Get TrashVO list
|
||||||
**/
|
* @param object $args
|
||||||
|
* @param array $columnList
|
||||||
|
* @return object
|
||||||
|
*/
|
||||||
function getTrashList($args, $columnList = array())
|
function getTrashList($args, $columnList = array())
|
||||||
{
|
{
|
||||||
$output = executeQueryArray('trash.getTrashList', $args, $columnList);
|
$output = executeQueryArray('trash.getTrashList', $args, $columnList);
|
||||||
|
|
@ -39,8 +52,11 @@ class trashModel extends trash
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief set trash object from std object
|
* Set trash object from std object
|
||||||
**/
|
* @param TrashVO $oTrashVO
|
||||||
|
* @param object $stdObject
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function _setTrashObject(&$oTrashVO, $stdObject)
|
function _setTrashObject(&$oTrashVO, $stdObject)
|
||||||
{
|
{
|
||||||
$oTrashVO->setTrashSrl($stdObject->trash_srl);
|
$oTrashVO->setTrashSrl($stdObject->trash_srl);
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class trashView
|
* trashView class
|
||||||
|
* View class of the module trash
|
||||||
|
*
|
||||||
* @author NHN (developers@xpressengine.com)
|
* @author NHN (developers@xpressengine.com)
|
||||||
* @brief View class of the module trash
|
* @package /modules/trash
|
||||||
**/
|
* @version 0.1
|
||||||
|
*/
|
||||||
class trashView extends trash {
|
class trashView extends trash {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialization
|
* Initialization
|
||||||
**/
|
* @return void
|
||||||
|
*/
|
||||||
function init() {
|
function init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue