controller class of the document module More...
Additional Inherited Members | |
Public Attributes inherited from document | |
$search_option = array('title','content','title_content','user_name',) | |
$statusList = array('private'=>'PRIVATE', 'public'=>'PUBLIC', 'secret'=>'SECRET', 'temp'=>'TEMP') | |
Public Attributes inherited from ModuleObject | |
$mid = NULL | |
string to represent run-time instance of Module (XE Module) More... | |
$module = NULL | |
Class name of Xe Module that is identified by mid. More... | |
$module_srl = NULL | |
integer value to represent a run-time instance of Module (XE Module) More... | |
$module_info = NULL | |
an object containing the module information More... | |
$origin_module_info = NULL | |
$xml_info = NULL | |
an object containing the module description extracted from XML file More... | |
$module_path = NULL | |
a path to directory where module source code resides More... | |
$act = NULL | |
a string value to contain the action name More... | |
$template_path = NULL | |
a path of directory where template files reside More... | |
$template_file = NULL | |
name of template file More... | |
$layout_path = '' | |
a path of directory where layout files reside More... | |
$layout_file = '' | |
name of layout file More... | |
$edited_layout_file = '' | |
name of temporary layout files that is modified in an admin mode More... | |
$stop_proc = FALSE | |
a flag to indicating whether to stop the execution of code. More... | |
$module_config = NULL | |
$ajaxRequestMethod = array('XMLRPC', 'JSON') | |
$gzhandler_enable = TRUE | |
Public Attributes inherited from BaseObject | |
$error = 0 | |
$message = 'success' | |
$variables = array() | |
$httpStatusCode = NULL | |
controller class of the document module
Definition at line 11 of file document.controller.php.
documentController::_checkCommentStatusForOldVersion | ( | & | $obj | ) |
For old version, comment allow status check.
object | $obj |
Definition at line 2490 of file document.controller.php.
documentController::_checkDocumentStatusForOldVersion | ( | & | $obj | ) |
For old version, document status check.
object | $obj |
Definition at line 2504 of file document.controller.php.
documentController::_deleteDeclaredDocuments | ( | $documentSrls | ) |
Delete declared document, log
string | $documentSrls | (ex: 1, 2,56, 88) |
Definition at line 691 of file document.controller.php.
documentController::_deleteDocumentReadedLog | ( | $documentSrls | ) |
Delete readed log
string | $documentSrls | (ex: 1, 2,56, 88) |
Definition at line 702 of file document.controller.php.
documentController::_deleteDocumentVotedLog | ( | $documentSrls | ) |
Delete voted log
string | $documentSrls | (ex: 1, 2,56, 88) |
Definition at line 712 of file document.controller.php.
documentController::addDocumentPopupMenu | ( | $url, | |
$str, | |||
$icon = '' , |
|||
$target = 'self' |
|||
) |
A method to add a pop-up menu which appears when clicking
string | $url | |
string | $str | |
string | $icon | |
string | $target |
Definition at line 2141 of file document.controller.php.
documentController::addGrant | ( | $document_srl | ) |
Grant a permisstion of the document Available in the current connection with session value
int | $document_srl |
Definition at line 182 of file document.controller.php.
documentController::addXmlJsFilter | ( | $module_srl | ) |
Add javascript codes into the header by checking values of document_extra_keys type, required and others
int | $module_srl |
Definition at line 1605 of file document.controller.php.
documentController::declaredDocument | ( | $document_srl | ) |
Report posts
int | $document_srl |
Definition at line 1202 of file document.controller.php.
documentController::deleteCategory | ( | $category_srl | ) |
Delete a category
int | $category_srl |
Definition at line 1447 of file document.controller.php.
documentController::deleteDocument | ( | $document_srl, | |
$is_admin = false , |
|||
$isEmptyTrash = false , |
|||
$oDocument = null |
|||
) |
Deleting Documents
int | $document_srl | |
bool | $is_admin | |
bool | $isEmptyTrash | |
documentItem | $oDocument |
Definition at line 603 of file document.controller.php.
documentController::deleteDocumentAliasByDocument | ( | $document_srl | ) |
Delete alias when document deleted
int | $document_srl |
Definition at line 123 of file document.controller.php.
documentController::deleteDocumentAliasByModule | ( | $module_srl | ) |
Delete alias when module deleted
int | $module_srl |
Definition at line 111 of file document.controller.php.
documentController::deleteDocumentExtraKeys | ( | $module_srl, | |
$var_idx = null |
|||
) |
Remove the extra variables of the documents
int | $module_srl | |
int | $var_idx |
Definition at line 959 of file document.controller.php.
documentController::deleteDocumentExtraVars | ( | $module_srl, | |
$document_srl = null , |
|||
$var_idx = null , |
|||
$lang_code = null , |
|||
$eid = null |
|||
) |
Remove values of extra variable from the document
int | $module_srl | |
int | $document_srl | |
int | $var_idx | |
string | $lang_code | |
int | $eid |
Definition at line 1051 of file document.controller.php.
documentController::deleteDocumentHistory | ( | $history_srl, | |
$document_srl, | |||
$module_srl | |||
) |
Delete document history
int | $history_srl | |
int | $document_srl | |
int | $module_srl |
Definition at line 137 of file document.controller.php.
documentController::deleteModuleCategory | ( | $module_srl | ) |
Delete all categories in a module
int | $module_srl |
Definition at line 1500 of file document.controller.php.
documentController::getPhpCacheCode | ( | $source_node, | |
$tree, | |||
$site_srl, | |||
& | $php_header_buff | ||
) |
Change sorted nodes in an array to the php code and then return When using menu on tpl, you can directly xml data. howver you may need javascrips additionally. Therefore, you can configure the menu info directly from php cache file, not through DB. You may include the cache in the ModuleHandler::displayContent()
array | $source_node | |
array | $tree | |
int | $site_srl | |
string | $php_header_buff |
Definition at line 2042 of file document.controller.php.
documentController::getXmlTree | ( | $source_node, | |
$tree, | |||
$site_srl, | |||
& | $xml_header_buff | ||
) |
Create the xml data recursively referring to parent_srl In the menu xml file, node tag is nested and xml doc enables the admin page to have a menu
(tree menu is implemented by reading xml file from the tree_menu.js)
array | $source_node | |
array | $tree | |
int | $site_srl | |
string | $xml_header_buff |
Definition at line 1966 of file document.controller.php.
documentController::init | ( | ) |
documentController::insertAlias | ( | $module_srl, | |
$document_srl, | |||
$alias_title | |||
) |
insert alias
int | $module_srl | |
int | $document_srl | |
string | $alias_title |
Definition at line 54 of file document.controller.php.
documentController::insertCategory | ( | $obj | ) |
Add a category
object | $obj |
Definition at line 1367 of file document.controller.php.
documentController::insertDocument | ( | $obj, | |
$manual_inserted = false , |
|||
$isRestore = false , |
|||
$isLatest = true |
|||
) |
Insert the document
object | $obj | |
bool | $manual_inserted | |
bool | $isRestore |
Definition at line 194 of file document.controller.php.
documentController::insertDocumentExtraKey | ( | $module_srl, | |
$var_idx, | |||
$var_name, | |||
$var_type, | |||
$var_is_required = 'N' , |
|||
$var_search = 'N' , |
|||
$var_default = '' , |
|||
$var_desc = '' , |
|||
$eid | |||
) |
Insert extra variables into the document table
int | $module_srl | |
int | $var_idx | |
string | $var_name | |
string | $var_type | |
string | $var_is_required | |
string | $var_search | |
string | $var_default | |
string | $var_desc | |
int | $eid |
Definition at line 915 of file document.controller.php.
documentController::insertDocumentExtraVar | ( | $module_srl, | |
$document_srl, | |||
$var_idx, | |||
$value, | |||
$eid = null , |
|||
$lang_code = '' |
|||
) |
Insert extra vaiable to the documents table
int | $module_srl | |
int | $document_srl | |
int | $var_idx | |
mixed | $value | |
int | $eid | |
string | $lang_code |
Definition at line 1026 of file document.controller.php.
documentController::makeCategoryFile | ( | $module_srl | ) |
Save the category in a cache file
int | $module_srl |
Definition at line 1846 of file document.controller.php.
documentController::moveCategoryDown | ( | $category_srl | ) |
Move the category down
int | $category_srl |
Definition at line 1560 of file document.controller.php.
documentController::moveCategoryUp | ( | $category_srl | ) |
Move the category level to higher
int | $category_srl |
Definition at line 1513 of file document.controller.php.
documentController::moveDocumentToTrash | ( | $obj | ) |
Move the doc into the trash
object | $obj |
Definition at line 722 of file document.controller.php.
documentController::procDocumentAddCart | ( | ) |
Saved in the session when an administrator selects a post
Definition at line 2160 of file document.controller.php.
documentController::procDocumentDeclare | ( | ) |
Action called when the post is reported by other member
Definition at line 96 of file document.controller.php.
documentController::procDocumentDeleteCategory | ( | ) |
documentController::procDocumentGetList | ( | ) |
Return Document List for exec_xml
Definition at line 2462 of file document.controller.php.
documentController::procDocumentInsertCategory | ( | $args = null | ) |
Add a category
object | $args |
Definition at line 1643 of file document.controller.php.
documentController::procDocumentInsertModuleConfig | ( | ) |
documentController::procDocumentMakeXmlFile | ( | ) |
Xml files updated Occasionally the xml file is not generated after menu is configued on the admin page
The administrator can manually update the file in this case
Although the issue is not currently reproduced, it is unnecessay to remove.
Definition at line 1825 of file document.controller.php.
documentController::procDocumentManageCheckedDocument | ( | ) |
Move/ Delete the document in the seession
Definition at line 2233 of file document.controller.php.
documentController::procDocumentMoveCategory | ( | ) |
documentController::procDocumentTempSave | ( | ) |
Document temporary save
Definition at line 2396 of file document.controller.php.
documentController::procDocumentVoteDown | ( | ) |
Action to handle vote-up of the post (Down)
Definition at line 70 of file document.controller.php.
documentController::procDocumentVoteUp | ( | ) |
Action to handle vote-up of the post (Up)
Definition at line 25 of file document.controller.php.
documentController::triggerCopyModule | ( | & | $obj | ) |
Definition at line 2552 of file document.controller.php.
documentController::triggerCopyModuleExtraKeys | ( | & | $obj | ) |
Copy extra keys when module copied
object | $obj |
Definition at line 2534 of file document.controller.php.
documentController::triggerDeleteModuleDocuments | ( | & | $obj | ) |
A trigger to delete all posts together when the module is deleted
object | $obj |
Definition at line 152 of file document.controller.php.
documentController::updateCategory | ( | $obj | ) |
Update category information
object | $obj |
Definition at line 1435 of file document.controller.php.
documentController::updateCategoryCount | ( | $module_srl, | |
$category_srl, | |||
$document_count = 0 |
|||
) |
Update document_count in the category.
int | $module_srl | |
int | $category_srl | |
int | $document_count |
Definition at line 1415 of file document.controller.php.
documentController::updateCategoryListOrder | ( | $module_srl, | |
$list_order | |||
) |
Increase list_count from a specific category
int | $module_srl | |
int | $list_order |
Definition at line 1400 of file document.controller.php.
documentController::updateCommentCount | ( | $document_srl, | |
$comment_count, | |||
$last_updater, | |||
$comment_inserted = false |
|||
) |
Increase the number of comments in the document Update modified date, modifier, and order with increasing comment count
int | $document_srl | |
int | $comment_count | |
string | $last_updater | |
bool | $comment_inserted |
Definition at line 1316 of file document.controller.php.
documentController::updateDocument | ( | $source_obj, | |
$obj, | |||
$manual_updated = FALSE |
|||
) |
Update the document
object | $source_obj | |
object | $obj | |
bool | $manual_updated |
Definition at line 361 of file document.controller.php.
documentController::updateReadedCount | ( | & | $oDocument | ) |
Update read counts of the document
documentItem | $oDocument |
Definition at line 838 of file document.controller.php.
documentController::updateTrackbackCount | ( | $document_srl, | |
$trackback_count | |||
) |
Increase trackback count of the document
int | $document_srl | |
int | $trackback_count |
Definition at line 1345 of file document.controller.php.
documentController::updateUploaedCount | ( | $documentSrlList | ) |
Definition at line 2510 of file document.controller.php.
documentController::updateVotedCount | ( | $document_srl, | |
$point = 1 |
|||
) |
Increase the number of vote-up of the document
int | $document_srl | |
int | $point |
Definition at line 1070 of file document.controller.php.