|
| __construct (JInputJson $input=null, Registry $config=null, WebClient $client=null, Container $container=null) |
|
| addFormatMap ($contentHeader, $format) |
|
| getTemplate ($params=false) |
|
| getApiRouter () |
|
| dispatch ($component=null) |
|
| __construct (Input $input=null, Registry $config=null, WebClient $client=null, Container $container=null) |
|
| checkSession () |
|
| enqueueMessage ($msg, $type=self::MSG_INFO) |
|
| getCfg ($varname, $default=null) |
|
| getClientId () |
|
| getMenu ($name=null, $options=array()) |
|
| getMessageQueue ($clear=false) |
|
| getName () |
|
| getPathway () |
|
| getTemplate ($params=false) |
|
| getUserState ($key, $default=null) |
|
| getUserStateFromRequest ($key, $request, $default=null, $type='none') |
|
| isHttpsForced ($clientId=null) |
|
| isClient ($identifier) |
|
| login ($credentials, $options=array()) |
|
| logout ($userid=null, $options=array()) |
|
| redirect ($url, $status=303) |
|
| setUserState ($key, $value) |
|
| toString ($compress=false) |
|
| isCli () |
|
| setMenuFactory (MenuFactoryInterface $menuFactory) |
|
| __construct (Input $input=null, Registry $config=null, WebClient $client=null, ResponseInterface $response=null) |
|
| execute () |
|
| getDocument () |
|
| getLanguage () |
|
| flushAssets () |
|
| loadDocument (Document $document=null) |
|
| loadLanguage (Language $language=null) |
|
| loadSession (Session $session=null) |
|
| afterSessionStart (SessionEvent $event) |
|
| getConfig () |
|
| __construct (Input $input=null, Registry $config=null, Web\WebClient $client=null, ResponseInterface $response=null) |
|
| __get ($name) |
|
| execute () |
|
| getInput () |
|
| redirect ($url, $status=303) |
|
| allowCache ($allow=null) |
|
| setHeader ($name, $value, $replace=false) |
|
| getHeaders () |
|
| clearHeaders () |
|
| sendHeaders () |
|
| setBody ($content) |
|
| prependBody ($content) |
|
| appendBody ($content) |
|
| getBody () |
|
| getResponse () |
|
| isValidHttpStatus ($code) |
|
| setResponse (ResponseInterface $response) |
|
| isSslConnection () |
|
| __construct (Registry $config=null) |
|
| close ($code=0) |
|
| execute () |
|
| get ($key, $default=null) |
|
| getLogger () |
|
| set ($key, $value=null) |
|
| setConfiguration (Registry $config) |
|
| setLogger (LoggerInterface $logger) |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
| setContainer (Container $container) |
|
| getDocument () |
|
| getSession () |
|
| setSession (SessionInterface $session) |
|
| checkToken ($method='post') |
|
| getFormToken ($forceNew=false) |
|
| getMessageQueue () |
|
| getIdentity () |
|
| getInput () |
|
| getLanguage () |
|
| loadIdentity (User $identity=null) |
|
| bootComponent ($component) |
|
| bootModule ($module, $applicationName) |
|
| bootPlugin ($plugin, $type) |
|
| getDispatcher () |
|
| triggerEvent ($eventName, $args=[]) |
|
Joomla! API Application class
- Depuis
- 4.0.0
handlePreflight |
( |
|
$method, |
|
|
|
$router |
|
) |
| |
|
protected |
Handles preflight requests.
- Paramètres
-
String | $method | The REST verb |
ApiRouter | $router | The API Routing object |
- Renvoie
- void
- Depuis
- 4.0.0
If not an OPTIONS request or CORS is not enabled, there's nothing useful to do here.
Obtain allowed CORS origin from Global Settings. Set to * (=all) if not set.
Obtain allowed CORS headers from Global Settings. Set to sensible default if not set.
Obtain allowed CORS methods from Global Settings. Set to methods exposed by current route if not set.
Références $method, et $route.