| @@ 1000-1014 (lines=15) @@ | ||
| 997 | * @param BaseObject $queryObject |
|
| 998 | * @return BaseObject |
|
| 999 | */ |
|
| 1000 | function queryError($queryObject) |
|
| 1001 | { |
|
| 1002 | $limit = $queryObject->getLimit(); |
|
| 1003 | if($limit && $limit->isPageHandler()) |
|
| 1004 | { |
|
| 1005 | $buff = new BaseObject (); |
|
| 1006 | $buff->total_count = 0; |
|
| 1007 | $buff->total_page = 0; |
|
| 1008 | $buff->page = 1; |
|
| 1009 | $buff->data = array(); |
|
| 1010 | $buff->page_navigation = new PageHandler(/* $total_count */0, /* $total_page */1, /* $page */1, /* $page_count */10); //default page handler values |
|
| 1011 | return $buff; |
|
| 1012 | }else |
|
| 1013 | return; |
|
| 1014 | } |
|
| 1015 | ||
| 1016 | /** |
|
| 1017 | * If select query execute, return page info |
|
| @@ 884-901 (lines=18) @@ | ||
| 881 | * @param BaseObject $queryObject |
|
| 882 | * @return BaseObject |
|
| 883 | */ |
|
| 884 | function queryError($queryObject) |
|
| 885 | { |
|
| 886 | $limit = $queryObject->getLimit(); |
|
| 887 | if($limit && $limit->isPageHandler()) |
|
| 888 | { |
|
| 889 | $buff = new BaseObject(); |
|
| 890 | $buff->total_count = 0; |
|
| 891 | $buff->total_page = 0; |
|
| 892 | $buff->page = 1; |
|
| 893 | $buff->data = array(); |
|
| 894 | $buff->page_navigation = new PageHandler(/* $total_count */0, /* $total_page */1, /* $page */1, /* $page_count */10); //default page handler values |
|
| 895 | return $buff; |
|
| 896 | } |
|
| 897 | else |
|
| 898 | { |
|
| 899 | return; |
|
| 900 | } |
|
| 901 | } |
|
| 902 | ||
| 903 | /** |
|
| 904 | * If select query execute, return page info |
|
| @@ 708-725 (lines=18) @@ | ||
| 705 | * @param BaseObject $queryObject |
|
| 706 | * @return BaseObject |
|
| 707 | */ |
|
| 708 | function queryError($queryObject) |
|
| 709 | { |
|
| 710 | $limit = $queryObject->getLimit(); |
|
| 711 | if($limit && $limit->isPageHandler()) |
|
| 712 | { |
|
| 713 | $buff = new BaseObject(); |
|
| 714 | $buff->total_count = 0; |
|
| 715 | $buff->total_page = 0; |
|
| 716 | $buff->page = 1; |
|
| 717 | $buff->data = array(); |
|
| 718 | $buff->page_navigation = new PageHandler(/* $total_count */0, /* $total_page */1, /* $page */1, /* $page_count */10); //default page handler values |
|
| 719 | return $buff; |
|
| 720 | } |
|
| 721 | else |
|
| 722 | { |
|
| 723 | return; |
|
| 724 | } |
|
| 725 | } |
|
| 726 | ||
| 727 | /** |
|
| 728 | * If select query execute, return page info |
|