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


PHP Str::upper方法代码示例

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


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

示例1: sidebar

 /**
  * sidebar function
  * Create sidebar
  * @return string
  * @author joharijumali
  **/
 public static function sidebar()
 {
     // $Menu = Header::navigationdata();
     $flow = URI::segment(3) == 'step' ? true : false;
     $navValue = array(array(Navigation::HEADER, Str::upper(Lang::line('admin.monitor')->get())), array(Lang::line('admin.dashboard')->get(), url('admin/home/dashboard'), false, false, null, 'tasks'), array(Navigation::HEADER, Str::upper(Lang::line('admin.sysmgmt')->get())), array(Lang::line('admin.configmanagement')->get(), url('admin/system/sysConfig'), false, false, null, 'chevron-right'), array(Lang::line('admin.datamanagement')->get(), url('admin/data/board'), false, false, null, 'chevron-right'), array(Lang::line('admin.pagemanagement')->get(), url('admin/modul/page'), false, false, null, 'chevron-right'), array(Lang::line('admin.flowmanagement')->get(), url('admin/modul/flow'), $flow, false, null, 'chevron-right'), array(Lang::line('admin.navsetup')->get(), url('admin/system/navigate'), false, false, null, 'chevron-right'), array(Lang::line('admin.log')->get(), url('admin/system/logger'), false, false, null, 'chevron-right'), array(Navigation::HEADER, Str::upper(Lang::line('admin.sysuser')->get())), array(Lang::line('admin.navuserlist')->get(), url('admin/user/list'), false, false, null, 'chevron-right'), array(Lang::line('admin.navuserrole')->get(), url('admin/user/role'), false, false, null, 'chevron-right'), array(Navigation::HEADER, Lang::line('global.logout')->get()), array(Lang::line('global.logout')->get(), url('admin/login/logout'), false, false, null, 'off'));
     return Navigation::lists(Navigation::links($navValue));
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:13,代码来源:navigator.php

示例2: listData

 public static function listData()
 {
     $allGroup = Group::paginate(Config::get('system.pagination'));
     $datagrid = new Datagrid();
     $datagrid->setFields(array('group_name' => Str::upper(Lang::line('admin.datagroup')->get())));
     $datagrid->setAction(Lang::line('global.manage')->get(), 'datacontent', false);
     $datagrid->setAction(Lang::line('global.edit')->get(), 'editGroup', true, array('dmid'));
     $datagrid->setAction(Lang::line('global.delete')->get(), 'deleteGroup', true, array('dmid', 'group_name'));
     $datagrid->setTable('dataGroup', 'table table-bordered table-hover table-striped table-condensed');
     $datagrid->build($allGroup, 'dmid');
     return $datagrid->render();
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:12,代码来源:Group.php

示例3: listRole

 public static function listRole()
 {
     $rolelist = Role::paginate(Config::get('system.pagination'));
     $datagrid = new Datagrid();
     $datagrid->setFields(array('role' => Str::upper(Lang::line('admin.rolename')->get()), 'roledesc' => Str::upper(Lang::line('admin.roledesc')->get())));
     $datagrid->setAction(Lang::line('global.edit')->get(), 'editRoleModal', true, array('roleid'));
     //false,array('id'=>'roleid','data-toggle'=>'modal'));
     $datagrid->setAction(Lang::line('global.delete')->get(), 'deleteRole', true, array('roleid'));
     $datagrid->setContainer('list01', 'span12');
     $datagrid->setTable('users', 'table table-bordered table-hover table-striped table-condensed');
     $datagrid->build($rolelist, 'roleid');
     return $datagrid->render();
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:13,代码来源:Role.php

示例4: userSearchList

 public static function userSearchList($input)
 {
     $operator = stripos($input['searchval'], '*') ? 'LIKE' : '=';
     $val = str_replace("*", "", $input['searchval']);
     $refval = stripos($input['searchval'], '*') ? '%' . $val . '%' : $val;
     $allUser = User::left_join('users_profiles', 'users.userid', '=', 'users_profiles.userid')->where('icno', $operator, $refval)->or_where('fullname', $operator, $refval)->paginate(Config::get('system.pagination'));
     $datagrid = new Datagrid();
     $datagrid->setFields(array('userprofile/fullname' => Str::upper(Str::title(Lang::line('admin.fullname')->get()))));
     $datagrid->setFields(array('userprofile/emel' => Str::upper(Str::title(Lang::line('admin.activeemel')->get()))));
     $datagrid->setFields(array('userprofile/icno' => Str::upper(Str::title(Lang::line('admin.idno')->get()))));
     $datagrid->setFields(array('status' => Str::upper('Status')));
     $datagrid->setAction(Lang::line('global.edit')->get(), 'viewUser', true, array('userid'));
     $datagrid->setAction(Lang::line('global.delete')->get(), 'deleteAccount', true, array('userid'));
     $datagrid->setAction(Lang::line('global.reset')->get(), 'resetAccount', true, array('userid'));
     $datagrid->setTable('users', 'table table-bordered table-hover table-striped table-condensed');
     $datagrid->build($allUser, 'userid');
     return $datagrid->render();
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:18,代码来源:User.php

示例5: genListData

 /**
  * Generate Data datagrid table
  *
  * @return void
  * @author 
  **/
 public static function genListData()
 {
     $allContent = Content::paginate(Config::get('system.pagination'));
     $datagrid = new Datagrid();
     $tableCol = DB::query('show columns from ' . Content::$table);
     foreach ($tableCol as $value) {
         if ($value->field != 'created_at' && $value->field != 'updated_at' && $value->field != Content::$key) {
             if (stristr($value->field, 'name')) {
                 $title = Str::upper(Lang::line('global.data')->get());
             } elseif (stristr($value->field, 'desc')) {
                 $title = Str::upper(Lang::line('global.desc')->get());
             } else {
                 $title = $value->field;
             }
             $datagrid->setFields(array($value->field => $title));
         }
     }
     $datagrid->setAction(Lang::line('global.edit')->get(), 'editData', true, array(Content::$key));
     $datagrid->setAction(Lang::line('global.delete')->get(), 'deleteData', true, array(Content::$key));
     $datagrid->setTable('contentGroup', 'table table-bordered table-hover table-striped table-condensed');
     $datagrid->build($allContent, Content::$key);
     return $datagrid->render();
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:29,代码来源:Content.php

示例6: getParameter

 protected function getParameter($key)
 {
     if (isset($_SERVER['CLI'][Str::upper($key)])) {
         return $_SERVER['CLI'][Str::upper($key)] == '' ? true : $_SERVER['CLI'][Str::upper($key)];
     } else {
         return false;
     }
 }
开发者ID:laravelbook,项目名称:framework3,代码行数:8,代码来源:seeder.php

示例7: format

 protected static function format($type, $message)
 {
     return date('Y-m-d H:i:s') . ' ' . Str::upper($type) . " - {$message}" . PHP_EOL;
 }
开发者ID:laravelbook,项目名称:framework3,代码行数:4,代码来源:laravel_lite.php

示例8: navTree

 public static function navTree()
 {
     $data = Header::navigationdata();
     $view = '';
     foreach ($data as $key => $content) {
         $view .= '<li ><ul class="nav nav-list">';
         $view .= '<li class="nav-header" style="height:30px"><i class="icon-hdd"></i>&nbsp;' . Str::upper($content['header']);
         $view .= '<div class="form-inline pull-right" >';
         $view .= '<a href="#" onclick="deleteModule(' . $content['moduleid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
         //<em><small>Remove Module</small></em>
         $view .= '</div>';
         $view .= Form::hidden('module[]', $content['moduleid']);
         $view .= '</li>';
         if (!empty($content['parent']) || isset($content['parent'])) {
             $view .= '<li ><ul id="sortparent" class="nav nav-list connectedparent" style="padding-right:0px">';
             foreach ($content['parent'] as $parentkey => $parentcontent) {
                 $view .= '<li style="height:30px" ><i class="icon-arrow-right"></i>&nbsp;' . Str::title($parentcontent['alias']);
                 $view .= '<div class="form-inline pull-right">';
                 $view .= '<a href="#" onclick="addchildpages(' . $parentcontent['pageid'] . ')" data-toggle="modal" style="margin-bottom:10px;margin-left:5px;"><i class="icon-plus"></i></a>';
                 //<em><small>Add Sub Page</small></em>
                 $view .= '<a href="#" onclick="deletePage(' . $parentcontent['pageid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
                 //<em><small>Remove Page</small></em>
                 $view .= '</div>';
                 $view .= Form::hidden('parent[]', $parentcontent['pageid']);
                 $view .= '</li>';
                 if (!empty($parentcontent['child'])) {
                     $view .= '<li ><ul id="sortchild" class="nav nav-list connectedchild" style="padding-right:0px">';
                     foreach ($parentcontent['child'] as $childkey => $childvalue) {
                         $view .= '<li style="height:30px" ><i class="icon-arrow-right"></i>&nbsp;' . Str::title($childvalue['alias']);
                         $view .= '<div class="form-inline pull-right">';
                         $view .= '<a href="#" onclick="deletePage(' . $childvalue['childid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
                         //<em><small>Remove Sub Page</small></em>
                         $view .= '</div>';
                         $view .= '</li>';
                     }
                     $view .= '</ul></li>';
                 }
             }
             $view .= '</ul></li>';
         }
         $view .= '</ul></li>';
     }
     return $view;
 }
开发者ID:farhan4648gul,项目名称:developer-side,代码行数:44,代码来源:menu.php


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