當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。