NextDom\Ajax\CmdAjax
Class CmdAjax
Synopsis
class CmdAjax
extends BaseAjax
{
- // members
- protected $NEEDED_RIGHTS = UserRight::USER;
- protected boolean $MUST_BE_CONNECTED = true;
- protected boolean $CHECK_AJAX_TOKEN = true;
- // Inherited members from BaseAjax
- protected string $NEEDED_RIGHTS;
- protected boolean $MUST_BE_CONNECTED;
- protected boolean $CHECK_AJAX_TOKEN;
- protected AjaxHelper $ajax;
- // methods
- public void toHtml()
- public void execCmd()
- public void getByObjectNameEqNameCmdName()
- public void getByObjectNameCmdName()
- public void byId()
- public void copyHistoryToCmd()
- public void replaceCmd()
- public void byHumanName()
- public void usedBy()
- public void getHumanCmdName()
- public void byEqLogic()
- public void getCmd()
- public void save()
- public void multiSave()
- public void changeHistoryPoint()
- public void getHistory()
- public void emptyHistory()
- public void setOrder()
- public void fileUpload()
- public void setIsVisibles()
- public void getDeadCmd()
- // Inherited methods from BaseAjax
- public void __construct()
- public void process()
- protected void checkAccessOrFail()
- protected void checkSizeAndExtension()
Hierarchy
Extends
Members
protected
- $CHECK_AJAX_TOKEN
- $CHECK_AJAX_TOKEN — string
- $MUST_BE_CONNECTED
- $MUST_BE_CONNECTED — string
- $NEEDED_RIGHTS
- $NEEDED_RIGHTS — string
- $ajax — NextDom\Helpers\AjaxHelper
Methods
public
- byEqLogic() — Get list of command by eqLogic id
- byHumanName() — Get command by human name
- byId() — Get command object by his id
- changeHistoryPoint() — Change history item from datetime to another
- copyHistoryToCmd() — Copy history from cmd to another one
- emptyHistory() — Clear history
- execCmd() — Execute a command
- fileUpload() — Upload file from dashboard
- getByObjectNameCmdName() — Get an object from his name and command name
- getByObjectNameEqNameCmdName() — Get an object from his name, eqLogic name and command name
- getCmd() — Get a command by his id with eqLogic name and Object name
- getDeadCmd()
- getHistory() — Get command history
- getHumanCmdName() — Get command human name
- multiSave() — Save a list of command
- replaceCmd() — Replace command with another one
- save() — Save change on command
- setIsVisibles() — Change command visibility of multiple commands
- setOrder() — Set command order
- toHtml() — Get one or more command(s) HTML render
- usedBy() — Get list of command, eqLogic and scenario that use a command
Inherited from NextDom\Ajax\BaseAjax
protected
- checkAccessOrFail() — Check access of the user. Fail on problem.
- checkSizeAndExtension()
public
- process() — Start the process