本文整理汇总了PHP中Configurations::getEnvSetting方法的典型用法代码示例。如果您正苦于以下问题:PHP Configurations::getEnvSetting方法的具体用法?PHP Configurations::getEnvSetting怎么用?PHP Configurations::getEnvSetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configurations
的用法示例。
在下文中一共展示了Configurations::getEnvSetting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getUsers
public function getUsers($params)
{
require_once 'classes/model/Users.php';
G::LoadClass('configuration');
$conf = new Configurations();
$search = isset($params['search']) ? $params['search'] : null;
$users = Users::getAll($params['start'], $params['limit'], $search);
foreach ($users->data as $i => $user) {
$users->data[$i]['USER'] = $conf->getEnvSetting('format', array('userName' => $user['USR_USERNAME'], 'firstName' => $user['USR_FIRSTNAME'], 'lastName' => $user['USR_LASTNAME']));
}
print G::json_encode($users);
}
示例2: Configurations
$swFileExist = 0;
if ($sw_file_exists) {
$swFileExist = 1;
}
return $swFileExist;
}
if ($actionAjax == 'casesGenerateDocumentPage') {
global $G_PUBLISH;
$oHeadPublisher =& headPublisher::getSingleton();
G::loadClass('configuration');
$conf = new Configurations();
$oHeadPublisher->addExtJsScript('cases/casesGenerateDocumentPage', true);
//adding a javascript file .js
$oHeadPublisher->addContent('cases/casesGenerateDocumentPage');
//adding a html file .html.
$oHeadPublisher->assign('pageSize', $conf->getEnvSetting('casesListRowNumber'));
G::RenderPage('publish', 'extJs');
}
if ($actionAjax == 'generateDocumentGrid_Ajax') {
G::LoadClass('case');
G::LoadClass("BasePeer");
global $G_PUBLISH;
$oCase = new Cases();
$aProcesses = array();
$G_PUBLISH = new Publisher();
$c = $oCase->getAllGeneratedDocumentsCriteria($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['TASK'], $_SESSION['USER_LOGGED']);
if ($c->getDbName() == 'dbarray') {
$rs = ArrayBasePeer::doSelectRs($c);
} else {
$rs = GulliverBasePeer::doSelectRs($c);
}
示例3: generatedDocumentsSummary
public function generatedDocumentsSummary()
{
global $G_PUBLISH;
G::loadClass('configuration');
$oHeadPublisher =& headPublisher::getSingleton();
$conf = new Configurations();
$oHeadPublisher->addExtJsScript('cases/casesGenerateDocumentPage', true);
//adding a javascript file .js
$oHeadPublisher->addContent('cases/casesGenerateDocumentPage');
//adding a html file .html.
$oHeadPublisher->assign("FORMATS", $conf->getFormats());
$oHeadPublisher->assign('pageSize', $conf->getEnvSetting('casesListRowNumber'));
G::RenderPage('publish', 'extJs');
}