* Change private to protected.

This commit is contained in:
mayue
2023-05-09 05:20:18 +00:00
parent 4b36888f19
commit 1a7e6153dd
2 changed files with 26 additions and 26 deletions
View File
+26 -26
View File
@@ -270,10 +270,10 @@ class taskZen extends task
*
* @param object $task
* @param string $from ''|taskkanban
* @access private
* @access protected
* @return int
*/
private function reponseKanban(object $task, string $from): int
protected function reponseKanban(object $task, string $from): int
{
$execution = $this->execution->getByID($task->execution);
$execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all';
@@ -338,10 +338,10 @@ class taskZen extends task
* @param int $taskID
* @param int $todoID
* @param int $bugID
* @access private
* @access protected
* @return object
*/
private function setTaskInfoByObjectID(int $storyID, int $moduleID, int $taskID, int $todoID, int $bugID): object
protected function setTaskInfoByObjectID(int $storyID, int $moduleID, int $taskID, int $todoID, int $bugID): object
{
$task = $this->config->task->create->template;
$task->module = $moduleID;
@@ -397,10 +397,10 @@ class taskZen extends task
*
* @param int $executionID
* @param array $output
* @access private
* @access protected
* @return void
*/
private function showKanbanRelatedVars(int $executionID, array $output): void
protected function showKanbanRelatedVars(int $executionID, array $output): void
{
$this->loadModel('kanban');
@@ -421,10 +421,10 @@ class taskZen extends task
* 展示地盘待处理区块的ID。
* Show the ID of the block to be processed on the my.
*
* @access private
* @access protected
* @return void
*/
private function showAssignedToMeBlockID(): void
protected function showAssignedToMeBlockID(): void
{
/* Get block id of assinge to me. */
$blockID = 0;
@@ -446,10 +446,10 @@ class taskZen extends task
* Show execution related data.
*
* @param object $execution
* @access private
* @access protected
* @return void
*/
private function showExecutionData(object $execution): void
protected function showExecutionData(object $execution): void
{
$projectID = $execution ? $execution->project : 0;
$lifetimeList = array();
@@ -497,10 +497,10 @@ class taskZen extends task
*
* @param int $executionID
* @param object $formData
* @access private
* @access protected
* @return object
*/
private function prepareTask4Create(int $executionID, object $formData): object
protected function prepareTask4Create(int $executionID, object $formData): object
{
$rawData = $formData->rawdata;
$execution = $this->dao->findById($rawData->execution)->from(TABLE_EXECUTION)->fetch();
@@ -583,10 +583,10 @@ class taskZen extends task
*
* @param object $execution
* @param object $tasks
* @access private
* @access protected
* @return object|false
*/
private function removeDuplicate4BatchCreate(object $execution, object $tasks): object|false
protected function removeDuplicate4BatchCreate(object $execution, object $tasks): object|false
{
$storyIDs = array();
$taskNames = array();
@@ -634,10 +634,10 @@ class taskZen extends task
* @param int $index
* @param array $dittoFields
* @param array $extendFields
* @access private
* @access protected
* @return object
*/
private function constructData4BatchCreate(object $execution, object $tasks, int $index, array $dittoFields, array $extendFields): object
protected function constructData4BatchCreate(object $execution, object $tasks, int $index, array $dittoFields, array $extendFields): object
{
extract($dittoFields);
$now = helper::now();
@@ -689,10 +689,10 @@ class taskZen extends task
* @param float $estimate
* @param string $estStarted
* @param string $deadline
* @access private
* @access protected
* @return bool
*/
private function checkCreate(int $executionID, float $estimate, string $estStarted, string $deadline): bool
protected function checkCreate(int $executionID, float $estimate, string $estStarted, string $deadline): bool
{
/* Check if the estimate is positive. */
if($estimate < 0)
@@ -723,10 +723,10 @@ class taskZen extends task
* Check whether a task with the same name is created within the specified time.
*
* @param object $task
* @access private
* @access protected
* @return int
*/
private function checkDuplicateName($task): int
protected function checkDuplicateName($task): int
{
/* Check duplicate task. */
if($task->type != 'affair' and $task->name)
@@ -743,10 +743,10 @@ class taskZen extends task
*
* @param int $executionID
* @param object $formData
* @access private
* @access protected
* @return array|bool
*/
private function prepareTestTasks4Create(int $executionID, object $formData): array|bool
protected function prepareTestTasks4Create(int $executionID, object $formData): array|bool
{
/* Set data for the type of test task that has linked stories. */
$testTasks = array();
@@ -781,10 +781,10 @@ class taskZen extends task
* Check if the test type task data format of the linked stories meets the requirements.
*
* @param object[] $tasks
* @access private
* @access protected
* @return bool
*/
private function checkTestTasks(array $tasks): bool
protected function checkTestTasks(array $tasks): bool
{
foreach($tasks as $task)
{
@@ -889,10 +889,10 @@ class taskZen extends task
* @param object $task
* @param int $executionID
* @param string $afterChoice
* @access private
* @access protected
* @return array
*/
private function getLocateAfterCreate(object $task, int $executionID, string $afterChoice): array
protected function getLocateAfterCreate(object $task, int $executionID, string $afterChoice): array
{
/* Set the universal return value. */
$response['result'] = 'success';