本文整理汇总了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]);
}
示例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']]);
}