[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_admin/src/Model/ -> SysinfoModel.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 713 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SysinfoModel:: (14 methods):
  cleanPrivateData()
  cleanSectionPrivateData()
  getPhpSettings()
  getConfig()
  getInfo()
  phpinfoEnabled()
  getSafeData()
  getPHPInfo()
  getPhpInfoArray()
  getExtensions()
  getDirectory()
  addDirectory()
  getEditor()
  parsePhpInfo()


Class: SysinfoModel  - X-Ref

Model for the display of system information.

cleanPrivateData(array $dataArray, string $dataType = 'other')   X-Ref
Remove sections of data marked as private in the privateSettings

param: array   $dataArray  Array with data that may contain private information
param: string  $dataType   Type of data to search for a specific section in the privateSettings array
return: array

cleanSectionPrivateData($sectionValues)   X-Ref
Obfuscate section values

param: mixed  $sectionValues  Section data
return: string|array

getPhpSettings()   X-Ref
Method to get the PHP settings

return: array  Some PHP settings

getConfig()   X-Ref
Method to get the config

return: array  config values

getInfo()   X-Ref
Method to get the system information

return: array  System information values

phpinfoEnabled()   X-Ref
Check if the phpinfo function is enabled

return: boolean True if enabled

getSafeData(string $dataType, bool $public = true)   X-Ref
Method to get filter data from the model

param: string  $dataType  Type of data to get safely
param: bool    $public    If true no sensitive information will be removed
return: array

getPHPInfo()   X-Ref
Method to get the PHP info

return: string  PHP info

getPhpInfoArray()   X-Ref
Get phpinfo() output as array

return: array

getExtensions()   X-Ref
Method to get a list of installed extensions

return: array installed extensions

getDirectory(bool $public = false)   X-Ref
Method to get the directory states

param: bool $public If true no information is going to be removed
return: array States of directories

addDirectory(string $name, string $path, string $message = '')   X-Ref
Method to add a directory

param: string  $name     Directory Name
param: string  $path     Directory path
param: string  $message  Message
return: void

getEditor()   X-Ref
Method to get the editor

return: string  The default editor

parsePhpInfo(string $html)   X-Ref
Parse phpinfo output into an array
Source https://gist.github.com/sbmzhcn/6255314

param: string  $html  Output of phpinfo()
return: array



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer