ezjscore.ini [ezjscServer_ezjsc]
The block [ezjscServer_ezjsc] of extension/ezjscore/settings/ezjscore.ini (extension ezjscore), with 1 setting(s).
FunctionList[]=ezjsckeyword
FunctionList[]=ezjscrating_rate
Settings for setting up a server functions
These are also supported by ezjscPacker, the class used in ezcss and ezscript
Here is an example of setting up such a function:[ezjscServer_<custom_server>]
Optional, uses <custom_server> as class name if not set
Class=MyCustomJsGeneratorClass
Optional, defines if a template is to be executed instead of a php class function
In this case request will go to /templates/<class>/<function>.tpl
TemplateFunction=true
Optional, uses autoload system if not defined
File=extension/ezjscore/classes/mycustomjsgenerator.php
Optional, List of [ezjscServer]FunctionList functions user needs to have access to, Default: none
Functions[]=ezjsc
Optional, If pr function, then function name will be appended to Function name like
<FunctionList_name>_<funtion_name>, warning will be thrown if not set in FunctionList[].
Default: disabled
PermissionPrFunction=enabled
Optional, whether Functions[] is checked. Not set: checked, and a refused call is answered
with its error text (as before). disabled: not checked. enabled: checked, and a request whose
calls are all refused is answered with 403 Forbidden.
RequirePolicy=enabled
Definition of use in template:
{ezscript('<custom_server>::<funtion_name>[::arg1[::arg2]]')}
Never edit extension/ezjscore/settings/ezjscore.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/ezjscore.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/ezjscore.ini.append.phpfor one siteaccess,extension/<extension>/settings/ezjscore.ini.append.phpin an extension (read when the extension is active).
Class
Url to test this server function(return current time):
<root>/ezjscore/call/ezjsc::time
Default: ezjscServerFunctionsJs.
# settings/override/ezjscore.ini.append.php
[ezjscServer_ezjsc]
Class=ezjscServerFunctionsJs
*/ ?>Related
Generated by ./console exp:help:examples from extension/ezjscore/settings/ezjscore.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.