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


PHP State::orderBy方法代码示例

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


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

示例1: GeneraReporte

 public function GeneraReporte()
 {
     ini_set('max_execution_time', 900000);
     $c = new Client("http://162.243.142.165:8080/jasperserver", "jasperadmin", "jasperadmin");
     $c->setRequestTimeout(900000);
     $controls = array('stateId' => $_POST['estados']);
     $reporte = $c->reportService()->runReport('/reports/Blank_A4', 'html', null, null, $controls);
     $estados = State::orderBy('name', 'ASC')->lists('name', 'id');
     $user_id = Auth::user()->id;
     $breadcrumbs = Neighbors::select('neighbors.name as name_ne', 'neighbors.last_name', 'urbanisms.name as name_ur ')->join('neighbors_properties', 'neighbors.id', '=', 'neighbors_properties.neighbors_id')->join('urbanisms', 'neighbors_properties.urbanism_id', '=', 'urbanisms.id')->where('neighbors.user_id', '=', $user_id)->first();
     $breadcrumbs_data = $breadcrumbs->name_ne . " " . $breadcrumbs->last_name . " [" . $breadcrumbs->name_ur . "]";
     return View::make("dashboard.reports.report", ['reporte' => $reporte, 'breadcrumbs_data' => $breadcrumbs_data]);
 }
开发者ID:prianticonsulting,项目名称:Habitaria,代码行数:13,代码来源:ReportCitiesController.php

示例2: get_wizard

 public function get_wizard()
 {
     $user_id = Auth::user()->id;
     $user = Auth::user()->email;
     $user_admin = Neighbors::where('user_id', '=', $user_id)->first();
     $code = Auth::user()->confirmation_code;
     $urbanism_types = UrbanismType::orderBy('id', 'ASC')->lists('type', 'id');
     $countries = Country::orderBy('id', 'ASC')->lists('name', 'id');
     $states = State::orderBy('id', 'ASC')->lists('name', 'id');
     $country_default = 'México';
     $selected_country = Country::where('name', '=', $country_default)->first();
     return View::make('dashboard.colonies.admin.create_colony', ['urbanism_types' => $urbanism_types, 'user' => $user, 'user_admin' => $user_admin, 'countries' => $countries, 'states' => $states, 'code' => $code, 'selected_country' => [$selected_country->id], 'select' => ['' => 'Seleccione tipo de desarrollo'], 'select_1' => ['' => 'Seleccione País'], 'select_2' => ['' => 'Seleccione Estado'], 'select_3' => ['' => 'Seleccione Ciudad']]);
 }
开发者ID:prianticonsulting,项目名称:Habitaria,代码行数:13,代码来源:ColonyController.php


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