NextDom\Ajax\ObjectAjax
Class ObjectAjax
Synopsis
class ObjectAjax
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 remove()
- public void byId()
- public void createSummaryVirtual()
- public void all()
- public void save()
- public void getChild()
- public void toHtml()
- private void renderObjectAsHtml()
- private void renderScenariosAsHtml()
- private bool toHtmlIgnoreEqLogics()
- private void toHtmlEqLogics()
- public void setOrder()
- public void getSummaryHtml()
- public void removeImage()
- private UploadedImage getUploadedImageData()
- private void checkAndMoveUploadImage()
- public void uploadImage()
- // 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
private
- checkAndMoveUploadImage() — Check file path and move file
- getUploadedImageData() — Get data of uploaded file
- renderObjectAsHtml()
- renderScenariosAsHtml()
- toHtmlEqLogics() — Get HTML render of eqLogics
- toHtmlIgnoreEqLogics() — Test if eqLogic must be ignored
public
- all() — Get all objects
- byId() — Get object by his Id
- createSummaryVirtual()
- getChild() — Get child objects
- getSummaryHtml() — Get HTML of the summary
- remove() — Remove object
- removeImage() — Remove image linked to an object
- save() — Save object passed in json format
- setOrder()
- toHtml() — Get HTML representation of the object
- uploadImage() — Link an image to the object
Inherited from NextDom\Ajax\BaseAjax
protected
- checkAccessOrFail() — Check access of the user. Fail on problem.
- checkSizeAndExtension()
public
- process() — Start the process