\Realms
VLAN management realms class
Synopsis
class Realms
{
- // constants
- const TABLE_NAME = 'realms';
- const MODULE = '?module=vlanmanagement&realms=true';
- // members
- public $routing;
- protected array $error = ;
- protected array $exceptions = ;
- protected $db;
- protected $svlanDb;
- protected $qinqBindingsDb;
- protected array $allRealms = ;
- protected $messages;
- // methods
- public void __construct()
- protected bool validate()
- protected bool protectDefault()
- protected bool emptyVar()
- protected bool unique()
- public void add()
- public void edit()
- public void delete()
- public string showAll()
- protected void addForm()
- public string ajaxEdit()
- protected void back()
- public void links()
- public void ajaxData()
- protected void goToStartOrError()
- protected void showError()
- protected void showExceptions()
- protected void logAdd()
- protected void logDelete()
- protected void logEdit()
Constants
Name | Value |
---|---|
TABLE_NAME | 'realms' |
MODULE | '?module=vlanmanagement&realms=true' |
Members
protected
- $allRealms
—
array
Contains all realms - $db
—
Placeholder for nyan_orm object for `realms` table - $error
—
array
Contains errors - $exceptions
—
array
Contains exceptions - $messages
—
Placeholder for UbillingMessageHelper instance. - $qinqBindingsDb
—
Placeholder for nyan_orm object for qinq_bindings table. - $svlanDb
—
Placeholder for nyan_orm object for qinq_svlan table.
public
Methods
protected
- addForm() — Form to create new entry
- back()
- emptyVar() — Check if occasionally we do not receive empty vars like realm or id.
- goToStartOrError() — Redirects user back and show error if any
- logAdd() — Log add action
- logDelete() — Log delete action
- logEdit() — Log edit action
- protectDefault() — Check if delete or edit not default entry
- showError() — If we have any errors show all of them
- showExceptions() — Show all exceptions if any.
- unique() — Check if entry unique
- validate() — Validator
public
- __construct() — Realms object
- add() — Adding new entry
- ajaxData() — Form all the entries to ajax array
- ajaxEdit() — Forming edit form
- delete() — Delete entry
- edit() — Edit entry
- links()
- showAll() — Show all the entries