API - XOOPS 2.5.11 Beta 2
By monxoops.fr
functions.php File Reference

Namespaces

namespace  system
 

Functions

 system_CleanVars (&$global, $key, $default='', $type='int')
 
 system_loadLanguage ($name, $domain='', $language=null)
 
 system_adminVersion ($version, $value='')
 
 system_AdminIcons ($img)
 
 system_loadTemplate ($name)
 
 modify_chmod ($value_chmod, $path_file, $id)
 

Function Documentation

◆ modify_chmod()

modify_chmod (   $value_chmod,
  $path_file,
  $id 
)
Parameters
$value_chmod
$path_file
$id
Returns
string

◆ system_AdminIcons()

system_AdminIcons (   $img)
Parameters
$img
Returns
mixed
Here is the call graph for this function:

◆ system_adminVersion()

system_adminVersion (   $version,
  $value = '' 
)
Parameters
$version
string$value
Returns
mixed

◆ system_CleanVars()

system_CleanVars ( $global,
  $key,
  $default = '',
  $type = 'int' 
)

Get variables passed by GET or POST method

Comment by Taiwen Jiang (a.k.a. phppp): THE METHOD IS NOT COMPLETE AND NOT SAFE. YOU ARE ENCOURAGED TO USE PHP'S NATIVE FILTER_VAR OR FILTER_INPUT FUNCTIONS DIRECTLY BEFORE WE MIGRATE TO XOOPS 3.

Parameters
$global
$key
string$default
string$type
Returns
int|mixed|string
Deprecated:
since 2.5.11, please use Xmf\Request
Here is the call graph for this function:

◆ system_loadLanguage()

system_loadLanguage (   $name,
  $domain = '',
  $language = null 
)

System language loader wrapper

Parameters
string$nameName of language file to be loaded, without extension
string$domainModule dirname; global language file will be loaded if $domain is set to 'global' or not specified
string$languageLanguage to be loaded, current language content will be loaded if not specified
Returns
boolean
Todo:
expand domain to multiple categories, e.g. module:system, framework:filter, etc.

We must check later for an empty value. As xoops_getPageOption could be empty

◆ system_loadTemplate()

system_loadTemplate (   $name)
Parameters
$name