diff --git a/module/todo/model.php b/module/todo/model.php index 25f9ade3ea..657581db05 100755 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -17,6 +17,7 @@ class todoModel extends model * Create todo data. * * @param object $todo + * @access public * @return int|false */ public function create(object $todo): int|false diff --git a/module/todo/tao.php b/module/todo/tao.php index 49994674b1..c69fe8215d 100644 --- a/module/todo/tao.php +++ b/module/todo/tao.php @@ -8,6 +8,7 @@ class todoTao extends todoModel * Insert todo data. * * @param object $todo + * @access protected * @return int */ protected function insert(object $todo): int @@ -27,6 +28,7 @@ class todoTao extends todoModel * * @param int $todoID * @param object $todo + * @access protected * @return bool */ protected function updateRow(int $todoID, object $todo): bool @@ -45,6 +47,7 @@ class todoTao extends todoModel * Close one todo. * * @param int $todoID + * @access protected * @return bool */ protected function closeTodo(int $todoID): bool @@ -67,6 +70,7 @@ class todoTao extends todoModel * Processing todo data. * * @param object $todoData + * @access protected * @return object|false */ protected function beforeCreate(object $todoData): object|false @@ -123,6 +127,7 @@ class todoTao extends todoModel * Get cycle list. * @param array $todoList * @param string $orderBy + * @access protected * @return array */ protected function getCycleList(array $todoList, string $orderBy = 'date_asc'): array @@ -140,6 +145,7 @@ class todoTao extends todoModel * 通过待办构建周期待办数据 * Build cycle todo. * @param object $todo + * @access protected * @return stdclass */ protected function buildCycleTodo(object $todo): object @@ -163,10 +169,12 @@ class todoTao extends todoModel /** * 通过周期待办,获取要生成待办的日期 + * * Gets the date by the cycle todo. * @param object $todo * @param object $lastCycle * @param string $today + * @access protected * @return false|string */ protected function getCycleTodoDate(object $todo, object $lastCycle, string $today): false|string @@ -200,10 +208,12 @@ class todoTao extends todoModel /** * 通过周期待办,获取要生成每日待办的日期 + * * Gets the daily todo date by the cycle todo. * @param object $todo * @param object $lastCycle * @param string $today + * @access protected * @return false|string */ private function getCycleDailyTodoDate(object $todo, object $lastCycle, string $today): false|string @@ -255,6 +265,7 @@ class todoTao extends todoModel * Set cycle todo data. * * @param object $todoData + * @access protected * @return false|object */ private function setCycle(object $todoData): false|object diff --git a/module/todo/zen.php b/module/todo/zen.php index 8b14ca3a19..5667a734a3 100755 --- a/module/todo/zen.php +++ b/module/todo/zen.php @@ -8,6 +8,7 @@ class todoZen extends todo * Processing request data. * * @param object $formData + * @access protected * @return object|false */ protected function beforeCreate(object $formData): object|bool @@ -62,6 +63,7 @@ class todoZen extends todo * Create a todo. * * @param object $todo + * @access protected * @return int|false */ protected function doCreate(object $todo): int|bool @@ -74,6 +76,7 @@ class todoZen extends todo * Create a todo after data processing * * @param object $todo + * @access protected * @return object */ protected function afterCreate(object $todo): object @@ -99,6 +102,7 @@ class todoZen extends todo * * @param int $todoID * @param object $formData + * @access protected * @return object|false */ protected function beforeEdit(int $todoID, object $formData): object|false @@ -152,6 +156,7 @@ class todoZen extends todo * Handle data after edit todo. * * @param object $todo + * @access protected * @return void */ protected function afterEdit(int $todoID, array $changes): void @@ -167,6 +172,7 @@ class todoZen extends todo * Handle cycle config. * * @param object $todo + * @access private * @return void */ private function handleCycleConfig(object &$todo): void @@ -195,6 +201,7 @@ class todoZen extends todo * Set cycle todo. * * @param object $formData + * @access private * @return object */ private function setCycle(object $formData): object