Cheetah
inc
classes
ChWsbInstallerUtils.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbModuleDb'
);
9
ch_import
(
'ChWsbIO'
);
10
11
class
ChWsbInstallerUtils
extends
ChWsbIO
12
{
13
function
__construct
()
14
{
15
parent::__construct();
16
}
17
18
function
isXsltEnabled
()
19
{
20
if
(((
int
)phpversion()) >= 5) {
21
if
(class_exists (
'DOMDocument'
) && class_exists (
'XsltProcessor'
))
22
return
true
;
23
}
else
{
24
if
(function_exists(
'domxml_xslt_stylesheet_file'
))
25
return
true
;
26
elseif (function_exists (
'xslt_create'
))
27
return
true
;
28
}
29
return
false
;
30
}
31
32
function
isAllowUrlInclude
()
33
{
34
$sAllowUrlInclude = ini_get(
'allow_url_include'
);
35
return
!($sAllowUrlInclude == 0);
36
}
37
38
public
static
function
isModuleInstalled
($sUri)
39
{
40
$oModuleDb
=
new
ChWsbModuleDb
();
41
return
$oModuleDb
->isModule($sUri);
42
}
43
}
ChWsbIO
Definition:
ChWsbIO.php:9
ChWsbInstallerUtils\isAllowUrlInclude
isAllowUrlInclude()
Definition:
ChWsbInstallerUtils.php:32
ChWsbInstallerUtils\isXsltEnabled
isXsltEnabled()
Definition:
ChWsbInstallerUtils.php:18
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
ChWsbModuleDb
Definition:
ChWsbModuleDb.php:12
ChWsbInstallerUtils
Definition:
ChWsbInstallerUtils.php:12
$oModuleDb
$oModuleDb
Definition:
classifieds.php:20
ChWsbInstallerUtils\__construct
__construct()
Definition:
ChWsbInstallerUtils.php:13
ChWsbInstallerUtils\isModuleInstalled
static isModuleInstalled($sUri)
Definition:
ChWsbInstallerUtils.php:38
Generated by
1.8.20