本文整理汇总了PHP中SimpleXMLExtended::combinexml方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleXMLExtended::combinexml方法的具体用法?PHP SimpleXMLExtended::combinexml怎么用?PHP SimpleXMLExtended::combinexml使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleXMLExtended
的用法示例。
在下文中一共展示了SimpleXMLExtended::combinexml方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _buildXml
/**
* generate the xml document
*
* @return void
*/
private function _buildXml()
{
if (!$this->_plugin_request || $this->_complete_request) {
if ($this->_sys === null) {
$this->_sys = $this->_sysinfo->getSys();
}
$this->_buildVitals();
$this->_buildNetwork();
$this->_buildHardware();
$this->_buildMemory();
$this->_buildFilesystems();
$this->_buildMbinfo();
$this->_buildUpsinfo();
}
$this->_buildPlugins();
$this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding()));
}
示例2: _buildXml
/**
* generate the xml document
*
* @return void
*/
private function _buildXml()
{
if (!$this->_plugin_request || $this->_complete_request) {
if (version_compare("5.2", PHP_VERSION, ">")) {
$this->_errors->addError("ERROR", "PHP 5.2 or greater is required, some things may not work correctly");
}
if ($this->_sys === null) {
if (PSI_DEBUG === true) {
// unstable version check
if (!is_numeric(substr(PSI_VERSION, -1))) {
$this->_errors->addError("WARN", "This is an unstable version of phpSysInfo, some things may not work correctly");
}
// Safe mode check
$safe_mode = @ini_get("safe_mode") ? true : false;
if ($safe_mode) {
$this->_errors->addError("WARN", "PhpSysInfo requires to set off 'safe_mode' in 'php.ini'");
}
// Include path check
$include_path = @ini_get("include_path");
if ($include_path && $include_path != "") {
$include_path = preg_replace("/(:)|(;)/", "\n", $include_path);
if (preg_match("/^\\.\$/m", $include_path)) {
$include_path = ".";
}
}
if ($include_path != ".") {
$this->_errors->addError("WARN", "PhpSysInfo requires '.' inside the 'include_path' in php.ini");
}
// popen mode check
if (defined("PSI_MODE_POPEN") && PSI_MODE_POPEN === true) {
$this->_errors->addError("WARN", "Installed version of PHP does not support proc_open() function, popen() is used");
}
}
$this->_sys = $this->_sysinfo->getSys();
}
$this->_buildVitals();
$this->_buildNetwork();
$this->_buildHardware();
$this->_buildMemory();
$this->_buildFilesystems();
$this->_buildMbinfo();
$this->_buildUpsinfo();
}
$this->_buildPlugins();
$this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding()));
}
示例3: _buildXml
/**
* generate the xml document
*
* @return void
*/
private function _buildXml()
{
if (!$this->_plugin_request || $this->_complete_request) {
if ($this->_sys === null) {
if (PSI_DEBUG === true) {
// Safe mode check
$safe_mode = @ini_get("safe_mode") ? TRUE : FALSE;
if ($safe_mode) {
$this->_errors->addError("WARN", "PhpSysInfo requires to set off 'safe_mode' in 'php.ini'");
}
// Include path check
$include_path = @ini_get("include_path");
if ($include_path && $include_path != "") {
$include_path = preg_replace("/(:)|(;)/", "\n", $include_path);
if (preg_match("/^\\.\$/m", $include_path)) {
$include_path = ".";
}
}
if ($include_path != ".") {
$this->_errors->addError("WARN", "PhpSysInfo requires '.' inside the 'include_path' in php.ini");
}
// popen mode check
if (defined("PSI_MODE_POPEN") && PSI_MODE_POPEN === true) {
$this->_errors->addError("WARN", "Installed version of PHP does not support proc_open() function, popen() is used");
}
}
$this->_sys = $this->_sysinfo->getSys();
}
$this->_buildVitals();
$this->_buildNetwork();
$this->_buildHardware();
$this->_buildMemory();
$this->_buildFilesystems();
$this->_buildMbinfo();
$this->_buildUpsinfo();
}
$this->_buildPlugins();
$this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding()));
}