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


PHP Walker::get方法代码示例

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


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

示例1: report

 public function report()
 {
     $braintree_environment = Config::get('app.braintree_environment');
     $braintree_merchant_id = Config::get('app.braintree_merchant_id');
     $braintree_public_key = Config::get('app.braintree_public_key');
     $braintree_private_key = Config::get('app.braintree_private_key');
     $braintree_cse = Config::get('app.braintree_cse');
     $twillo_account_sid = Config::get('app.twillo_account_sid');
     $twillo_auth_token = Config::get('app.twillo_auth_token');
     $twillo_number = Config::get('app.twillo_number');
     $stripe_publishable_key = Config::get('app.stripe_publishable_key');
     $default_payment = Config::get('app.default_payment');
     $stripe_secret_key = Config::get('app.stripe_secret_key');
     $mail_driver = Config::get('mail.mail_driver');
     $email_name = Config::get('mail.from.name');
     $email_address = Config::get('mail.from.address');
     $mandrill_secret = Config::get('services.mandrill_secret');
     /* DEVICE PUSH NOTIFICATION DETAILS */
     $customer_certy_url = Config::get('app.customer_certy_url');
     $customer_certy_pass = Config::get('app.customer_certy_pass');
     $customer_certy_type = Config::get('app.customer_certy_type');
     $provider_certy_url = Config::get('app.provider_certy_url');
     $provider_certy_pass = Config::get('app.provider_certy_pass');
     $provider_certy_type = Config::get('app.provider_certy_type');
     $gcm_browser_key = Config::get('app.gcm_browser_key');
     /* DEVICE PUSH NOTIFICATION DETAILS END */
     $install = array('braintree_environment' => $braintree_environment, 'braintree_merchant_id' => $braintree_merchant_id, 'braintree_public_key' => $braintree_public_key, 'braintree_private_key' => $braintree_private_key, 'braintree_cse' => $braintree_cse, 'twillo_account_sid' => $twillo_account_sid, 'twillo_auth_token' => $twillo_auth_token, 'twillo_number' => $twillo_number, 'stripe_publishable_key' => $stripe_publishable_key, 'stripe_secret_key' => $stripe_secret_key, 'mail_driver' => $mail_driver, 'email_address' => $email_address, 'email_name' => $email_name, 'mandrill_secret' => $mandrill_secret, 'default_payment' => $default_payment, 'customer_certy_url' => $customer_certy_url, 'customer_certy_pass' => $customer_certy_pass, 'customer_certy_type' => $customer_certy_type, 'provider_certy_url' => $provider_certy_url, 'provider_certy_pass' => $provider_certy_pass, 'provider_certy_type' => $provider_certy_type, 'gcm_browser_key' => $gcm_browser_key);
     $start_date = Input::get('start_date');
     $end_date = Input::get('end_date');
     $submit = Input::get('submit');
     $walker_id = Input::get('walker_id');
     $owner_id = Input::get('owner_id');
     $status = Input::get('status');
     $start_time = date("Y-m-d H:i:s", strtotime($start_date));
     $end_time = date("Y-m-d H:i:s", strtotime($end_date));
     $start_date = date("Y-m-d", strtotime($start_date));
     $end_date = date("Y-m-d", strtotime($end_date));
     $query = DB::table('request')->leftJoin('owner', 'request.owner_id', '=', 'owner.id')->leftJoin('walker', 'request.confirmed_walker', '=', 'walker.id')->leftJoin('walker_type', 'walker.type', '=', 'walker_type.id');
     if (Input::get('start_date') && Input::get('end_date')) {
         $query = $query->where('request_start_time', '>=', $start_time)->where('request_start_time', '<=', $end_time);
     }
     if (Input::get('walker_id') && Input::get('walker_id') != 0) {
         $query = $query->where('request.confirmed_walker', '=', $walker_id);
     }
     if (Input::get('owner_id') && Input::get('owner_id') != 0) {
         $query = $query->where('request.owner_id', '=', $owner_id);
     }
     if (Input::get('status') && Input::get('status') != 0) {
         if ($status == 1) {
             $query = $query->where('request.is_completed', '=', 1);
         } else {
             $query = $query->where('request.is_cancelled', '=', 1);
         }
     } else {
         $query = $query->where(function ($que) {
             $que->where('request.is_completed', '=', 1)->orWhere('request.is_cancelled', '=', 1);
         });
     }
     $walks = $query->select('request.request_start_time', 'walker_type.name as type', 'request.ledger_payment', 'request.card_payment', 'owner.first_name as owner_first_name', 'owner.last_name as owner_last_name', 'walker.first_name as walker_first_name', 'walker.last_name as walker_last_name', 'owner.id as owner_id', 'walker.id as walker_id', 'request.id as id', 'request.created_at as date', 'request.is_started', 'request.is_walker_arrived', 'request.payment_mode', 'request.is_completed', 'request.is_paid', 'request.is_walker_started', 'request.confirmed_walker', 'request.status', 'request.time', 'request.distance', 'request.total', 'request.is_cancelled', 'request.promo_payment');
     $walks = $walks->orderBy('id', 'DESC')->paginate(10);
     $query = DB::table('request')->leftJoin('owner', 'request.owner_id', '=', 'owner.id')->leftJoin('walker', 'request.confirmed_walker', '=', 'walker.id')->leftJoin('walker_type', 'walker.type', '=', 'walker_type.id');
     if (Input::get('start_date') && Input::get('end_date')) {
         $query = $query->where('request_start_time', '>=', $start_time)->where('request_start_time', '<=', $end_time);
     }
     if (Input::get('walker_id') && Input::get('walker_id') != 0) {
         $query = $query->where('request.confirmed_walker', '=', $walker_id);
     }
     if (Input::get('owner_id') && Input::get('owner_id') != 0) {
         $query = $query->where('request.owner_id', '=', $owner_id);
     }
     $completed_rides = $query->where('request.is_completed', 1)->count();
     $query = DB::table('request')->leftJoin('owner', 'request.owner_id', '=', 'owner.id')->leftJoin('walker', 'request.confirmed_walker', '=', 'walker.id')->leftJoin('walker_type', 'walker.type', '=', 'walker_type.id');
     if (Input::get('start_date') && Input::get('end_date')) {
         $query = $query->where('request_start_time', '>=', $start_time)->where('request_start_time', '<=', $end_time);
     }
     if (Input::get('walker_id') && Input::get('walker_id') != 0) {
         $query = $query->where('request.confirmed_walker', '=', $walker_id);
     }
     if (Input::get('owner_id') && Input::get('owner_id') != 0) {
         $query = $query->where('request.owner_id', '=', $owner_id);
     }
     $cancelled_rides = $query->where('request.is_cancelled', 1)->count();
     $query = DB::table('request')->leftJoin('owner', 'request.owner_id', '=', 'owner.id')->leftJoin('walker', 'request.confirmed_walker', '=', 'walker.id')->leftJoin('walker_type', 'walker.type', '=', 'walker_type.id');
     if (Input::get('start_date') && Input::get('end_date')) {
         $query = $query->where('request_start_time', '>=', $start_time)->where('request_start_time', '<=', $end_time);
     }
     if (Input::get('walker_id') && Input::get('walker_id') != 0) {
         $query = $query->where('request.confirmed_walker', '=', $walker_id);
     }
     if (Input::get('owner_id') && Input::get('owner_id') != 0) {
         $query = $query->where('request.owner_id', '=', $owner_id);
     }
     $card_payment = $query->where('request.is_completed', 1)->sum('request.card_payment');
     $query = DB::table('request')->leftJoin('owner', 'request.owner_id', '=', 'owner.id')->leftJoin('walker', 'request.confirmed_walker', '=', 'walker.id')->leftJoin('walker_type', 'walker.type', '=', 'walker_type.id');
     if (Input::get('start_date') && Input::get('end_date')) {
         $query = $query->where('request_start_time', '>=', $start_time)->where('request_start_time', '<=', $end_time);
     }
     if (Input::get('walker_id') && Input::get('walker_id') != 0) {
         $query = $query->where('request.confirmed_walker', '=', $walker_id);
     }
//.........这里部分代码省略.........
开发者ID:felipemarques8,项目名称:goentregas,代码行数:101,代码来源:AdminController.php


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