当前位置: 首页>>代码示例>>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;未经允许,请勿转载。