generated from github/welcome-to-github
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
285 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
www/controllers/Layout/Table/vars/tasks/list-queued.vars.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
$myTask = new \Controllers\Task\Task(); | ||
$reloadableTableOffset = 0; | ||
|
||
/** | ||
* Retrieve offset from cookie if exists | ||
*/ | ||
if (!empty($_COOKIE['tables/tasks/list-queued/offset']) and is_numeric($_COOKIE['tables/tasks/list-queued/offset'])) { | ||
$reloadableTableOffset = $_COOKIE['tables/tasks/list-queued/offset']; | ||
} | ||
|
||
/** | ||
* Get list of queued tasks, with offset | ||
*/ | ||
$reloadableTableContent = $myTask->listNewest(true, $reloadableTableOffset); | ||
|
||
/** | ||
* Get list of ALL queued tasks, without offset, for the total count | ||
*/ | ||
$reloadableTableTotalItems = count($myTask->listNewest()); | ||
|
||
/** | ||
* Count total pages for the pagination | ||
*/ | ||
$reloadableTableTotalPages = ceil($reloadableTableTotalItems / 10); | ||
|
||
/** | ||
* Calculate current page number | ||
*/ | ||
$reloadableTableCurrentPage = ceil($reloadableTableOffset / 10) + 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* 4.17.0 update | ||
*/ | ||
|
||
/** | ||
* Add 'TASK_QUEUING' column to settings table | ||
*/ | ||
if (!$this->db->columnExist('settings', 'TASK_QUEUING')) { | ||
$this->db->exec("ALTER TABLE settings ADD COLUMN TASK_QUEUING BOOLEAN DEFAULT 'false'"); | ||
} | ||
|
||
/** | ||
* Add 'TASK_QUEUING_MAX_SIMULTANEOUS' column to settings table | ||
*/ | ||
if (!$this->db->columnExist('settings', 'TASK_QUEUING_MAX_SIMULTANEOUS')) { | ||
$this->db->exec("ALTER TABLE settings ADD COLUMN TASK_QUEUING_MAX_SIMULTANEOUS INTEGER DEFAULT '2'"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.16.4 | ||
4.17.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.