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


PHP LuLu::getAppParam方法代碼示例

本文整理匯總了PHP中source\LuLu::getAppParam方法的典型用法代碼示例。如果您正苦於以下問題:PHP LuLu::getAppParam方法的具體用法?PHP LuLu::getAppParam怎麽用?PHP LuLu::getAppParam使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在source\LuLu的用法示例。


在下文中一共展示了LuLu::getAppParam方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setTheme

 public function setTheme()
 {
     $currentTheme = LuLu::getAppParam('adminTheme');
     $moduleId = LuLu::$app->controller->module->id;
     $config = ['pathMap' => ['@app/views' => ['@static/admin/' . $currentTheme . '/views'], '@source/modules/' . $moduleId . '/admin/views' => ['@static/admin/' . $currentTheme . '/modules/' . $moduleId]], 'baseUrl' => '@static/admin/' . $currentTheme];
     $this->theme = new Theme($config);
 }
開發者ID:merlinxie,項目名稱:lulublog,代碼行數:7,代碼來源:BaseBackView.php

示例2: getContentByChannel

 public static function getContentByChannel($channelIds, $other = [])
 {
     $tableName = '';
     $where = '';
     $cachedChannels = LuLu::getAppParam('cachedChannels');
     if (intval($channelIds) > 0) {
         $channel = $cachedChannels[$channelIds];
         $tableName = $channel['table'];
         if (empty($tableName)) {
             return [];
         }
         if ($channel['is_leaf']) {
             $where = 'channel_id=' . $channelIds;
         } else {
             $leafIds = $channel['leaf_ids'];
             if ($leafIds == '') {
                 return [];
             }
             $where = 'channel_id in(' . $leafIds . ')';
         }
     } else {
         $channelIdArray = explode(',', $channelIds);
         $tableName = $channel[$channelIdArray[0]];
         if (empty($tableName)) {
             return [];
         }
         $leafIds = '';
         foreach ($channelIdArray as $id) {
             $leafIds .= $cachedChannels[$id]['leaf_ids'] . ',';
         }
         $leafIdsArray = explode(',', rtrim($leafIds, ','));
         $leafIdsArray = array_unique($leafIdsArray);
         $leafIds = implode(',', $leafIdsArray);
         $where = 'channel_id in(' . $leafIds . ')';
     }
     $query = self::buildContentQuery($tableName, $other, $where);
     return $query->all();
 }
開發者ID:hucongyang,項目名稱:lulucms2,代碼行數:38,代碼來源:DataSource.php

示例3: getHomeTheme

 public static function getHomeTheme()
 {
     $currentTheme = LuLu::getAppParam('homeTheme');
     return $currentTheme;
 }
開發者ID:huasxin,項目名稱:lulucms2,代碼行數:5,代碼來源:Resource.php

示例4: getContentItemView

 public static function getContentItemView($content)
 {
     $currentTheme = LuLu::getAppParam('homeTheme');
     $ret = '@webroot/static/themes/' . $currentTheme . '/modules/' . $content['type'] . '/_inc/content_default';
     return $ret;
 }
開發者ID:merlinxie,項目名稱:lulublog,代碼行數:6,代碼來源:Resource.php


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