当前位置: 首页>>代码示例>>PHP>>正文


PHP yii::warning方法代码示例

本文整理汇总了PHP中yii::warning方法的典型用法代码示例。如果您正苦于以下问题:PHP yii::warning方法的具体用法?PHP yii::warning怎么用?PHP yii::warning使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在yii的用法示例。


在下文中一共展示了yii::warning方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: actionIndex

 /**
  * Lists all Country models.
  * @return mixed
  */
 public function actionIndex()
 {
     yii::warning('yyy aaa ', __METHOD__);
     $searchModel = new CountrySearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
开发者ID:yunlongmain,项目名称:yii2-test,代码行数:11,代码来源:CountryController.php

示例2: actionLog

 public function actionLog($msg)
 {
     yii::warning('in actionLog ' . $msg);
 }
开发者ID:yunlongmain,项目名称:yii2-test,代码行数:4,代码来源:SiteController.php

示例3: getPermissionList

 private function getPermissionList()
 {
     $meta = new MetaData();
     $allModule = $meta->getRouteMap();
     unset($meta);
     Yii::beginProfile(__CLASS__ . __METHOD__);
     $Ar_dataModel = [];
     //\yii::trace('Module Permission:'.__LINE__.'check rules'.print_r($this->permission_rules,true),__METHOD__);
     foreach ($allModule as $moduleName => $controllerMap) {
         if ($this->checkAccess($moduleName)) {
             //\yii::trace('Module Permission:'.__LINE__.'check rules permission for '.$moduleName,__METHOD__);
             //\yii::trace('Module Permission:'.__LINE__.'check rules permission for '.print_r($controllerMap,true),__METHOD__);
             foreach ($controllerMap as $controllerName => $actionMap) {
                 if ($this->checkAccess($moduleName, $controllerName)) {
                     //\yii::trace('Module Permission:'.__LINE__.'check rules permission for '.$moduleName.' and '.$controllerName,__METHOD__);
                     $map = [];
                     foreach ($actionMap as $action) {
                         if ($this->checkAccess($moduleName, $controllerName, $action)) {
                             //\yii::trace('Module Permission:'.__LINE__.'check rules permission for '.$moduleName.' and '.$controllerName.' and '.$action,__METHOD__);
                             $map[] = ucfirst($action);
                         }
                     }
                     if (count($map)) {
                         $Ar_dataModel[] = [ucfirst($moduleName), ucfirst($controllerName), implode(', ', $map)];
                     }
                 } else {
                     //No Controller Access
                     \yii::warning('Module Permission:' . __LINE__ . 'check rules no permission for ' . $moduleName . '|' . $controllerName . '|', __METHOD__);
                     continue;
                 }
             }
         } else {
             //No module Access then continue
             \yii::warning('Module Permission:' . __LINE__ . 'check rules no permission for ' . $moduleName, __METHOD__);
             continue;
         }
     }
     \yii::warning('Module Permission:' . __LINE__ . 'check rules no permission for ' . print_r($Ar_dataModel, true), __METHOD__);
     Yii::endProfile(__CLASS__ . __METHOD__);
     return new ArrayDataProvider(['allModels' => $Ar_dataModel, 'pagination' => false]);
 }
开发者ID:rajanishtimes,项目名称:basicyii,代码行数:41,代码来源:PermissionTrait.php


注:本文中的yii::warning方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。