Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe FOFUtilsIniParser

Fonctions membres publiques statiques

static parse_ini_file ($file, $process_sections, $rawdata=false)
 
static parse_ini_file_php ($file, $process_sections=false, $rawdata=false)
 

Description détaillée

A utility class to parse INI files. This monstrosity is only required because some impossibly misguided individuals who misrepresent themselves as hosts have disabled PHP's parse_ini_file() function for "security reasons". Apparently their blatant ignorance doesn't allow them to discern between the innocuous parse_ini_file and the potentially dangerous ini_set functions, leading them to disable the former and let the latter enabled. In other words, THIS CLASS IS HERE TO FIX STUPID.

Documentation des fonctions membres

◆ parse_ini_file()

static parse_ini_file (   $file,
  $process_sections,
  $rawdata = false 
)
static

Parse an INI file and return an associative array.

Paramètres
string$fileThe file to process
bool$process_sectionsTrue to also process INI sections
Renvoie
array An associative array of sections, keys and values

Références $file.

Référencé par FOFUtilsConfigHelper\loadComponentConfig().

◆ parse_ini_file_php()

static parse_ini_file_php (   $file,
  $process_sections = false,
  $rawdata = false 
)
static

A PHP based INI file parser.

Thanks to asohn ~at~ aircanopy ~dot~ net for posting this handy function on the parse_ini_file page on http://gr.php.net/parse_ini_file

Paramètres
string$fileFilename to process
bool$process_sectionsTrue to also process INI sections
bool$rawdataIf true, the $file contains raw INI data, not a filename
Renvoie
array An associative array of sections, keys and values

Références $file, $i, $key, $tmp, $value, et elseif.


La documentation de cette classe a été générée à partir du fichier suivant :