-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[5.3] Move code to log model in new scheduler history view #44587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7bbfc2a
Move to log model
laoneo 1e6d894
remove string
laoneo 11890a2
types
laoneo 651a764
Merge branch '5.3-dev' into scheduler/cleanup
laoneo f9bfbdf
Alpha order
laoneo 96a97e8
Merge branch '5.3-dev' into scheduler/cleanup
laoneo 71ddfd1
Merge remote-tracking branch 'upstream/5.3-dev' into scheduler/cleanup
laoneo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -61,4 +61,4 @@ | |
| class="js-select-submit-on-change" | ||
| /> | ||
| </fields> | ||
| </form> | ||
| </form> | ||
This file contains hidden or 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
60 changes: 60 additions & 0 deletions
60
administrator/components/com_scheduler/src/Model/LogModel.php
This file contains hidden or 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,60 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage com_scheduler | ||
| * | ||
| * @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| namespace Joomla\Component\Scheduler\Administrator\Model; | ||
|
|
||
| use Joomla\CMS\Form\Form; | ||
| use Joomla\CMS\MVC\Model\AdminModel; | ||
| use Joomla\CMS\Table\Table; | ||
|
|
||
| // phpcs:disable PSR1.Files.SideEffects | ||
| \defined('_JEXEC') or die; | ||
| // phpcs:enable PSR1.Files.SideEffects | ||
|
|
||
| /** | ||
| * MVC Model to interact with the Scheduler logs. | ||
| * | ||
| * @since __DPELOY_VERSION__ | ||
| */ | ||
| class LogModel extends AdminModel | ||
| { | ||
| /** | ||
| * There is no form for the log. | ||
| * | ||
| * @param array $data Data that needs to go into the form | ||
| * @param bool $loadData Should the form load its data from the DB? | ||
| * | ||
| * @return Form|boolean A Form object on success, false on failure. | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| * @throws \Exception | ||
| */ | ||
| public function getForm($data = [], $loadData = true) | ||
| { | ||
| return false; | ||
| } | ||
|
|
||
| /** | ||
| * Method to get a table object, load it if necessary. | ||
| * | ||
| * @param string $name The table name. Optional. | ||
| * @param string $prefix The class prefix. Optional. | ||
| * @param array $options Configuration array for model. Optional. | ||
| * | ||
| * @return Table | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| * @throws \Exception | ||
| */ | ||
| public function getTable($name = 'Log', $prefix = 'Administrator', $options = []): Table | ||
| { | ||
| return parent::getTable($name, $prefix, $options); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ | |
| * | ||
| * @since 5.3.0 | ||
| */ | ||
| class LogsTable extends Table | ||
| class LogTable extends Table | ||
| { | ||
| /** | ||
| * Constructor | ||
|
|
||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.