forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from ammopt/ammo_smtp_server_24.07.00
SMTP setting
- Loading branch information
Showing
78 changed files
with
10,662 additions
and
1 deletion.
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
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,81 @@ | ||
<?php | ||
|
||
require_once ROOT_DIR . '/Action.php'; | ||
require_once ROOT_DIR . '/services/Admin/ObjectEditor.php'; | ||
require_once ROOT_DIR . '/sys/Email/SMTPSetting.php'; | ||
|
||
class Admin_SMTPSettings extends ObjectEditor { | ||
function getObjectType(): string { | ||
return 'SMTPSetting'; | ||
} | ||
|
||
function getToolName(): string { | ||
return 'SMTPSettings'; | ||
} | ||
|
||
function getModule(): string { | ||
return 'Admin'; | ||
} | ||
|
||
function getPageTitle(): string { | ||
return 'SMTP Settings'; | ||
} | ||
|
||
function getAllObjects($page, $recordsPerPage): array { | ||
$object = new SMTPSetting(); | ||
$object->limit(($page - 1) * $recordsPerPage, $recordsPerPage); | ||
$this->applyFilters($object); | ||
$object->find(); | ||
$objectList = []; | ||
while ($object->fetch()) { | ||
$objectList[$object->id] = clone $object; | ||
} | ||
return $objectList; | ||
} | ||
|
||
function getDefaultSort(): string { | ||
return 'id asc'; | ||
} | ||
|
||
function canSort(): bool { | ||
return false; | ||
} | ||
|
||
function getObjectStructure($context = ''): array { | ||
return SMTPSetting::getObjectStructure($context); | ||
} | ||
|
||
function getPrimaryKeyColumn(): string { | ||
return 'id'; | ||
} | ||
|
||
function getIdKeyColumn(): string { | ||
return 'id'; | ||
} | ||
|
||
function getAdditionalObjectActions($existingObject): array { | ||
return []; | ||
} | ||
|
||
function getInstructions(): string { | ||
return ''; | ||
} | ||
|
||
function getBreadcrumbs(): array { | ||
$breadcrumbs = []; | ||
$breadcrumbs[] = new Breadcrumb('/Admin/Home', 'Administration Home'); | ||
$breadcrumbs[] = new Breadcrumb('/Admin/Home#system_admin', 'System Administration'); | ||
$breadcrumbs[] = new Breadcrumb('/Admin/SMTPSettings', 'SMTP Settings'); | ||
return $breadcrumbs; | ||
} | ||
|
||
function getActiveAdminSection(): string { | ||
return 'email'; | ||
} | ||
|
||
function canView(): bool { | ||
return UserAccount::userHasPermission('Administer SMTP'); | ||
} | ||
|
||
|
||
} |
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,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
GPL Cooperation Commitment | ||
Version 1.0 | ||
|
||
Before filing or continuing to prosecute any legal proceeding or claim | ||
(other than a Defensive Action) arising from termination of a Covered | ||
License, we commit to extend to the person or entity ('you') accused | ||
of violating the Covered License the following provisions regarding | ||
cure and reinstatement, taken from GPL version 3. As used here, the | ||
term 'this License' refers to the specific Covered License being | ||
enforced. | ||
|
||
However, if you cease all violation of this License, then your | ||
license from a particular copyright holder is reinstated (a) | ||
provisionally, unless and until the copyright holder explicitly | ||
and finally terminates your license, and (b) permanently, if the | ||
copyright holder fails to notify you of the violation by some | ||
reasonable means prior to 60 days after the cessation. | ||
|
||
Moreover, your license from a particular copyright holder is | ||
reinstated permanently if the copyright holder notifies you of the | ||
violation by some reasonable means, this is the first time you | ||
have received notice of violation of this License (for any work) | ||
from that copyright holder, and you cure the violation prior to 30 | ||
days after your receipt of the notice. | ||
|
||
We intend this Commitment to be irrevocable, and binding and | ||
enforceable against us and assignees of or successors to our | ||
copyrights. | ||
|
||
Definitions | ||
|
||
'Covered License' means the GNU General Public License, version 2 | ||
(GPLv2), the GNU Lesser General Public License, version 2.1 | ||
(LGPLv2.1), or the GNU Library General Public License, version 2 | ||
(LGPLv2), all as published by the Free Software Foundation. | ||
|
||
'Defensive Action' means a legal proceeding or claim that We bring | ||
against you in response to a prior proceeding or claim initiated by | ||
you or your affiliate. | ||
|
||
'We' means each contributor to this repository as of the date of | ||
inclusion of this file, including subsidiaries of a corporate | ||
contributor. | ||
|
||
This work is available under a Creative Commons Attribution-ShareAlike | ||
4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). |
Oops, something went wrong.