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