本文整理汇总了PHP中AJXP_Plugin::loadConfigs方法的典型用法代码示例。如果您正苦于以下问题:PHP AJXP_Plugin::loadConfigs方法的具体用法?PHP AJXP_Plugin::loadConfigs怎么用?PHP AJXP_Plugin::loadConfigs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AJXP_Plugin
的用法示例。
在下文中一共展示了AJXP_Plugin::loadConfigs方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadConfigs
public function loadConfigs($configsData)
{
parent::loadConfigs($configsData);
if (isset($configsData["UNOCONV"]) && !empty($configsData["UNOCONV"])) {
// APPEND THE UNOCONV SUPPORTED EXTENSIONS
$this->manifestDoc->documentElement->setAttribute("mimes", implode(",", array_merge($this->imagickExtensions, $this->unoconvExtensios)));
} else {
$this->manifestDoc->documentElement->setAttribute("mimes", implode(",", $this->imagickExtensions));
}
}
示例2: loadConfigs
public function loadConfigs($configData)
{
parent::loadConfigs($configData);
$keyFile = $this->getPluginWorkDir(true) . "/agent.pem";
if (file_exists($keyFile)) {
$res = openssl_pkey_get_private(file_get_contents($keyFile));
$details = openssl_pkey_get_details($res);
$public = $details["key"];
$this->pluginConf["ZOHO_AGENT_PUBLIC_KEY"] = $public;
}
}
示例3: loadConfigs
public function loadConfigs($configData)
{
parent::loadConfigs($configData);
if (!defined("AJXP_THEME_FOLDER")) {
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER . "/gui.ajax/res");
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER . "/themes/" . $this->pluginConf["GUI_THEME"]);
}
if (!isset($configData["CLIENT_TIMEOUT_TIME"])) {
$this->pluginConf["CLIENT_TIMEOUT_TIME"] = intval(ini_get("session.gc_maxlifetime"));
}
}
示例4: loadConfigs
public function loadConfigs($configData)
{
parent::loadConfigs($configData);
if (preg_match('/MSIE 7/', $_SERVER['HTTP_USER_AGENT']) || preg_match('/MSIE 8/', $_SERVER['HTTP_USER_AGENT'])) {
// Force legacy theme for the moment
$this->pluginConf["GUI_THEME"] = "oxygen";
}
if (!defined("AJXP_THEME_FOLDER")) {
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER . "/gui.ajax/res");
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER . "/themes/" . $this->pluginConf["GUI_THEME"]);
}
if (!isset($configData["CLIENT_TIMEOUT_TIME"])) {
$this->pluginConf["CLIENT_TIMEOUT_TIME"] = intval(ini_get("session.gc_maxlifetime"));
}
}
示例5: loadConfigs
public function loadConfigs($data)
{
$this->filterData($data);
parent::loadConfigs($data);
}