當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Configurations::getEnvSetting方法代碼示例

本文整理匯總了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);
 }
開發者ID:emildev35,項目名稱:processmaker,代碼行數:12,代碼來源:ajaxListener.php

示例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);
    }
開發者ID:ralpheav,項目名稱:processmaker,代碼行數:31,代碼來源:casesGenerateDocumentPage_Ajax.php

示例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');
 }
開發者ID:norahmollo,項目名稱:processmaker,代碼行數:14,代碼來源:ajaxListener.php


注:本文中的Configurations::getEnvSetting方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。