本文整理汇总了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]);
}
示例2: actionLog
public function actionLog($msg)
{
yii::warning('in actionLog ' . $msg);
}
示例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]);
}