Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,220 of 9,220 pages
About the help in other languages
All help pages

ezjscore.ini [ezjscServer_ezjsc]

The settings of [ezjscServer_ezjsc] in ezjscore.ini (ezjscore): Class

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/ezjscore-ezjscore/ezjscServer_ezjsc.md

On this page

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.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/ezjscore.ini.append.php for one siteaccess,
  • extension/<extension>/settings/ezjscore.ini.append.php in 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.

<?php /* #?ini charset="utf-8"?
# settings/override/ezjscore.ini.append.php
[ezjscServer_ezjsc]
Class=ezjscServerFunctionsJs
*/ ?>

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x