src: style sweep
This commit is contained in:
parent
39b8dd4556
commit
4ff026076a
|
@ -37,9 +37,9 @@ use \OPNsense\Iperf\FakeInstance;
|
|||
|
||||
class InstanceController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\iperf\FakeInstance';
|
||||
static protected $internalModelName = 'instance';
|
||||
static private $SOCKET_PATH = "unix:///var/run/iperf-manager.sock";
|
||||
protected static $internalModelClass = '\OPNsense\iperf\FakeInstance';
|
||||
protected static $internalModelName = 'instance';
|
||||
private static $SOCKET_PATH = "unix:///var/run/iperf-manager.sock";
|
||||
|
||||
// override base to set model - not used here
|
||||
public function setAction()
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Redis\Redis';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Redis';
|
||||
static protected $internalServiceEnabled = 'general.enabled';
|
||||
static protected $internalServiceName = 'redis';
|
||||
protected static $internalServiceClass = '\OPNsense\Redis\Redis';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Redis';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceName = 'redis';
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Redis\Redis';
|
||||
static protected $internalModelName = 'redis';
|
||||
protected static $internalModelClass = '\OPNsense\Redis\Redis';
|
||||
protected static $internalModelName = 'redis';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class AclController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'acl';
|
||||
static protected $internalModelClass = '\OPNsense\Bind\Acl';
|
||||
protected static $internalModelName = 'acl';
|
||||
protected static $internalModelClass = '\OPNsense\Bind\Acl';
|
||||
|
||||
public function searchAclAction()
|
||||
{
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class DnsblController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Bind\Dnsbl';
|
||||
static protected $internalModelName = 'dnsbl';
|
||||
protected static $internalModelClass = '\OPNsense\Bind\Dnsbl';
|
||||
protected static $internalModelName = 'dnsbl';
|
||||
}
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Bind\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Bind\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -41,10 +41,10 @@ use OPNsense\Bind\Dnsbl;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Bind\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Bind';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'bind';
|
||||
protected static $internalServiceClass = '\OPNsense\Bind\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Bind';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'bind';
|
||||
|
||||
public function dnsblAction()
|
||||
{
|
||||
|
|
|
@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
|
|||
|
||||
class CloakController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'cloak';
|
||||
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Cloak';
|
||||
protected static $internalModelName = 'cloak';
|
||||
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Cloak';
|
||||
|
||||
public function searchCloakAction()
|
||||
{
|
||||
|
|
|
@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
|
|||
|
||||
class ForwardController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'forward';
|
||||
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Forward';
|
||||
protected static $internalModelName = 'forward';
|
||||
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Forward';
|
||||
|
||||
public function searchForwardAction()
|
||||
{
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Core\Backend;
|
|||
|
||||
class ServerController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'server';
|
||||
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Server';
|
||||
protected static $internalModelName = 'server';
|
||||
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Server';
|
||||
|
||||
public function searchServerAction()
|
||||
{
|
||||
|
|
|
@ -40,8 +40,8 @@ use OPNsense\Dnscryptproxy\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Dnscryptproxy\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Dnscryptproxy';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'dnscryptproxy';
|
||||
protected static $internalServiceClass = '\OPNsense\Dnscryptproxy\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Dnscryptproxy';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'dnscryptproxy';
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
|
|||
|
||||
class WhitelistController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'whitelist';
|
||||
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Whitelist';
|
||||
protected static $internalModelName = 'whitelist';
|
||||
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Whitelist';
|
||||
|
||||
public function searchWhitelistAction()
|
||||
{
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class AddressController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'address';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Address';
|
||||
protected static $internalModelName = 'address';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Address';
|
||||
|
||||
public function searchAddressAction()
|
||||
{
|
||||
|
|
|
@ -33,6 +33,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class AntispamController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'antispam';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Antispam';
|
||||
protected static $internalModelName = 'antispam';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Antispam';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class DomainController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'domain';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Domain';
|
||||
protected static $internalModelName = 'domain';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Domain';
|
||||
|
||||
public function searchDomainAction()
|
||||
{
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class RecipientController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'recipient';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Recipient';
|
||||
protected static $internalModelName = 'recipient';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Recipient';
|
||||
|
||||
public function searchRecipientAction()
|
||||
{
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class RecipientbccController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'recipientbcc';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Recipientbcc';
|
||||
protected static $internalModelName = 'recipientbcc';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Recipientbcc';
|
||||
|
||||
public function searchRecipientbccAction()
|
||||
{
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SenderController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'sender';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Sender';
|
||||
protected static $internalModelName = 'sender';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Sender';
|
||||
|
||||
public function searchSenderAction()
|
||||
{
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SenderbccController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'senderbcc';
|
||||
static protected $internalModelClass = '\OPNsense\Postfix\Senderbcc';
|
||||
protected static $internalModelName = 'senderbcc';
|
||||
protected static $internalModelClass = '\OPNsense\Postfix\Senderbcc';
|
||||
|
||||
public function searchSenderbccAction()
|
||||
{
|
||||
|
|
|
@ -39,10 +39,10 @@ use OPNsense\Postfix\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Postfix\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Postfix';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'postfix';
|
||||
protected static $internalServiceClass = '\OPNsense\Postfix\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Postfix';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'postfix';
|
||||
|
||||
/**
|
||||
* check rspamd
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Rspamd\RSpamd';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Rspamd';
|
||||
static protected $internalServiceEnabled = 'general.enabled';
|
||||
static protected $internalServiceName = 'rspamd';
|
||||
protected static $internalServiceClass = '\OPNsense\Rspamd\RSpamd';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Rspamd';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceName = 'rspamd';
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Rspamd\RSpamd';
|
||||
static protected $internalModelName = 'rspamd';
|
||||
protected static $internalModelClass = '\OPNsense\Rspamd\RSpamd';
|
||||
protected static $internalModelName = 'rspamd';
|
||||
}
|
||||
|
|
|
@ -35,6 +35,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Lldpd\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Lldpd\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -36,10 +36,10 @@ use OPNsense\Core\Backend;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Lldpd\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Lldpd';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'lldpd';
|
||||
protected static $internalServiceClass = '\OPNsense\Lldpd\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Lldpd';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'lldpd';
|
||||
|
||||
/**
|
||||
* show lldpd neighbors
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Netsnmp\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Netsnmp\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -40,8 +40,8 @@ use OPNsense\Netsnmp\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Netsnmp\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Netsnmp';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'netsnmp';
|
||||
protected static $internalServiceClass = '\OPNsense\Netsnmp\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Netsnmp';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'netsnmp';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class UserController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'user';
|
||||
static protected $internalModelClass = '\OPNsense\Netsnmp\User';
|
||||
protected static $internalModelName = 'user';
|
||||
protected static $internalModelClass = '\OPNsense\Netsnmp\User';
|
||||
|
||||
public function searchUserAction()
|
||||
{
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class KeyController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'key';
|
||||
static protected $internalModelClass = '\OPNsense\Telegraf\Key';
|
||||
protected static $internalModelName = 'key';
|
||||
protected static $internalModelClass = '\OPNsense\Telegraf\Key';
|
||||
|
||||
public function searchKeyAction()
|
||||
{
|
||||
|
|
|
@ -40,8 +40,8 @@ use \OPNsense\ZabbixAgent\ZabbixAgent;
|
|||
*/
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'zabbixagent';
|
||||
static protected $internalModelClass = '\OPNsense\ZabbixAgent\ZabbixAgent';
|
||||
protected static $internalModelName = 'zabbixagent';
|
||||
protected static $internalModelClass = '\OPNsense\ZabbixAgent\ZabbixAgent';
|
||||
|
||||
public function searchUserparametersAction()
|
||||
{
|
||||
|
|
|
@ -37,8 +37,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class ClientController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'Client';
|
||||
static protected $internalModelClass = '\OPNsense\Freeradius\Client';
|
||||
protected static $internalModelName = 'Client';
|
||||
protected static $internalModelClass = '\OPNsense\Freeradius\Client';
|
||||
public function getAction()
|
||||
{
|
||||
// define list of configurable settings
|
||||
|
|
|
@ -34,6 +34,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class LdapController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'ldap';
|
||||
static protected $internalModelClass = '\OPNsense\Freeradius\Ldap';
|
||||
protected static $internalModelName = 'ldap';
|
||||
protected static $internalModelClass = '\OPNsense\Freeradius\Ldap';
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class UserController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'User';
|
||||
static protected $internalModelClass = '\OPNsense\Freeradius\User';
|
||||
protected static $internalModelName = 'User';
|
||||
protected static $internalModelClass = '\OPNsense\Freeradius\User';
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
|
|
|
@ -35,8 +35,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class BgpController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'bgp';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\BGP';
|
||||
protected static $internalModelName = 'bgp';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\BGP';
|
||||
|
||||
public function searchNeighborAction()
|
||||
{
|
||||
|
|
|
@ -38,8 +38,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class Ospf6settingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'ospf6';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\OSPF6';
|
||||
protected static $internalModelName = 'ospf6';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\OSPF6';
|
||||
public function searchInterfaceAction()
|
||||
{
|
||||
return $this->searchBase('interfaces.interface', array("enabled", "interfacename", "area", "networktype"));
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class OspfsettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'ospf';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\OSPF';
|
||||
protected static $internalModelName = 'ospf';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\OSPF';
|
||||
|
||||
public function searchNetworkAction()
|
||||
{
|
||||
|
|
|
@ -33,6 +33,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class RipController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'rip';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\RIP';
|
||||
protected static $internalModelName = 'rip';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\RIP';
|
||||
}
|
||||
|
|
|
@ -39,10 +39,10 @@ use \OPNsense\HAProxy\HAProxy;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\HAProxy\HAProxy';
|
||||
static protected $internalServiceTemplate = 'OPNsense/HAProxy';
|
||||
static protected $internalServiceEnabled = 'general.enabled';
|
||||
static protected $internalServiceName = 'haproxy';
|
||||
protected static $internalServiceClass = '\OPNsense\HAProxy\HAProxy';
|
||||
protected static $internalServiceTemplate = 'OPNsense/HAProxy';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceName = 'haproxy';
|
||||
|
||||
/**
|
||||
* run syntax check for haproxy configuration
|
||||
|
|
|
@ -34,6 +34,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\MDNSRepeater\MDNSRepeater';
|
||||
static protected $internalModelName = 'mdnsrepeater';
|
||||
protected static $internalModelClass = '\OPNsense\MDNSRepeater\MDNSRepeater';
|
||||
protected static $internalModelName = 'mdnsrepeater';
|
||||
}
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Ntopng\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Ntopng\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -40,10 +40,10 @@ use OPNsense\Ntopng\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Ntopng\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Ntopng';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'ntopng';
|
||||
protected static $internalServiceClass = '\OPNsense\Ntopng\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Ntopng';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'ntopng';
|
||||
|
||||
/**
|
||||
* check if Redis plugin is installed
|
||||
|
|
|
@ -38,8 +38,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class BgpController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'BGP';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\BGP';
|
||||
protected static $internalModelName = 'BGP';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\BGP';
|
||||
public function getAction()
|
||||
{
|
||||
// define list of configurable settings
|
||||
|
|
|
@ -38,8 +38,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class Ospf6settingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'OSPF6';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\OSPF6';
|
||||
protected static $internalModelName = 'OSPF6';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\OSPF6';
|
||||
public function getAction()
|
||||
{
|
||||
$result = array();
|
||||
|
|
|
@ -37,8 +37,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class OspfsettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'OSPF';
|
||||
static protected $internalModelClass = '\OPNsense\Quagga\OSPF';
|
||||
protected static $internalModelName = 'OSPF';
|
||||
protected static $internalModelClass = '\OPNsense\Quagga\OSPF';
|
||||
public function getAction()
|
||||
{
|
||||
$result = array();
|
||||
|
|
|
@ -38,10 +38,10 @@ use \OPNsense\Relayd\Relayd;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Relayd\Relayd';
|
||||
static protected $internalServiceEnabled = 'general.enabled';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Relayd';
|
||||
static protected $internalServiceName = 'relayd';
|
||||
protected static $internalServiceClass = '\OPNsense\Relayd\Relayd';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Relayd';
|
||||
protected static $internalServiceName = 'relayd';
|
||||
private $internalLockHandle = null;
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,8 +42,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
class SettingsController extends ApiControllerBase
|
||||
{
|
||||
|
||||
static protected $internalModelName = 'relayd';
|
||||
static protected $internalModelClass = '\OPNsense\Relayd\Relayd';
|
||||
protected static $internalModelName = 'relayd';
|
||||
protected static $internalModelClass = '\OPNsense\Relayd\Relayd';
|
||||
public $mdlRelayd = null;
|
||||
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Shadowsocks\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Shadowsocks\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class LocalController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Shadowsocks\Local';
|
||||
static protected $internalModelName = 'local';
|
||||
protected static $internalModelClass = '\OPNsense\Shadowsocks\Local';
|
||||
protected static $internalModelName = 'local';
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class LocalserviceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Shadowsocks\Local';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Shadowsocks';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'shadowsockslocal';
|
||||
protected static $internalServiceClass = '\OPNsense\Shadowsocks\Local';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Shadowsocks';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'shadowsockslocal';
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Shadowsocks\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Shadowsocks';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'shadowsocks';
|
||||
protected static $internalServiceClass = '\OPNsense\Shadowsocks\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Shadowsocks';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'shadowsocks';
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class DomainController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'Domain';
|
||||
static protected $internalModelClass = '\OPNsense\Siproxd\Domain';
|
||||
protected static $internalModelName = 'Domain';
|
||||
protected static $internalModelClass = '\OPNsense\Siproxd\Domain';
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
|
|
|
@ -37,8 +37,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class UserController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'User';
|
||||
static protected $internalModelClass = '\OPNsense\Siproxd\User';
|
||||
protected static $internalModelName = 'User';
|
||||
protected static $internalModelClass = '\OPNsense\Siproxd\User';
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Vnstat\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Vnstat\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -40,10 +40,10 @@ use OPNsense\Vnstat\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Vnstat\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Vnstat';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'vnstat';
|
||||
protected static $internalServiceClass = '\OPNsense\Vnstat\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Vnstat';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'vnstat';
|
||||
|
||||
/**
|
||||
* list hourly statistics
|
||||
|
|
|
@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class ClientController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'client';
|
||||
static protected $internalModelClass = '\OPNsense\Wireguard\Client';
|
||||
protected static $internalModelName = 'client';
|
||||
protected static $internalModelClass = '\OPNsense\Wireguard\Client';
|
||||
|
||||
public function searchClientAction()
|
||||
{
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Wireguard\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Wireguard\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
|
|||
|
||||
class ServerController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'server';
|
||||
static protected $internalModelClass = '\OPNsense\Wireguard\Server';
|
||||
protected static $internalModelName = 'server';
|
||||
protected static $internalModelClass = '\OPNsense\Wireguard\Server';
|
||||
|
||||
public function searchServerAction()
|
||||
{
|
||||
|
|
|
@ -40,10 +40,10 @@ use OPNsense\Wireguard\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Wireguard\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Wireguard';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'wireguard';
|
||||
protected static $internalServiceClass = '\OPNsense\Wireguard\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Wireguard';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'wireguard';
|
||||
|
||||
/**
|
||||
* show wireguard config
|
||||
|
|
|
@ -36,8 +36,8 @@ use OPNsense\Core\Backend;
|
|||
|
||||
class WolController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'wol';
|
||||
static protected $internalModelClass = '\OPNsense\Wol\Wol';
|
||||
protected static $internalModelName = 'wol';
|
||||
protected static $internalModelClass = '\OPNsense\Wol\Wol';
|
||||
|
||||
public function setAction()
|
||||
{
|
||||
|
|
|
@ -40,8 +40,8 @@ use \OPNsense\Zerotier\Zerotier;
|
|||
class NetworkController extends ApiMutableModelControllerBase
|
||||
{
|
||||
|
||||
static protected $internalModelName = 'Zerotier';
|
||||
static protected $internalModelClass = '\OPNsense\Zerotier\Zerotier';
|
||||
protected static $internalModelName = 'Zerotier';
|
||||
protected static $internalModelClass = '\OPNsense\Zerotier\Zerotier';
|
||||
|
||||
public function searchAction()
|
||||
{
|
||||
|
|
|
@ -40,8 +40,8 @@ use \OPNsense\Zerotier\Zerotier;
|
|||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
|
||||
static protected $internalModelName = 'Zerotier';
|
||||
static protected $internalModelClass = '\OPNsense\Zerotier\Zerotier';
|
||||
protected static $internalModelName = 'Zerotier';
|
||||
protected static $internalModelClass = '\OPNsense\Zerotier\Zerotier';
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
|
|
|
@ -42,8 +42,8 @@ use \OPNsense\AcmeClient\AcmeClient;
|
|||
*/
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'acmeclient';
|
||||
static protected $internalModelClass = '\OPNsense\AcmeClient\AcmeClient';
|
||||
protected static $internalModelName = 'acmeclient';
|
||||
protected static $internalModelClass = '\OPNsense\AcmeClient\AcmeClient';
|
||||
|
||||
/**
|
||||
* create new cron job or return already available one
|
||||
|
|
|
@ -35,6 +35,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'general';
|
||||
static protected $internalModelClass = '\OPNsense\ClamAV\General';
|
||||
protected static $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\ClamAV\General';
|
||||
}
|
||||
|
|
|
@ -37,10 +37,10 @@ use OPNsense\Core\Backend;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\ClamAV\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/ClamAV';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'clamav';
|
||||
protected static $internalServiceClass = '\OPNsense\ClamAV\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/ClamAV';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'clamav';
|
||||
|
||||
/**
|
||||
* load the initial signatures
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Openconnect\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Openconnect\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Openconnect\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Openconnect';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'openconnect';
|
||||
protected static $internalServiceClass = '\OPNsense\Openconnect\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Openconnect';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'openconnect';
|
||||
}
|
||||
|
|
|
@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Softether\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Softether\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -40,8 +40,8 @@ use OPNsense\Softether\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Softether\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Softether';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'softether';
|
||||
protected static $internalServiceClass = '\OPNsense\Softether\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Softether';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'softether';
|
||||
}
|
||||
|
|
|
@ -38,8 +38,8 @@ use \OPNsense\Core\Backend;
|
|||
*/
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'tinc';
|
||||
static protected $internalModelClass = '\OPNsense\Tinc\Tinc';
|
||||
protected static $internalModelName = 'tinc';
|
||||
protected static $internalModelClass = '\OPNsense\Tinc\Tinc';
|
||||
|
||||
/**
|
||||
* get network action
|
||||
|
|
|
@ -35,8 +35,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class ExitaclController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'exitpolicy';
|
||||
static protected $internalModelClass = '\OPNsense\Tor\ACLExitPolicy';
|
||||
protected static $internalModelName = 'exitpolicy';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\ACLExitPolicy';
|
||||
public function searchaclAction()
|
||||
{
|
||||
return $this->searchBase('policy', array('enabled', 'type', 'network', 'action', 'startport', 'endport'));
|
||||
|
|
|
@ -38,8 +38,8 @@ use \OPNsense\Base\UIModelGrid;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Tor\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\General';
|
||||
protected static $internalModelName = 'general';
|
||||
|
||||
/* override default set action */
|
||||
public function setAction()
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class HiddenserviceController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'hiddenservice';
|
||||
static protected $internalModelClass = '\OPNsense\Tor\HiddenService';
|
||||
protected static $internalModelName = 'hiddenservice';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\HiddenService';
|
||||
public function searchserviceAction()
|
||||
{
|
||||
return $this->searchBase('service', array('enabled', 'name'));
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class HiddenserviceaclController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'hiddenserviceacl';
|
||||
static protected $internalModelClass = '\OPNsense\Tor\HiddenServiceACL';
|
||||
protected static $internalModelName = 'hiddenserviceacl';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\HiddenServiceACL';
|
||||
public function searchaclAction()
|
||||
{
|
||||
return $this->searchBase('hiddenserviceacl', array('enabled', 'hiddenservice', 'port', 'target_host', 'target_port'));
|
||||
|
|
|
@ -33,6 +33,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class RelayController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Tor\Relay';
|
||||
static protected $internalModelName = 'relay';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\Relay';
|
||||
protected static $internalModelName = 'relay';
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SocksaclController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'policy';
|
||||
static protected $internalModelClass = '\OPNsense\Tor\ACLSocksPolicy';
|
||||
protected static $internalModelName = 'policy';
|
||||
protected static $internalModelClass = '\OPNsense\Tor\ACLSocksPolicy';
|
||||
public function searchaclAction()
|
||||
{
|
||||
return $this->searchBase('policy', array('enabled', 'type', 'network', 'action'));
|
||||
|
|
|
@ -32,6 +32,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'general';
|
||||
static protected $internalModelClass = 'OPNsense\NodeExporter\General';
|
||||
protected static $internalModelName = 'general';
|
||||
protected static $internalModelClass = 'OPNsense\NodeExporter\General';
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableServiceControllerBase;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\NodeExporter\General';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceTemplate = 'OPNsense/NodeExporter';
|
||||
static protected $internalServiceName = 'node_exporter';
|
||||
protected static $internalServiceClass = '\OPNsense\NodeExporter\General';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceTemplate = 'OPNsense/NodeExporter';
|
||||
protected static $internalServiceName = 'node_exporter';
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ use OPNsense\Nut\Nut;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Nut\Nut';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Nut';
|
||||
static protected $internalServiceEnabled = 'general.enable';
|
||||
static protected $internalServiceName = 'nut';
|
||||
protected static $internalServiceClass = '\OPNsense\Nut\Nut';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Nut';
|
||||
protected static $internalServiceEnabled = 'general.enable';
|
||||
protected static $internalServiceName = 'nut';
|
||||
}
|
||||
|
|
|
@ -33,6 +33,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Nut\Nut';
|
||||
static protected $internalModelName = 'nut';
|
||||
protected static $internalModelClass = '\OPNsense\Nut\Nut';
|
||||
protected static $internalModelName = 'nut';
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class AntivirusController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\CICAP\Antivirus';
|
||||
static protected $internalModelName = 'antivirus';
|
||||
protected static $internalModelClass = '\OPNsense\CICAP\Antivirus';
|
||||
protected static $internalModelName = 'antivirus';
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
|
|||
|
||||
class GeneralController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\CICAP\General';
|
||||
static protected $internalModelName = 'general';
|
||||
protected static $internalModelClass = '\OPNsense\CICAP\General';
|
||||
protected static $internalModelName = 'general';
|
||||
}
|
||||
|
|
|
@ -38,10 +38,10 @@ use OPNsense\CICAP\General;
|
|||
*/
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\CICAP\General';
|
||||
static protected $internalServiceTemplate = 'OPNsense/CICAP';
|
||||
static protected $internalServiceEnabled = 'enabled';
|
||||
static protected $internalServiceName = 'cicap';
|
||||
protected static $internalServiceClass = '\OPNsense\CICAP\General';
|
||||
protected static $internalServiceTemplate = 'OPNsense/CICAP';
|
||||
protected static $internalServiceEnabled = 'enabled';
|
||||
protected static $internalServiceName = 'cicap';
|
||||
|
||||
/**
|
||||
* check if ClamAV plugin is installed
|
||||
|
|
|
@ -32,8 +32,8 @@ use OPNsense\Core\Backend;
|
|||
|
||||
class BansController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Nginx\Nginx';
|
||||
static protected $internalModelName = 'nginx';
|
||||
protected static $internalModelClass = '\OPNsense\Nginx\Nginx';
|
||||
protected static $internalModelName = 'nginx';
|
||||
public function searchbanAction()
|
||||
{
|
||||
return $this->searchBase('ban', array('ip', 'time'));
|
||||
|
|
|
@ -36,10 +36,10 @@ use OPNsense\Core\Backend;
|
|||
|
||||
class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
static protected $internalServiceClass = '\OPNsense\Nginx\Nginx';
|
||||
static protected $internalServiceTemplate = 'OPNsense/Nginx';
|
||||
static protected $internalServiceEnabled = 'general.enabled';
|
||||
static protected $internalServiceName = 'nginx';
|
||||
protected static $internalServiceClass = '\OPNsense\Nginx\Nginx';
|
||||
protected static $internalServiceTemplate = 'OPNsense/Nginx';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceName = 'nginx';
|
||||
|
||||
/**
|
||||
* override parent method - stopping nginx is not allowed because otherwise you would loose
|
||||
|
|
|
@ -33,8 +33,8 @@ use OPNsense\Core\Backend;
|
|||
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelClass = '\OPNsense\Nginx\Nginx';
|
||||
static protected $internalModelName = 'nginx';
|
||||
protected static $internalModelClass = '\OPNsense\Nginx\Nginx';
|
||||
protected static $internalModelName = 'nginx';
|
||||
|
||||
// download rules
|
||||
public function downloadrulesAction()
|
||||
|
|
|
@ -37,6 +37,6 @@ use \OPNsense\Core\Config;
|
|||
*/
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = "ProxySSO";
|
||||
static protected $internalModelClass = "\OPNsense\ProxySSO\ProxySSO";
|
||||
protected static $internalModelName = "ProxySSO";
|
||||
protected static $internalModelClass = "\OPNsense\ProxySSO\ProxySSO";
|
||||
}
|
||||
|
|
|
@ -42,8 +42,8 @@ use \OPNsense\Proxy\Proxy;
|
|||
*/
|
||||
class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
static protected $internalModelName = 'proxyuseracl';
|
||||
static protected $internalModelClass = '\OPNsense\ProxyUserACL\ProxyUserACL';
|
||||
protected static $internalModelName = 'proxyuseracl';
|
||||
protected static $internalModelClass = '\OPNsense\ProxyUserACL\ProxyUserACL';
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue