Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
PHP functions used a bit everywhere. More...
Go to the source code of this file.
Functions | |
__ ($id) | |
String localization. | |
anchor ($link, $text, $opts=null) | |
Anchor link. | |
chargeEditor ($selector) | |
Charge dojo editor. | |
clearFloat () | |
Element used to clear css float. | |
cutHtmlText ($html, $length, $ending, $strip_tags, $cut_words, $cut_images, $opts=null) | |
Cut html strings without truncating tags. | |
floatcomp ($a, $comp, $b, $decimals=2) | |
Comparation of floating numbers. | |
gOpt ($opts, $name, $dft=null) | |
Retrieve value from associative array by key. | |
layerWindow ($title, $url, $text, $opts=null) | |
Layer window link. | |
layerWindowCall ($title, $url, $opts=null) | |
Javascript code to open a layer window. | |
relativePath ($abspath) | |
Relative path from absolute path. | |
share ($social, $url, $title=null, $description=null) | |
Social sharing. | |
tooltip ($label, $title, $text, $opts=null) | |
Span element with tooltip. |
PHP functions used a bit everywhere.
Definition in file functions.php.
anchor | ( | $ | link, |
$ | text, | ||
$ | opts = null |
||
) |
Anchor link.
string | $link | link's url |
string | $text | link's text |
array | $opts | associative array of options:
|
Definition at line 60 of file functions.php.
chargeEditor | ( | $ | selector | ) |
Charge dojo editor.
Charges the dojo editor in the elements selected through the given css selector
string | $selector | css selector |
Definition at line 211 of file functions.php.
clearFloat | ( | ) |
Element used to clear css float.
Definition at line 141 of file functions.php.
cutHtmlText | ( | $ | html, |
$ | length, | ||
$ | ending, | ||
$ | strip_tags, | ||
$ | cut_words, | ||
$ | cut_images, | ||
$ | opts = null |
||
) |
Cut html strings without truncating tags.
string | $html | html string |
int | $length | cut string length |
string | $ending | cut string ending characters |
bool | $strip_tags | whether to remove all html tags or not |
bool | $cut_words | whether to allow words cut or not |
bool | $cut_images | whether to remove image tags or not |
array | $opts | associative array of options:
|
Definition at line 324 of file functions.php.
floatcomp | ( | $ | a, |
$ | comp, | ||
$ | b, | ||
$ | decimals = 2 |
||
) |
Comparation of floating numbers.
float | $a | first number |
string | $comp | comparation type |
float | $b | second number |
int | $decimals | number of decimals |
Definition at line 186 of file functions.php.
gOpt | ( | $ | opts, |
$ | name, | ||
$ | dft = null |
||
) |
Retrieve value from associative array by key.
It's also possible to set a default value if the requested key is not set
array | $opts | associative array |
string | $name | key name |
mixed | $dft | default value |
Definition at line 171 of file functions.php.
layerWindow | ( | $ | title, |
$ | url, | ||
$ | text, | ||
$ | opts = null |
||
) |
Layer window link.
Returns a link which opens a js layer window
string | $title | window title |
string | $url | content's url |
string | $text | link's text |
array | $opts | associative array of options, see layerWindowCall |
Definition at line 87 of file functions.php.
layerWindowCall | ( | $ | title, |
$ | url, | ||
$ | opts = null |
||
) |
Javascript code to open a layer window.
string | $title | window title |
string | $url | content's url |
array | $opts | associative array of options:
|
Definition at line 105 of file functions.php.
relativePath | ( | $ | abspath | ) |
Relative path from absolute path.
array | $abspath | absolute path |
Definition at line 151 of file functions.php.
share | ( | $ | social, |
$ | url, | ||
$ | title = null , |
||
$ | description = null |
||
) |
Social sharing.
mixed | $social | "all" or an array of social site names. Supported ones are:
|
string | $url | the url to share |
string | $title | title to share |
string | $description | description to share |
Definition at line 277 of file functions.php.
tooltip | ( | $ | label, |
$ | title, | ||
$ | text, | ||
$ | opts = null |
||
) |
Span element with tooltip.
string | $label | element text |
string | $title | tooltip title |
string | $text | tooltip text |
array | $opts | associative array of options:
|
Definition at line 131 of file functions.php.