-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mod. Refactoring. Tasks saving, and loading refactored. Disable and a…
…pprove actions implemented. #2
- Loading branch information
1 parent
52f3ce0
commit 9084db8
Showing
7 changed files
with
285 additions
and
35 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
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,43 @@ | ||
<?php | ||
|
||
namespace CleantalkSP\SpbctWP\Scanner\OSCron; | ||
|
||
|
||
use CleantalkSP\Templates\Singleton; | ||
|
||
class OSCronLocale | ||
{ | ||
|
||
use Singleton; | ||
public $task_status_approved; | ||
public $task_status_disabled; | ||
public $task_status_danger; | ||
public $no_windows_support; | ||
public $no_difference; | ||
public $error_write_cron_storage; | ||
public $error_write_cron_env; | ||
public $error_load_cron_storage; | ||
public $error_load_cron_env; | ||
public $error_invalid_arg; | ||
public $error_missing_property; | ||
public $error_load_tasks_storage; | ||
public $error_invalid_cron_expression; | ||
|
||
public function init() | ||
{ | ||
$this->task_status_approved = __('Approved', 'security-malware-firewall'); | ||
$this->task_status_disabled = __('Disabled', 'security-malware-firewall'); | ||
$this->task_status_danger = __('Danger', 'security-malware-firewall'); | ||
$this->no_windows_support = __('Windows OS cron handling is not supported.', 'security-malware-firewall'); | ||
$this->no_difference = __('No difference found since last check.', 'security-malware-firewall'); | ||
$this->error_write_cron_storage = __('Cannot write cron to storage', 'security-malware-firewall'); | ||
$this->error_write_cron_env = __('Cannot write cron to environment', 'security-malware-firewall'); | ||
$this->error_load_cron_storage = __('Cannot load cron content from storage', 'security-malware-firewall'); | ||
$this->error_load_cron_env = __('No crontab file found in the server environment.', 'security-malware-firewall'); | ||
$this->error_load_tasks_storage = __('Cannot load tasks from storage', 'security-malware-firewall'); | ||
$this->error_invalid_arg = __('invalid argument', 'security-malware-firewall'); | ||
$this->error_missing_property = __('property is no set', 'security-malware-firewall'); | ||
$this->error_invalid_cron_expression = __('Invalid cron expression', 'security-malware-firewall'); | ||
//$this->var = __('', 'security-malware-firewall'); | ||
} | ||
} |
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
Oops, something went wrong.