|
@@ 872-891 (lines=20) @@
|
| 869 |
|
* @param object $obj |
| 870 |
|
* @return object |
| 871 |
|
*/ |
| 872 |
|
function getMonthlyArchivedList($obj) |
| 873 |
|
{ |
| 874 |
|
if($obj->mid) |
| 875 |
|
{ |
| 876 |
|
$oModuleModel = getModel('module'); |
| 877 |
|
$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid); |
| 878 |
|
unset($obj->mid); |
| 879 |
|
} |
| 880 |
|
// Module_srl passed the array may be a check whether the array |
| 881 |
|
$args = new stdClass; |
| 882 |
|
if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl); |
| 883 |
|
else $args->module_srl = $obj->module_srl; |
| 884 |
|
|
| 885 |
|
$output = executeQuery('document.getMonthlyArchivedList', $args); |
| 886 |
|
if(!$output->toBool()||!$output->data) return $output; |
| 887 |
|
|
| 888 |
|
if(!is_array($output->data)) $output->data = array($output->data); |
| 889 |
|
|
| 890 |
|
return $output; |
| 891 |
|
} |
| 892 |
|
|
| 893 |
|
/** |
| 894 |
|
* Bringing a month on the status of the daily posts |
|
@@ 898-918 (lines=21) @@
|
| 895 |
|
* @param object $obj |
| 896 |
|
* @return object |
| 897 |
|
*/ |
| 898 |
|
function getDailyArchivedList($obj) |
| 899 |
|
{ |
| 900 |
|
if($obj->mid) |
| 901 |
|
{ |
| 902 |
|
$oModuleModel = getModel('module'); |
| 903 |
|
$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid); |
| 904 |
|
unset($obj->mid); |
| 905 |
|
} |
| 906 |
|
// Module_srl passed the array may be a check whether the array |
| 907 |
|
$args = new stdClass; |
| 908 |
|
if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl); |
| 909 |
|
else $args->module_srl = $obj->module_srl; |
| 910 |
|
$args->regdate = $obj->regdate; |
| 911 |
|
|
| 912 |
|
$output = executeQuery('document.getDailyArchivedList', $args); |
| 913 |
|
if(!$output->toBool()) return $output; |
| 914 |
|
|
| 915 |
|
if(!is_array($output->data)) $output->data = array($output->data); |
| 916 |
|
|
| 917 |
|
return $output; |
| 918 |
|
} |
| 919 |
|
|
| 920 |
|
/** |
| 921 |
|
* Get a list for a particular module |