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


PHP Submission::rideShareLogGetOptions方法代码示例

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


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

示例1: edit

 /**
  * Show the form for editing the specified submission.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     try {
         $submission = Submission::rideShareLogGet($id);
         $s_options = Submission::rideShareLogGetOptions();
     } catch (\Exception $e) {
         return $this->handleError($e);
     }
     return View::make('submissions.edit', ['submission' => $submission, 's_options' => $s_options]);
 }
开发者ID:julianfresco,项目名称:rideShareLog,代码行数:16,代码来源:SubmissionsController.php

示例2: getEditSubmissionForm

 /**
  * Return the requested edit submission form as HTML
  *  
  * @return Response
  */
 public function getEditSubmissionForm($submission_id)
 {
     try {
         $data['submission'] = Submission::rideShareLogAdminGet($submission_id);
     } catch (\Exception $e) {
         return $this->handleRideShareLogError($e, 'Failed to retrieve Submission ' . $submission_id . '.');
     }
     try {
         $data['afs'] = AdditionalFieldSubmission::rideShareLogAdminGetBySubmissionId($submission_id);
     } catch (\Exception $e) {
         /*Do nothing because it may not exist*/
         /*return $this->handleRideShareLogError($e, 'Failed to retrieve Additional Field Submission for Submission '.$submission_id.'.');*/
     }
     try {
         $data['user'] = User::rideShareLogAdminGet($data['submission']->user_id);
     } catch (\Exception $e) {
         return $this->handleRideShareLogError($e, 'Failed to retrieve User for Submission ' . $submission_id . '.');
     }
     return View::make('admin.partials.update_submission', ['data' => $data, 's_options' => Submission::rideShareLogGetOptions()]);
 }
开发者ID:julianfresco,项目名称:rideShareLog,代码行数:25,代码来源:AdminController.php


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