NextDom\Ajax\BaseAjax
Class BaseAjax
Synopsis
class BaseAjax
{
- // members
- protected string $NEEDED_RIGHTS = UserRight::ADMIN;
- protected boolean $MUST_BE_CONNECTED = true;
- protected boolean $CHECK_AJAX_TOKEN = true;
- protected AjaxHelper $ajax = NULL;
- private array $FORBIDDEN_METHODS = ;
- // methods
- public void __construct()
- public void process()
- protected void checkAccessOrFail()
- private bool checkIfActionExists()
- protected void checkSizeAndExtension()
Members
private
- $FORBIDDEN_METHODS — array
protected
- $CHECK_AJAX_TOKEN — string
- $MUST_BE_CONNECTED — string
- $NEEDED_RIGHTS — string
- $ajax — NextDom\Helpers\AjaxHelper
Methods
private
- checkIfActionExists() — Test if the action method exists
protected
- checkAccessOrFail() — Check access of the user. Fail on problem.
- checkSizeAndExtension()
public
- __construct() — Initialize Ajax helper
- process() — Start the process