Go to the source code of this file.
Namespaces | |
| FDL | |
Functions | |
| N_ ($s) | |
| if(!function_exists('pgettext')) | ___ ($message, $context="") |
| n___ ($message, $message_plural, $num, $context="") | |
| print_r2 ($z, $ret=false) | |
| AddLogMsg ($msg, $cut=80) | |
| deprecatedFunction ($msg= '') | |
| addWarningMsg ($msg) | |
| mb_ucfirst ($s) | |
| mb_trim ($string) | |
| setMaxExecutionTimeTo ($limit) | |
| getMailAddr ($userid, $full=false) | |
| getTmpDir ($def= '/tmp') | |
| getParam ($name, $def="") | |
| must be in core or global type More... | |
| getCoreParam ($name, $def="") | |
| must be in core or global type More... | |
| getSessionValue ($name, $def="") | |
| getCurrentUser () | |
| getLayoutFile ($app, $layfile) | |
| microtime_diff ($a, $b) | |
| getDebugStack ($slice=1) | |
| logDebugStack ($slice=1, $msg="") | |
| getDbid ($dbaccess) | |
| getDbAccess () | |
| getDbAccessCore () | |
| getDbAccessFreedom () | |
| getDbEnv () | |
| getFreedomContext () | |
| getServiceCore () | |
| getDbAccessValue ($varName) | |
| getServiceFreedom () | |
| getDbName ($dbaccess) | |
| getServiceName ($dbaccess) | |
| simpleQuery ($dbaccess, $query, &$result=array(), $singlecolumn=false, $singleresult=false, $useStrict=null) | |
| getAuthType ($freedomctx="") | |
| getAuthProvider ($freedomctx="") | |
| getAuthProviderList ($freedomctx="") | |
| getAuthTypeParams ($freedomctx="") | |
| getAuthParam ($freedomctx="", $provider="") | |
| getWshCmd ($nice=false, $userid=0, $sudo=false) | |
| getUserId () | |
| bgexec ($tcmd, &$result, &$err) | |
| wbartext ($text) | |
| wbar ($reste, $total, $text="", $fbar=false) | |
| getJsVersion () | |
| setMailtoAnchor ($to, $acontent="", $subject="", $cc="", $bcc="", $from="", $anchorattr=array(), $forcelink="") | |
| isUTF8 ($string) | |
| seems_utf8 ($Str) | |
| WhatInitialisation ($session=null) | |
| setSystemLogin ($login) | |
| mkpasswd ($length=8, $charspace="") | |
| getLcdate () | |
| getLocaleConfig ($core_lang= '') | |
| getLocales () | |
| setLanguage ($lang) | |
| if (!function_exists('pgettext')) ___ | ( | $message, | |
$context = "" |
|||
| ) |
Definition at line 46 of file Lib.Common.php.
| AddLogMsg | ( | $msg, | |
$cut = 80 |
|||
| ) |
send a message to system log
| string | $msg | message to log |
| int | $cut | size limit |
Definition at line 77 of file Lib.Common.php.
| addWarningMsg | ( | $msg | ) |
send a warning msg to the user interface
| string | $msg |
Definition at line 95 of file Lib.Common.php.
| bgexec | ( | $tcmd, | |
| & | $result, | ||
| & | $err | ||
| ) |
exec list of unix command in background
| array | $tcmd | unix command strings |
| $result | ||
| $err |
Definition at line 621 of file Lib.Common.php.
Here is the call graph for this function:| deprecatedFunction | ( | $msg = '' | ) |
| getAuthParam | ( | $freedomctx = "", |
|
$provider = "" |
|||
| ) |
| getAuthProvider | ( | $freedomctx = "" | ) |
| string | $freedomctx |
Definition at line 555 of file Lib.Common.php.
Here is the call graph for this function:| getAuthProviderList | ( | $freedomctx = "" | ) |
| string | $freedomctx |
Definition at line 564 of file Lib.Common.php.
Here is the call graph for this function:| getAuthType | ( | $freedomctx = "" | ) |
| string | $freedomctx |
Definition at line 545 of file Lib.Common.php.
Here is the call graph for this function:| getAuthTypeParams | ( | $freedomctx = "" | ) |
| string | $freedomctx |
| \Dcp\Exception |
Definition at line 575 of file Lib.Common.php.
Here is the call graph for this function:| getCoreParam | ( | $name, | |
$def = "" |
|||
| ) |
must be in core or global type
return value of a parameter
| string | $name | param name |
| string | $def | default value if value is empty |
Definition at line 209 of file Lib.Common.php.
Here is the call graph for this function:| getCurrentUser | ( | ) |
| getDbAccess | ( | ) |
| getDbAccessCore | ( | ) |
| getDbAccessFreedom | ( | ) |
| getDbAccessValue | ( | $varName | ) |
return variable from dbaccess.php
| string | $varName |
| Dcp\Exception |
Definition at line 425 of file Lib.Common.php.
| getDbEnv | ( | ) |
PhpDeprecationInspection
Definition at line 386 of file Lib.Common.php.
Here is the call graph for this function:| getDbid | ( | $dbaccess | ) |
| getDbName | ( | $dbaccess | ) |
| getDebugStack | ( | $slice = 1 | ) |
return call stack
| int | $slice | last call to not return |
Definition at line 325 of file Lib.Common.php.
| getFreedomContext | ( | ) |
Definition at line 396 of file Lib.Common.php.
| getJsVersion | ( | ) |
Definition at line 663 of file Lib.Common.php.
| getLayoutFile | ( | $app, | |
| $layfile | |||
| ) |
Definition at line 258 of file Lib.Common.php.
| getLcdate | ( | ) |
return lcdate use in database : 'iso' Note: old 'dmy' format is not used since 3.2.8
Definition at line 844 of file Lib.Common.php.
| getLocaleConfig | ( | $core_lang = '' | ) |
| string | $core_lang |
Definition at line 853 of file Lib.Common.php.
Here is the call graph for this function:| getLocales | ( | ) |
Definition at line 870 of file Lib.Common.php.
| getMailAddr | ( | $userid, | |
$full = false |
|||
| ) |
get mail addr of a user
| int | $userid | system user identifier |
| bool | $full | if true email is like : "John Doe" John.doe@blackhole.net else only system email address : john.doe@blackhole.net |
Definition at line 133 of file Lib.Common.php.
| getParam | ( | $name, | |
$def = "" |
|||
| ) |
must be in core or global type
return value of parameters
| string | $name | param name |
| string | $def | default value if value is empty |
Definition at line 193 of file Lib.Common.php.
Here is the call graph for this function:| getServiceCore | ( | ) |
Definition at line 405 of file Lib.Common.php.
| getServiceFreedom | ( | ) |
| getServiceName | ( | $dbaccess | ) |
Definition at line 466 of file Lib.Common.php.
| getSessionValue | ( | $name, | |
$def = "" |
|||
| ) |
| string | $name | the variable |
| string | $def | default value if variable is not defined |
Definition at line 240 of file Lib.Common.php.
| getTmpDir | ( | $def = '/tmp' | ) |
| getUserId | ( | ) |
return shell commande for wsh depending of database (in case of several instances)
| bool | $nice | set to true if want nice mode |
| int | $userid | the user identifier to send command (if 0 send like admin without specific user parameter) |
| bool | $sudo | set to true if want to be send with sudo (need /etc/sudoers correctly configured) |
Definition at line 594 of file Lib.Common.php.
| isUTF8 | ( | $string | ) |
Returns true if the string or array of string is encoded in UTF8.
Example of use. If you want to know if a file is saved in UTF8 format : $array = file('one file.txt'); $isUTF8 = isUTF8($array); if (!$isUTF8) –> we need to apply utf8_encode() to be in UTF8 else –> we are in UTF8 :)
| mixed | $string,or | an array from a file() function. |
Definition at line 748 of file Lib.Common.php.
Here is the call graph for this function:| logDebugStack | ( | $slice = 1, |
|
$msg = "" |
|||
| ) |
| int | $slice |
Definition at line 340 of file Lib.Common.php.
Here is the call graph for this function:| mb_trim | ( | $string | ) |
Definition at line 113 of file Lib.Common.php.
| mb_ucfirst | ( | $s | ) |
| microtime_diff | ( | $a, | |
| $b | |||
| ) |
Definition at line 302 of file Lib.Common.php.
| mkpasswd | ( | $length = 8, |
|
$charspace = "" |
|||
| ) |
Returns a random password of specified length composed with chars from the given charspace string or pattern
Definition at line 802 of file Lib.Common.php.
| N_ | ( | $s | ) |
Definition at line 18 of file Lib.Common.php.
| n___ | ( | $message, | |
| $message_plural, | |||
| $num, | |||
$context = "" |
|||
| ) |
Definition at line 55 of file Lib.Common.php.
| print_r2 | ( | $z, | |
$ret = false |
|||
| ) |
Definition at line 65 of file Lib.Common.php.
| seems_utf8 | ( | $Str | ) |
Returns true if the string is encoded in UTF8.
| mixed | $Str | string |
Definition at line 759 of file Lib.Common.php.
| setLanguage | ( | $lang | ) |
use new locale language
| string | $lang | like fr_FR, en_US |
| \Dcp\Core\Exception |
Definition at line 886 of file Lib.Common.php.
| setMailtoAnchor | ( | $to, | |
$acontent = "", |
|||
$subject = "", |
|||
$cc = "", |
|||
$bcc = "", |
|||
$from = "", |
|||
$anchorattr = array(), |
|||
$forcelink = "" |
|||
| ) |
produce an anchor mailto '<a ...>'
| string | $to | a valid mail address or list separated by comma -supported by client- |
| string | $acontent | |
| string | $subject | |
| string | $cc | |
| string | $bcc | |
| string | $from | |
| array | $anchorattr | |
| string | $forcelink |
Definition at line 691 of file Lib.Common.php.
| setMaxExecutionTimeTo | ( | $limit | ) |
increase limit if current limit is lesser than
| int | $limit | new limit in seconds |
Definition at line 121 of file Lib.Common.php.
| setSystemLogin | ( | $login | ) |
Definition at line 786 of file Lib.Common.php.
| simpleQuery | ( | $dbaccess, | |
| $query, | |||
| & | $result = array(), |
||
$singlecolumn = false, |
|||
$singleresult = false, |
|||
$useStrict = null |
|||
| ) |
send simple query to database
| string | $dbaccess | access database coordonates |
| string | $query | sql query |
| string | bool | array | &$result | query result |
| bool | $singlecolumn | set to true if only one field is return |
| bool | $singleresult | set to true is only one row is expected (return the first row). If is combined with singlecolumn return the value not an array, if no results and $singlecolumn is true then $results is false |
| bool | $useStrict | set to true to force exception or false to force no exception, if null use global parameter |
| Dcp\Db\Exception |
Definition at line 484 of file Lib.Common.php.
Here is the call graph for this function:| wbar | ( | $reste, | |
| $total, | |||
$text = "", |
|||
$fbar = false |
|||
| ) |
Definition at line 642 of file Lib.Common.php.
| wbartext | ( | $text | ) |
| WhatInitialisation | ( | $session = null | ) |
Initialise WHAT : set global $action whithout an authorized user
Definition at line 767 of file Lib.Common.php.
Here is the call graph for this function: