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