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


PHP Property::lists方法代码示例

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


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

示例1: getCreate

 /**
  * Show the form for creating a new room
  *
  * @return Response
  */
 public function getCreate()
 {
     $rooms = Room::where('property_id', Property::getLoggedId())->where('type', '<>', 'plan')->lists('name', 'id');
     $properties = Property::lists('name', 'id');
     $formulaTypes = Room::$formulaTypes;
     return View::make('rooms.create', compact('properties', 'rooms', 'formulaTypes'));
 }
开发者ID:jonagoldman,项目名称:channelmanager,代码行数:12,代码来源:RoomsController.php

示例2: getCreate

 /**
  * Show the form for creating a new propertieschannel
  *
  * @return Response
  */
 public function getCreate()
 {
     $properties = Property::lists('name', 'id');
     $channels = Channel::lists('name', 'id');
     return View::make('properties_channels.create', compact('channels', 'properties'));
 }
开发者ID:jonagoldman,项目名称:channelmanager,代码行数:11,代码来源:PropertiesChannelsController.php

示例3: array

 Route::get('show/receipts', array('as' => 'show/receipts', 'uses' => 'HousController@showReceipts'));
 //receipts
 Route::get('show/receipts/index', array('as' => 'show/receipts/index', 'uses' => 'HousController@showReceipts'));
 //View specific receipt
 Route::get('show/receipts/{id}', array('as' => 'show/receipts', 'uses' => 'BillController@showReceipt'));
 //billigs
 Route::get('api/statistics', array('as' => 'api/statistics', 'uses' => 'HousController@statistics'));
 Route::get('payments-bytenant', array('as' => 'payments-bytenant', 'uses' => 'BillController@selectToBill'));
 Route::get('redirect/back', array('as' => 'redirect/back'), function () {
     return Redirect::back();
 });
 Route::get('payments-totenant', array('as' => 'payments-totenant', 'uses' => 'BillController@selectToPay'));
 Route::get('api/preports', array('as' => 'api/preports', 'uses' => 'PaymentController@Reports'));
 Route::post('api/spreport', array('as' => 'api/spreport', 'uses' => 'PaymentController@getFilteredReport'));
 Route::get('api/dropdown', array('as' => 'api/dropdown', function () {
     $properties = Property::lists('name');
     return $properties;
 }));
 Route::get('ninvoice', array('as' => 'ninvoice', function () {
     $invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('balance', '>', 0)->with('invoicedetail')->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('nreceipts', array('as' => 'nreceipts', function () {
     $invoices = Receipt::where('agent_id', '=', Sentry::getUser()->id)->where('amountpaid', '>', 0)->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('nrefunds', array('as' => 'nrefunds', function () {
     $invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('type', '=', 'refund')->with('invoicedetail')->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('api/property/{id}', array('as' => 'api/property', 'uses' => 'HousController@getHouses'));
开发者ID:jeremiteki,项目名称:mteja-laravel,代码行数:31,代码来源:routes.php


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