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


PHP Common::pluralize方法代码示例

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


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

示例1: actionIndex

 public function actionIndex()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $searchModel = Dept::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'name');
     $this->render('default/index', array('model' => $searchModel));
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:7,代码来源:DeptController.php

示例2: actionSchedule

 public function actionSchedule()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $client = Yii::app()->user->client != 0 ? "sp_client = " . (int) Yii::app()->user->client : "";
     $searchModel = Services::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'service_name', $client);
     $this->render('index', array('model' => $searchModel));
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:8,代码来源:DefaultController.php

示例3: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $searchModel = UsersView::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'username', Users::model()->getFetchCondition());
     $this->render('index', array('model' => $searchModel));
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:10,代码来源:DefaultController.php

示例4: array

<?php

$this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), $this->pageTitle);
$this->renderPartial('_form', array('model' => $model));
开发者ID:wanyos2005,项目名称:hsbf,代码行数:4,代码来源:create.php

示例5: array

<?php

if ($this->showLink(UserResources::RES_USER_ADMIN)) {
    $this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), $user_model->username);
} else {
    $this->breadcrumbs = array($user_model->username);
}
$can_update = $user_model->canBeModified($this, Acl::ACTION_UPDATE);
$can_view_activity = $this->showLink(UserResources::RES_USER_ACTIVITY);
$this->renderPartial('_profile_tabs', array('model' => $user_model));
?>
<div id="user-profile-1" class="user-profile row">
        <div class="col-xs-12 col-sm-3 center">
                <div>
                        <span class="profile-picture">
                                <?php 
echo CHtml::image(MyYiiUtils::getThumbSrc($person_model->getProfileImagePath(), array('resize' => array('width' => 200, 'height' => 200))), CHtml::encode($user_model->username), array('id' => 'avator', 'class' => 'editable img-responsive'));
?>
                        </span>
                        <div class="space-4"></div>
                        <div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
                                <div class="inline position-relative">
                                        <a href="javascript:void(0);" class="user-title-label dropdown-toggle" data-toggle="dropdown">
                                                <i class="icon-circle <?php 
echo $user_model->status === Users::STATUS_ACTIVE ? 'light-green' : ($user_model->status === Users::STATUS_PENDING ? 'yellow' : 'red');
?>
 middle"></i>
                                                &nbsp;
                                                <span class="white"><?php 
echo CHtml::encode($person_model->name);
?>
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:31,代码来源:view.php

示例6: array

<?php

$this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), CHtml::encode($model->name) => array('view', 'id' => $model->id), $this->pageTitle);
$this->renderPartial('default/_form', array('model' => $model));
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:4,代码来源:update.php

示例7: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex($dept_id = NULL)
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $dept_model = NULL;
     if (!empty($dept_id)) {
         $dept_model = Dept::model()->loadModel($dept_id);
         $this->pageDescription = $this->pageTitle;
         $this->pageTitle = $dept_model->name;
         $this->activeTab = 7;
     }
     if (!empty(Controller::$dept_id)) {
         $dept_id = Controller::$dept_id;
     }
     $searchModel = UsersView::model()->searchModel(array('dept_id' => $dept_id), $this->settings[Constants::KEY_PAGINATION], 'username', Users::model()->getFetchCondition());
     $this->render('index', array('model' => $searchModel, 'dept_model' => $dept_model));
 }
开发者ID:wanyos2005,项目名称:hsbf,代码行数:20,代码来源:DefaultController.php


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