hash password with blowfish algorithm. use the password_salt value in the config file of the plugin
| package |
jelix |
|---|---|
function to check if the password API can be used In some PHP version ( <5.3.7), crypt() with blowfish is vulnerable.
But this issue has been fixed on some older PHP version (php 5.3.3 for most of them) in some distro, like Debian squeeze.
| package |
Default |
|---|---|
| see | http://www.php.net/security/crypt_blowfish.php |
check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
It should be called only by some scripts like an installation wizard, not by an entry point.
| package |
jelix |
|---|---|
| todo |
migrate the code to jAppManager or jApp |
check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
This function should be called in all entry point, before the creation of the coordinator.
| package |
jelix |
|---|---|
| see | \jAppManager |
| todo |
migrate the code to jAppManager or jApp |
function used by php to try to load an unknown class
| package |
jelix |
|---|---|
a special if block to test easily if the current user is connected
{ifuserconnected} ..here generated content if the user is connected {/ifuserconnected}| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
arrayno parameters. array should be empty
stringthe php code corresponding to the begin or end of the block
a special if block to test easily if the current user is not connected
{ifusernotconnected} ..here generated content if the user is NOTconnected {/ifusernotconnected}| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
arrayno parameters. array should be empty
stringthe php code corresponding to the begin or end of the block
jscompress : formate a js block code by removing spaces, tabs and returns.
Example: {jscompress}var foo = bar;{/jscompress}
| package |
jelix |
|---|---|
string
remove all extra whitespaces
| package |
jelix |
|---|---|
a block to display an html form, with data from a jforms
usage : {form $theformobject,'submit_action', $submit_action_params} here form content {/form}
You can add this others parameters :
| package |
jelix |
|---|---|
| see | \jForms |
booleantrue if it is the begin of block, else false
array0=>form object 1=>selector of submit action 2=>array of parameters for submit action 3=>name of the builder : default is html 4=>array of options for the builder
stringthe php code corresponding to the begin or end of the block
a block to loop over controls list of a form and to display them
usage : {formcontrols} here content to display one control {/formcontrols} It accept also some parameters 1) an optional jFormsBase object if the {formcontrols} is outside a {form} block 2) an optional array of control names : only these controls will be displayed
| package |
jelix |
|---|---|
| see | \jForms |
booleantrue if it is the begin of block, else false
arrayempty array or 0=>jFormsBase object or 0=>jFormsBase object, 1=>array of control names or 0=>array of control names
stringthe php code corresponding to the begin or end of the block
a block to display only data of a form
usage : {formdata $theformobject} here the form content {/formdata}
| package |
jelix |
|---|---|
| see | \jForms |
| since | 1.0.1 |
booleantrue if it is the begin of block, else false
array0=>form object 2=>name of the builder : default is html 3=>array of options for the builder
stringthe php code corresponding to the begin or end of the block
a block to loop over submit button list of a form and to display them
usage : {formsubmits} here content to display one submit {/formsubmits} It accept also some parameters 1) an optional jFormsBase object if the {formsubmits} is outside a {form} block 2) an optional array of submit control names : only these controls will be displayed
| package |
jelix |
|---|---|
| see | \jForms |
booleantrue if it is the begin of block, else false
arrayempty array or 0=>jFormsBase object or 0=>jFormsBase object, 1=>array of submit names or 0=>array of submit names
stringthe php code corresponding to the begin or end of the block
a special if block to test easily the current control name TO BE USED inside a {formcontrols} block
{ifctrl 'name1','name2',...} some tpl {else} some other tpl {/ifctrl}
| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
array0=>'name',etc. to match against current control name
stringthe php code corresponding to the begin or end of the block
swf plugin : Adds html code to display a swf
Example : {swf 'promobidon.swf', array('id'=>'promo', 'width'=>150, 'height'=>90), array('quality'=>'hight', 'wmode'=>'transparent'), array('longeur'=>150)} {image 'toupie.png'} {/swf}
Render :
<object id="promo" width="150" height="90" data="/data/fichiers/promobidon.swf?&longeur=150" type="application/x-shockwave-flash">
<param value="transparent" name="wmode"/>
<img src="/data/fichiers/toupie.png"/>
$params[0] url of the swf $params[1]['id'] id of <object .../> $params[1]['class'] class of <object .../> $params[1]['width'] Width final of SWF $params[1]['height'] Height final of SWF $params[2][xx] Parameter of the Flash Player $params[3][xx] Flashvar for the Flash Player
| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
arrayparameters for the url
stringPHP generated code
swfjs plugin : Adds html and JS code to display a swf
Example : {swfjs 'promobidon.swf', array('id'=>'promo', 'width'=>150, 'height'=>90, 'detect'=>true), array('quality'=>'hight', 'wmode'=>'transparent'), array('longeur'=>150)} {image 'toupie.png'} {/swfjs}
Render after the execution of javascript file :
$params[0] url of the swf $params[1]['id'] id of <object .../> $params[1]['class'] class of <object .../> $params[1]['width'] Width final of SWF $params[1]['height'] Height final of SWF $params[1]['version'] (ex: '6.0.65') Detect specific major, minor and revision versions of the Flash plugin. $params[1]['expressinstall'] (true:Bool) Use Express Install, or show an update message if Flash isn't installed. OR $params[1]['update'] (false:Bool) Or, degrade silently and gracefully. $params[2][xx] Parameter of the Flash Player $params[3][xx] Flashvar for the Flash Player
| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
arrayparameters for the url
stringPHP generated code
a special to insert latex content
usage : {lcmd
| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
array1=>latex command
stringthe php code corresponding to the begin or end of the block
a special to insert latex content
usage : {lenv 'latex_block_name'} ..here latex content {/lenv}
| package |
jelix |
|---|
booleantrue if it is the begin of block, else false
array1=>latex command
stringthe php code corresponding to the begin or end of the block
cfunction to allow to had a break instruction in a template
| package |
jelix |
|---|---|
cfunction to fetch the content of a zone into a tpl var
{fetchzone 'myVar', 'myModule~myzone', array('foo'=>'bar)}
{if $myVar !== ''}
{$myVar}
{/if}| package |
jelix |
|---|
stringthe php code corresponding to the function content
function plugin : include a template into another template
{include 'myModule~foo'}| package |
jelix |
|---|
array0=>$string the template selector (string)
stringthe php code corresponding to the function content
cfunction plugin : include the content of a zone
{zone 'myModule~myzone'}
{zone 'myModule~myzone',array('foo'=>'bar)}| package |
jelix |
|---|
stringthe php code corresponding to the function content
compiled function plugin : display a constant. Not available in untrusted templates
{const 'foo'}| package |
jelix |
|---|
array0=>$string the constant name
stringthe php code corresponding to the function content
Display a full form without the use of other plugins.
usage : {formfull $theformobject,'submit_action', $submit_action_params}
You can add this others parameters :
| package |
jelix |
|---|
stringthe php code corresponding to the begin or end of the block
swfbiscuit plugin : Adds html code to display a swf
Example : {swfbiscuit 'promobidon.swf', array('id'=>'promo', 'width'=>150, 'height'=>90), array('quality'=>'hight', 'wmode'=>'transparent'), array('longeur'=>150)}
Render :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="150" height="90">
<param name="quality" value="hight" />
<param name="wmode" value="transparent" />
<embed src="/data/fichiers/promobidon.swf?longeur=150"
quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="150" height="90"/>
$params[0] url of the swf $params[1]['id'] id of <object .../> $params[1]['class'] class of <object .../> $params[1]['width'] Width final of SWF $params[1]['height'] Height final of SWF $params[2][xx] Parameter of the Flash Player $params[3][xx] Flashvar for the Flash Player
| package |
jelix |
|---|
arrayparameters for the url
stringPHP generated code
compiled function plugin : display a constant. Not available in untrusted templates
{const 'foo'}| package |
jelix |
|---|
array0=>$string the constant name
stringthe php code corresponding to the function content
compiled function plugin : display a constant. Not available in untrusted templates
{const 'foo'}| package |
jelix |
|---|
array0=>$string the constant name
stringthe php code corresponding to the function content
function plugin : Increment and print a counter on all calls.
{for $i=0;$i<10;$i++}{counter 'name', true}{/for}| package |
jelix |
|---|
stringThe name of the counter
booleanPrint the counter or not
function plugin : Init a counter.
{counter_init 'name', 'type', 'start', 'incr'}| package |
jelix |
|---|
stringThe name of the counter
stringThe type of the counter ('0', '00', 'aa' or 'AA').
string|integerWhere the counter start. String if type == 'aa'/'AA'
integerHow many time the counter is increased on each call
function plugin : Reset a counter.
{counter_reset 'name'}| package |
jelix |
|---|
stringThe name of the counter
Type: function<br> Name: cycle_init<br> Date: Feb, 2008<br> Purpose: initialize cycling through given values<br> Input: - values = comma separated list of values to cycle - name = name of cycle (optional)
Examples:
{cycle_init '#eeeeee,#d0d0d0d'}
{cycle_init 'name','#eeeeee,#d0d0d0d'}
| package |
jelix |
|---|---|
| Throws |
|
\jTpl
stringthe name of the cycle or the list of values
stringthe list of values
Type: function<br> Name: cycle_reset<br> Date: Feb, 2008<br> Purpose: reset the cycle of a given cycle name or the default<br> Input: - name = name of cycle (optional)
Examples:
{cycle_reset 'name'}
{cycle_reset}
| package |
jelix |
|---|---|
| Throws |
|
\jTpl
stringthe name of the cycle
Repeat a string
{repeat_string 'mystring'}
{repeat_string 'mystring',4}| package |
jelix |
|---|
stringThe string to repeat
integerHow many times to repeat
function plugin : print the html content of a form control. You should use this plugin inside a formcontrols block
| package |
jelix |
|---|---|
| Throws |
|
stringthe name of the control to display (required if it is outside a formcontrols)
arrayattribute to add on the generated code (html attributes for example)
function plugin : print the label of a form control. You should use this plugin inside a formcontrols block
| package |
jelix |
|---|---|
| Throws |
|
stringthe name of the control to display (required if it is outside a formcontrols)
string
function plugin : print the raw value of a form control, without trying to display a corresponding label and without to display values of child controls. You should use this plugin inside a formcontrols block
| package |
jelix |
|---|---|
| Throws |
|
stringthe name of the control to display (required if it is outside a formcontrols)
stringseparator to display values of a multi-value control
function plugin : print the value of a form control. You should use this plugin inside a formcontrols block
| package |
jelix |
|---|---|
| Throws |
|
stringthe name of the control to display (required if it is outside a formcontrols)
stringseparator to display values of a multi-value control
function plugin : show a diff between two string
| package |
jelix |
|---|
stringthe first string
stringthe second string
arraycontains : 'nodiffmsg' message when no diff found ; 'version1' ; 'version2' to be compared ; 'type' of display
Display all data of a form without the use of other plugins.
| package |
jelix |
|---|
stringthe builder type to use
arrayoptions for the builder
function plugin : print the html content of a form reset button.
function plugin : print the html content of a form submit button. You can use this plugin inside a formsubmits block
| package |
jelix |
|---|---|
| Throws |
|
stringthe name of the submit to display (required if it is outside a formsubmits)
arrayattributes for the generated html element
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
gravatar plugin : write the url corresponding to the image of the gravatar account identified by the given email address
| package |
jelix |
|---|
stringaccount
arrayparameters for : 1) the default avatar URL 2) the default size of the image 3) the username to be put in the "alt" attribute of the img
hook plugin :
| package |
jelix |
|---|
stringthe event name to call
arrayparameters to give to the listener
image plugin : write the url corresponding to the image
Add a link to the image, The image is resized, and cached
class :string id :string alt :string width :uint height :uint maxwidth :uint only with maxheight maxheight :uint only with maxwidth zoom 1-100 omo :boolean alignh [left|center|right|:int] alignv [top|center|bottom|:int] ext [png|jpg|gif] quality 0-100 if ext = jpg shadow :boolean soffset :uint sangle :uint sblur :uint sopacity :uint scolor #000000 :string background #000000 :string
gif -> image/gif jpeg -> image/jpeg jpg -> image/jpeg jpe -> image/jpeg xpm -> image/x-xpixmap xbm -> image/x-xbitmap wbmp -> image/vnd.wap.wbmp png -> image/png other -> image/png
| package |
jelix |
|---|
stringthe url of image relative to the www path
arrayparameters for the transformation and img element
function plugin : write the full url (with domain name) corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
stringdomain name, false if you want to use the config domain name or the server name
booleanif true, then escape the string for html
function plugin : write the localized string corresponding to the given locale key
example : {jlocale 'myModule~my.locale.key'}
| package |
jelix |
|---|
stringthe locale key
function plugin : Display messages from jMessage
| package |
jelix |
|---|---|
function plugin : write the root url corresponding to the given ressource type If this ressource type is not specified in the config file, returned value will be basePath
| package |
jelix |
|---|
stringthe name of the ressource type
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
booleanif true, then escape the string for html
function plugin: write the url corresponding to the given jelix action, inserting placeholder name (between two %) for some parameter, so you can generate the url dynamically in JS by replacing placeholders by javascript values.
example :
it may produce something like that (depending how the url is configured for the 'jxacl~admin_rightslist' action):
index.php/acl/rightslist/%idgroup%/bar?acl=%acl%Then you can replace placeholders
var urlpattern = document.getElementById("baz").dataset.url; var id_group = 45, acl = 'hello'; var url = urlpattern.replace("%idgroup%", id_group); url = url.replace("%acl%", acl);
| package |
jelix |
|---|
stringselector action
arraystatic parameters for the url
arraylist of placeholders: key=name of an url parameter, value=a placeholder name you choose
function plugin : Ajax request
it creates a javascript ajax function example :
{link_to_remote
'Link',
'result',
'test~default:ajax', array('id'=>'34'),
array(
'position'=>'html',
'method'=>'GET',
'beforeSend'=>'alert("beforeSend")',
'complete'=>'alert("complete")',
'error'=>'alert("error")',
)}
| package |
jelix |
|---|---|
Examples: <pre> {mailto array("address"=>"me@domain.com")} {mailto array("address"=>"me@domain.com","encode"=>"javascript")} {mailto array("address"=>"me@domain.com","encode"=>"hex")} {mailto array("address"=>"me@domain.com","subject"=>"Hello to you!")} {mailto array("address"=>"me@domain.com","cc"=>"you@domain.com,they@domain.com")} {mailto array("address"=>"me@domain.com","extra"=>'class="mailto"')} </pre>
| package |
jelix |
|---|---|
| params |
jTpl $tpl array $params |
displays page links
| package |
jelix |
|---|
stringselector of the action
arrayparameters for the action
integernumber of items
integerindex of the first item to display
integeritems number in a page
stringname of the parameter in the actionParams which will content a page offset
arrayproperties for the links display
function plugin : write the url corresponding to a resource stored in a www directory of a module
| package |
jelix |
|---|
stringthe module name
arraythe relative path of the wanted file to the www directory of the module
booleanif true, then escape the string for html
function plugin : write the url corresponding to the given jelix action for javascript
it creates a javascript string, that contains the url, with dynamic javasript parameters
example : {urljsstring 'jxacl~admin_rightslist',array(),array('grpid'=>'idgroup','__rnd'=>'Math.random()')};
it will produce: "index.php?module=acl&action=admin_rightslist&grpid="+idgroup+"&__rnd="+ Math.random();
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
function plugin : write the localized string corresponding to the given locale key
example : {jlocale 'myModule~my.locale.key'}
| package |
jelix |
|---|
stringthe locale key
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
Display all data of a form without the use of other plugins.
function plugin : write the full url (with domain name) corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
stringdomain name, false if you want to use the config domain name or the server name
function plugin : write the localized string corresponding to the given locale key
example : {jlocale 'myModule~my.locale.key'}
| package |
jelix |
|---|
stringthe locale key
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
function plugin : write the full url (with domain name) corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
stringdomain name, false if you want to use the config domain name or the server name
booleanif true, then escape the string for html
function plugin : write the localized string corresponding to the given locale key
example : {jlocale 'myModule~my.locale.key'}
| package |
jelix |
|---|
stringthe locale key
function plugin : write the url corresponding to the given jelix action
| package |
jelix |
|---|
stringselector action
arrayparameters for the url
booleanif true, then escape the string for xml
meta plugin : modify an html response object
| package |
jelix |
|---|---|
| see | \jResponseHtml |
| params |
array $params additionnal parameters (a media attribute for stylesheet for example) |
stringindicates what you want to specify (possible values : js, css, jsie, jsie7, jsltie7, cssie, cssie7, cssltie7, csstheme, cssthemeie, cssthemeie7, cssthemeltie7, bodyattr, keywords, description, others)
mixedparameter (a css style sheet for "css" for example)
meta plugin : allow to add css files and js files stored into modules, in an html response object
| package |
jelix |
|---|---|
| see | \jResponseHtml |
| params |
array $params additionnal parameters for the generated tag (a media attribute for stylesheet for example) |
stringindicates what you want to specify (possible values : js, css, jsie, cssie, cssie7, cssltie7, csstheme, cssthemeie, cssthemeie7, cssthemeltie7)
stringthe module where file is stored
mixedthe relative path inside the {module}/www/ directory, or inside the {module}/www/themes/{currenttheme}/ directory
meta plugin : modify an xml response object
| package |
jelix |
|---|---|
| see | \jResponseXml |
stringindicates what you want to specify (possible values : xsl,css,csstheme)
mixedparameter (a css style sheet url for "css" for example)
Modifier plugin : catenate a value to a variable
{$var|cat:"foo"}
{$var|cat:$othervar}
| package |
jelix |
|---|
stringthe string to be modified
stringthe string to concat to $string
string
modifier plugin : display count of an array
{$myarray|count_array}| package |
jelix |
|---|
array
integer
Modifier plugin : count the number of characters in a text
{$mytext|count_characters}
{$mytext|count_characters:true}| package |
jelix |
|---|
string
booleaninclude whitespace in the character count
integer
modifier plugin : count the number of paragraphs in a text
{$mytext|count_paragraphs}| package |
jelix |
|---|
string
integer
modifier plugin : display count of a DbResultSet Object (how many records)
modifier plugin : count the number of sentences in a text
{$mytext|count_sentences}| package |
jelix |
|---|
string
integer
modifier plugin : count the number of words in a text
{$mytext|count_words}| package |
jelix |
|---|
string
integer
modifier plugin : format a date <pre> {$mydate|date_format:"%b %e, %Y"} </pre>
| package |
jelix |
|---|
stringinput date string
stringstrftime format for output
string|integerdefault date if $string is empty
stringthe formated date
modifier plugin : change the format of a date.
The date can be given as a string, or as a DateTime object.
It uses DateTime to convert a date. It takes two optionnal arguments. The first one is the format of the output date. It should be a format understood by DateTime, or one of this format identifier: 'lang_date', 'lang_datetime', 'lang_time', 'lang_long_datetime'. By default, it use the locale datetime format. The second one is the format of the given date, if the date format is not understood by DateTime.
examples : {$mydate|datetime} {$mydate|datetime:'dd/mm/YY'}
| package |
jelix |
|---|---|
| see | \jDateTime |
stringthe date
stringthe format identifier of the output date
stringthe format identifier of the given date
stringthe converted date
modifier plugin : apply the implode function on the given value
| package |
jelix |
|---|---|
string
Modifier plugin: indent lines of text
{$mytext|indent}
{$mytext|indent:$number_of_spaces}
{$mytext|indent:$number_of_chars:$chars_to_repeat}
| package |
jelix |
|---|
string
integerthe value of the indentation
stringthe char to repeat
string
modifier plugin : change the format of a date
It uses jDateTime to convert a date. It takes two optionnal arguments. The first one is the format identifier of the given date (by default, it is db_datetime). The second one is the format identifier of the output date (by default, it is lang_date).
Availabled format identifiers are (with the equivalent constant of jDateTime) :
examples : {$mydate|jdatetime} {$mydate|jdatetime:'db_time':'lang_time'}
| package |
jelix |
|---|---|
| see | \jDateTime |
| Throws |
|
stringthe date
stringthe format identifier of the given date
stringthe format identifier of the output date
stringthe converted date
NumberFormat plugin for jTpl that wraps PHP number_format function
| package |
jelix |
|---|
floatthe number to format
integerthe number of decimals to return
stringthe separator string for the decimals
stringthe separator string for the thousands
string
modifier plugin : regular epxression search/replace
You should provide two arguments, like the first both of preg_replace {$mystring|regex_replace:'/(\w+) (\d+), (\d+)/i':'${1}1,$3'}
| package |
jelix |
|---|
string
string|array
string|array
string
modifier plugin : simple search/replace
You should provide two arguments, like the first both of str_replace
{$mystring|replace:'foo':'bar'}| package |
jelix |
|---|
stringthe string to modify
stringthe string to search
string
string
Modifier plugin : Rounds a float
{$var|round:2}
| package |
jelix |
|---|
floatthe value to round
integerThe number of decimal digits to round to.
float
modifier plugin : add spaces between characters in a string
{$mytext|spacify}
{$mytext|spacify:$characters_to_insert}| package |
jelix |
|---|
stringthe string to spacify
stringspaces to add
string
modifier plugin : format strings via sprintf
{$mytext|sprintf:'my format %s'}| package |
jelix |
|---|---|
| see | \sprintf |
string
string
string
modifier plugin : Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string
{$var|strip}
{$var|strip:" "}| package |
jelix |
|---|
stringthe text to strip
stringthe string replacing the repeated spaces
string
modifier plugin : Truncate a string
Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string.
{$mytext|truncate}
{$mytext|truncate:40}
{$mytext|truncate:45:'...'}
{$mytext|truncate:60:'...':true}
| package |
jelix |
|---|
stringthe string to truncate
integerthe number of char to keep
stringthe string to append to the truncated string
booleanfalse if the last word shouldn't be cut
string
modifier plugin : cut a html formated string and close all opened tags so that it doesn't inpact on the rest of the page You should use this modifier in a zone so that the return value is cached Plugin from sniplr (original sources can be found here: http://snipplr.com/view.php?codeview&id=3618 ) <pre>{$mytext|wordwrap} {$mytext|truncatehtml:150:"\n<a href=".
..">read full article"} {$mytext|truncatehtml:45}
| package |
jelix |
|---|
stringthe string to truncate
integernumber of chars to keep (warning html tags included )
stringthe string to append to the truncated string
string
modifier plugin : transform a wiki text to another format you can use other transformations by given the name of corresponding wikirenderer rules <pre> {$var|wiki} {$var|wiki:"classicwr_to_xhtml"} </pre>
| package |
jelix |
|---|---|
| see | \jWiki |
| link |
stringthe wiki texte
stringthe name of the wikirenderer rule to use
string
modifier plugin : wrap a string of text at a given length. Same parameters as the php wordwrap function <pre>{$mytext|wordwrap} {$mytext|wordwrap:40} {$mytext|wordwrap:45:"\n"} {$mytext|wordwrap:60:"\n":true} </pre>
| package |
jelix |
|---|
string
integer
string
boolean
string
modifier plugin : convert \r\n, \r or \n to <<br/>> Example: {$text|nl2br}
| package |
jelix |
|---|
stringthe string to modify
string
modifier plugin : simple search/replace for latex chars
| package |
jelix |
|---|
stringthe string to modify
\themodified string
Get information about the password hash. Returns an array of the information that was used to generate the password hash.
array( 'algo' => 1, 'algoName' => 'bcrypt', 'options' => array( 'cost' => 10, ), )
| package |
Default |
|---|
stringThe password hash to extract info from
arrayThe array of information about the hash.
Hash the password using the specified algorithm
| package |
Default |
|---|---|
| returns |
string|false The hashed password, or false on error. |
stringThe password to hash
integerThe algorithm to use (Defined by PASSWORD_* constants)
arrayThe options for the algorithm to use
Determine if the password hash needs to be rehashed according to the options provided
If the answer is true, after validating the password using password_verify, rehash it.
| package |
Default |
|---|
stringThe hash to test
integerThe algorithm used for new password hashes
arrayThe options array passed to password_hash
booleanTrue if the password needs to be rehashed.
Interface for objects which provides a source of data to fill some controls in a form, like menulist, listbox etc.
..
Interface for objects which provides a source of data to fill some controls in a form, like menulist, listbox etc.
..
Interface for objects which provides a source of data to fill some controls in a form, like menulist, listbox etc.
..
interface for plugins for jResponseBasicHtml or jResponseHtml, which allows to make changes in the response at several step
interface for classes used as reporter for installation or check etc.
.. This classes are responsible to show informations to the user
interface for KV driver which store values in a persistent manner (in a file.
..)
interface for KV driver which support 'time to live' on values useful to use the driver as a cache storage
interface for log message. A component which want to log a message can use an object implementing this interface.
Classes that implements it are responsible to format the message. Formatting a message depends on its type.
interface for compiler which needs many source files The PHP file generated by the compiler should check itself if it is still valid. The file should have a "return" statement with a boolean : true if it is ok, false if it should be recompiled.
interface for compiler which needs only one source file.
The PHP file generated by the compiler should check itself if it is still valid. The file should have a "return" statement with a boolean : true if it is ok, false if it should be recompiled.
basic significant url engine generated url are like module/controller/action and others parameters are in the query
.)
a zone to display a default start page with results of the installation check
A user zone should inherits from jZone. jZone provide a cache mecanism.
authentification driver for authentification information stored in a database
cache driver for data stored in a database Warning : Beware about the time returned by the DBMS of the server and the server PHP client : possible asynchronous time (particulary in case of use of multiple servers, incoherent data can be involved).
class base for controllers
A controller is used to implement one or many actions, one method for each action.
class base for controllers
A controller is used to implement one or many actions, one method for each action.
class base for controllers
A controller is used to implement one or many actions, one method for each action.
native plugin for the debugbar, which displays list of errors, warnings.
..
a base class for controllers used in command line application
A controller is used to implement one or many actions, one method for each action.
HTML form builder
a builder form class is a class which help to generate a form for the output (html form for example)
HTML form builder
a builder form class is a class which help to generate a form for the output (html form for example)
HTML form builder
a builder form class is a class which help to generate a form for the output (html form for example)
internal use
this is only a data container. In fact, auth drivers can provide other object to embed user data.
default object to represent a user
this is only a data container. In fact, auth drivers can provide other object to embed user data.
object which represent a user for LDAP driver
this is only a data container. In fact, auth drivers can provide other object to embed user data.
object which represent a user
this is only a data container. In fact, auth drivers can provide other object to embed user data.
Error handlers for the framework.
Replace the default PHP error handler
This object is responsible to include and instancy some classes stored in the classes directory of modules.
handle "classical" request it just gets parameters from the url query and the post content. And responses can be in many format : text, html, xml.
..
The command line version of jCoordinator
This allows us to handle exit code of commands properly
jConfigCompiler merge two ini file in a single array and store it in a temporary file This is a static class
class base for controllers
A controller is used to implement one or many actions, one method for each action.
a base class for controllers used in command line application
A controller is used to implement one or many actions, one method for each action.
a base class for crud controllers
A controller is used to implement one or many actions, one method for each action.
a base class for crud controllers, for DAO which have a primary key based on two fields, a "static" field (a field that we know the value and which is a criteria to to select all viewed record), and a "dynamic" field (the value of the field is created by the user or autoincremented)
A controller is used to implement one or many actions, one method for each action.
the main class of the jelix core
this is the "chief orchestra" of the framework. Its goal is to load the configuration, to get the request parameters used to instancie the correspondant controllers and to run the right method.
Static methods help to encrypt and decrypt string. mCrypt is used if it is installed, else a basic algorithm is used.
The compiler for the DAO xml files. it is used by jIncluder It produces some php classes
This is a generator which creates php class from dao xml file.
It is called by jDaoCompiler
Exception for Dao compiler
It handles locale messages. Message property contains the locale key, and a new property contains the localized message.
Datatype localedatetime
Possible facets are: 'maxValue', 'minValue'
Datatype String.
Possible facets are: 'length','minLength','maxLength', 'pattern'
Datatype url
Possible facets are: 'schemeRequired','hostRequired','pathRequired', 'queryRequired'. all are booleans.
allow to normalize & analyse database parameters.
supported parameters in a profile:
Jelix Exception
It handles locale messages. Message property contains the locale key, and a new property contains the localized message.
exception for jforms
It handles locale messages. Message property contains the locale key, and a new property contains the localized message.
Exception for selector errors
It handles locale messages. Message property contains the locale key, and a new property contains the localized message.
static class to manage and call a form
A form is identified by a selector, and each instance of a form have a unique id (formId). This id can be the id of a record for example. If it is not given, the id is set to 0.
base class of all builder form classes generated by the jform compiler.
a builder form class is a class which help to generate a form for the output (html form for example)
HTML form builder
a builder form class is a class which help to generate a form for the output (html form for example)
choice control.
It has a list of choices, called choice items. Each item has a value and a list of child controls. The value of the choice control is the value of the selected item.
$this->container->privateData contain the list of items that are deactivated. A deactivated item is not displayed.
base class for controls which uses a datasource to fill their contents.
group control
Contains a list of controls. If it has a checkbox, child controls can be disabled by the user. The "value" of the group is then the status of the checkbox "on" or "". if the group is in readonly mode or is deactivated, every children are readonly or deactivated
base class for controls which uses a datasource to fill their contents.
switch
It has a list of choices, called choice items. Each item has a value and a list of child controls. The value of the choice control is the value of the selected item.
$this->container->privateData contain the list of items that are deactivated. A deactivated item is not displayed.
class base for controllers
A controller is used to implement one or many actions, one method for each action.
Base class for a datasource which is based on a class and can be used for dynamic listboxes or menulists
This object is responsible to load cache files.
Some jelix files needs to be compiled in PHP (templates, daos etc..) and their correspondant php content are stored in a cache file. jIncluder verify that cache file exists, and if not, it calls the correspondant compiler. Finally, it includes the cache.
utility class to modify an ini file by preserving comments, whitespace.
. It follows same behaviors of parse_ini_file, except when there are quotes inside values. it doesn't support quotes inside values, because parse_ini_file is totally bugged, depending cases.
utility class to read and modify two ini files at the same time : one master file, and one file which overrides values of the master file, like we have in jelix with mainconfig.ini.php and config.ini.php of an entry point
main class for the installation
It load all entry points configurations. Each configurations has its own activated modules. jInstaller then construct a tree dependencies for these activated modules, and launch their installation and the installation of their dependencies. An installation can be an initial installation, or just an upgrade if the module is already installed.
Utility class to log some message in session in order to be displayed in a template
Utility class to "sniff" method calls to a class instance so that those calls may be repeated later on. The sniffed method should not use any of the magic methods used here (namely __get, __set, __call and __toString).
base class for object which retrieve all parameters of an http request. The process depends on the type of request (ex: xmlrpc.
.)
base class for response object A response object is responsible to generate a content in a specific format.
Atom 1.0 response
Known limitations : only text in the title, and only name in categories
Basic HTML response. the HTML content should be provided by a simple php file.
Generic Action selector
main syntax: "module~action@requestType". module should be a valid module name or # (#=says to get the module of the current request). action should be an action name (controller:method or controller_method). all part are optional, but it should have one part at least.
Special Action selector for jcoordinator Don't use it ! Only for internal purpose.
General syntax for them : "module~resource". Syntax of resource depend on the selector type. module is optional.
selector for business class
business class is a class stored in classname.class.php file in the classes/ module directory or one of its subdirectory. syntax : "module~classname" or "module~classname.
Selector for dao file syntax : "module~daoRecordName".
file : daos/daoRecordName.daorecord.php
selector for interface
interface is stored in interfacename.iface.php file in the classes/ module directory or one of its subdirectory. syntax : "iface:module~ifacename" or "module~ifacename.
selector for localisation string
localisation string are stored in file properties. syntax : "module~prefixFile.keyString". Corresponding file : locales/xx_XX/prefixFile.CCC.properties. xx_XX and CCC are lang and charset set in the configuration
base class for all selector concerning module files
General syntax for them : "module~resource". Syntax of resource depend on the selector type. module is optional.
a specific selector for the xml files which contains the configuration of the engine
a specific selector for user url handler
business class is a class stored in classname.class.php file in the classes/ module directory or one of its subdirectory. syntax : "module~classname" or "module~classname.
SMTP is rfc 821 compliant and implements all the rfc 821 SMTP commands except TURN which will always return a not implemented error. SMTP also provides some utility methods for sending mail to an SMTP server.
This class is just a simple wrapper around SMTP.
provide a soap client where configuration information are stored in the profile file
classes that are mapped to soap types could inherits from this object in order to have some helpers and a better mapping than the default soap mapper
class to compare version numbers. it supports the following keywords: "pre", "-dev", "b", "beta", "a", "alpha".
It supports also the "*" wilcard. This wilcard must be the last part of the version number
jZone is a representation of a zone in an response content, in a html page.
A user zone should inherits from jZone. jZone provide a cache mecanism.
LDAP authentification driver for authentification information stored in LDAP server
authentification driver, which communicate with a LDS server LDS = Linbox Directory Server
cache driver for data stored in Memcached. Use the memcache extension of PHP.
This plugin should be used with a version of the memcache extension, lower than 3.0.1
cache driver for data stored in Memcached. Use the memcache extension of PHP.
This plugin should be used with version 3.0.1 or more of the memcache extension
Object to fetch result, wrapping the underlaying result object of mysqli
Object to fetch result, wrapping a statement object of mysqli, for installation where mysqlnd is not used
jForms widget that shows reCaptcha
in the configuration, sets:
[forms]
captcha.recaptcha.validator = \jelix\forms\Captcha\ReCaptchaValidator
captcha.recaptcha.widgettype = recaptcha
[recaptcha]
;see https://developers.google.com/recaptcha/docs/display to know the meaning
; of these configuration parameters.
theme=..
type=..
size=..
tabindex=..
in the localconfig.ini.php, set the site key and the secret (see your google recpatcha account to retrieve them)
[recaptcha]
sitekey= your recaptcha key
secret= your secret value
then indicate to use recaptcha, in the
<captcha validator="recaptcha"/>
[forms]
captcha=recpatcha
a base class for controllers used in command line application
A controller is used to implement one or many actions, one method for each action.
an url engine to parse,analyse and create significant url it needs an urls.xml file in the config directory (see documentation)
simple url engine generated url are "dirty" jelix url, with full of parameter in the query (module, action etc.
.)
class to compare version numbers. it supports the following keywords: "pre", "-dev", "b", "beta", "a", "alpha".
It supports also the "*" wilcard. This wilcard must be the last part of the version number.