mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
updateCategoryDocumentCount by CategorySrl and ModuleSrl
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6457 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cfc6abb0df
commit
4ea7afde5c
3 changed files with 5 additions and 2 deletions
|
|
@ -824,7 +824,7 @@
|
||||||
function updateCategoryCount($module_srl, $category_srl, $document_count = 0) {
|
function updateCategoryCount($module_srl, $category_srl, $document_count = 0) {
|
||||||
// document model 객체 생성
|
// document model 객체 생성
|
||||||
$oDocumentModel = &getModel('document');
|
$oDocumentModel = &getModel('document');
|
||||||
if(!$document_count) $document_count = $oDocumentModel->getCategoryDocumentCount($category_srl);
|
if(!$document_count) $document_count = $oDocumentModel->getCategoryDocumentCount($module_srl,$category_srl);
|
||||||
|
|
||||||
$args->category_srl = $category_srl;
|
$args->category_srl = $category_srl;
|
||||||
$args->document_count = $document_count;
|
$args->document_count = $document_count;
|
||||||
|
|
|
||||||
|
|
@ -703,9 +703,11 @@
|
||||||
/**
|
/**
|
||||||
* @brief 카테고리에 속한 문서의 갯수를 구함
|
* @brief 카테고리에 속한 문서의 갯수를 구함
|
||||||
**/
|
**/
|
||||||
function getCategoryDocumentCount($category_srl) {
|
function getCategoryDocumentCount($module_srl, $category_srl) {
|
||||||
|
$args->module_srl = $module_srl;
|
||||||
$args->category_srl = $category_srl;
|
$args->category_srl = $category_srl;
|
||||||
$output = executeQuery('document.getCategoryDocumentCount', $args);
|
$output = executeQuery('document.getCategoryDocumentCount', $args);
|
||||||
|
debugPrint($output);
|
||||||
return (int)$output->data->count;
|
return (int)$output->data->count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,6 @@
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="equal" column="category_srl" var="category_srl" filter="number" notnull="notnull" />
|
<condition operation="equal" column="category_srl" var="category_srl" filter="number" notnull="notnull" />
|
||||||
|
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" pipe="and" />
|
||||||
</conditions>
|
</conditions>
|
||||||
</query>
|
</query>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue