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


PHP Person::checkConfirmed方法代码示例

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


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

示例1: function

            

    
			<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'layout' => "{items}\n{pager}", 'columns' => [['class' => 'yii\\grid\\CheckboxColumn', 'headerOptions' => ['width' => '30']], ['headerOptions' => ['width' => '100'], 'header' => $model->generateSegmentFilterDropdown($list_type_id), 'label' => 'Availability', 'format' => 'raw', 'value' => function ($data) use($model) {
    return Person::checkAvailability($data->id, $model->id);
}, 'visible' => $list_type_id == 1 ? 1 : 0], ['headerOptions' => ['width' => '100'], 'header' => '<div class="text-center">Client<br />Approved</div>', 'format' => 'raw', 'visible' => $list_type_id == 1 ? 1 : 0, 'value' => function ($data) use($model) {
    if (Person::isClientApproved($data->id, $model->id) == 'approved') {
        return '<div class="text-center"><div class="btn btn-xs btn-success"><span class="glyphicon glyphicon-ok"></span></div></div>';
    }
    if (Person::isClientApproved($data->id, $model->id) == 'denied') {
        return '<div class="text-center"><div class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-remove"></span></div></div>';
    }
    return false;
}], ['headerOptions' => ['width' => '130'], 'label' => 'Confirmed', 'format' => 'raw', 'value' => function ($data) use($model) {
    return Person::checkConfirmed($data->id, $model->id);
}, 'visible' => $list_type_id == 2 ? 2 : 0], ['headerOptions' => ['width' => '20'], 'format' => 'raw', 'value' => function ($data) {
    return $data->generateThumb();
}], ['headerOptions' => ['width' => '140'], 'attribute' => 'fname'], 'lname', ['attribute' => 'Gender', 'format' => 'raw', 'value' => function ($model) {
    return ucfirst($model->gender);
}], ['headerOptions' => ['width' => '150'], 'header' => $model->generateRoleFilterDropdown($list_type_id), 'contentOptions' => ['class' => 'text-center'], 'label' => 'Role', 'format' => 'raw', 'value' => function ($data) use($model) {
    return $model->generateRoleDropdown($data->id, $model->id);
}], ['class' => 'yii\\grid\\ActionColumn', 'headerOptions' => ['width' => '100'], 'template' => '{view} {delete}', 'buttons' => ['view' => function ($url, $model) {
    return '<a class="btn btn-primary btn-xs" href="/person/' . $model->id . '">View User</a>';
}, 'delete' => function ($url, $user_model, $key) use($model, $list_type_id) {
    return Html::a('<span class="glyphicon glyphicon-remove"></span>', '/project/listremove/' . $model->id . '/' . $list_type_id . '/' . $user_model->id, []);
}]]], 'tableOptions' => ['class' => 'table table-striped table-condensed valign']]);
?>


            <!-- Send Message Modal -->
开发者ID:jcshep,项目名称:FrontRunner,代码行数:28,代码来源:list.php


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