Kajona\Jsonapi\Admin\JsonapiAdmin

Admin controller of the jsonapi-module. Handles all admin requests.

Synopsis

class JsonapiAdmin extends AdminController implements AdminInterface {
}

Hierarchy

Tasks

Line Task
182 validate the model data which can contain any data from the json request
214 validate the model data which can contain any data from the json request
197+ could be moved to a general admin-skin helper

Constants

Name Value
STR_MODULE_ANNOTATION "@module"
STR_MODULEID_ANNOTATION "@moduleId"

Members

protected

Methods

protected

  • actionDelete() — Deletes the model from the database
  • actionDispatch() — Handles the incomming request. Catches all exceptions so that we return an clean json response with an fitting status code if an error occured
  • actionGet() — Is called on an GET request. If an systemId is available only the specific entry gets returned else an complete list
  • actionPost() — Inserts the request data into the model and creates the entry in the database
  • actionPut() — Inserts the request data into the model and updates the entry in the database
  • getCurrentObject() — Returns an model based on the given GET parameter "class". If the system id is available it validates whether the id is valid and that the object exists
  • getRequestBody() — Parses the request body as JSON string and returns the result as array
  • injectData() — Injects the request data into the model
  • serializeObject() — Serialize an model into an array. Uses the object serializer which searches in the model for @jsonExport annotations. The system id is always added

Inherited from Kajona\System\Admin\AdminController

protected

public

  • action() — This method triggers the internal processing.
  • adminReload() — Use this method to reload a specific url.
  • getLanguageToWorkOn() — Loads the language to edit content
  • getModuleData() — Returns the data for a registered module FIXME: validate if still required
  • getModuleDescription() — Creates a text-based description of the current module.
  • getModuleOutput() — Basic controller method invoking all further methods in order to generate an admin view.
  • getModuleRightNaviEntry() — Renders the "always present" module permissions entry for each module (takes the currents' user permissions into account).
  • getModuleSystemid() — Returns the SystemID of a installed module
  • getOutputModuleNavi() — Writes the ModuleNavi, overwrite if needed Use two-dim arary: array[ array["right", "link"], array["right", "link"] ]

Inherited from Kajona\System\System\AbstractController

protected

  • getObjLang() — Returns the current Text-Object Instance
  • getObjModule() — Returns the current instance of SystemModule, based on the current subclass.
  • setStrLangBase() — Sets the textbase, so the module used to load texts

public