本文整理汇总了PHP中Submission::rideShareLogGetAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Submission::rideShareLogGetAll方法的具体用法?PHP Submission::rideShareLogGetAll怎么用?PHP Submission::rideShareLogGetAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Submission
的用法示例。
在下文中一共展示了Submission::rideShareLogGetAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
/**
* Display a listing of submissions
*
* @return Response
*/
public function index()
{
try {
$submissions = Submission::rideShareLogGetAll();
// echo '<pre>';dd($submissions);
} catch (\Exception $e) {
return $this->handleError($e);
}
return $this->handleResponse($submissions);
}
示例2: getParticipantFormValues
private function getParticipantFormValues()
{
$formValues = array();
try {
$formValues['location'] = Location::rideShareLogGetUserLocation();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Location for form.');
}
try {
$formValues['methodTypes'] = MethodType::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Method Type for form.');
}
try {
$formValues['passengerTypes'] = PassengerType::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Passenger Type for form.');
}
try {
$formValues['lmpCombinations'] = LmpCombination::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve L.M.P. Combinations for form.');
}
try {
$formValues['additionalFields'] = AdditionalField::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Additional Field for form.');
}
try {
$formValues['additionalFieldDependencies'] = AdditionalFieldDependency::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Additional Field Dependency for form.');
}
try {
$formValues['submissions'] = Submission::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Submission for form.');
}
try {
$formValues['additionalFieldSubmissions'] = AdditionalFieldSubmission::rideShareLogGetAll();
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Additional Field Submission for form.');
}
try {
$formValues['user'] = User::rideShareLogGetField('display_name');
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve User for form.');
}
try {
$formValues['today'] = date('Y-m-d');
/* Today = 2015-03-16 */
} catch (\Exception $e) {
return $this->handleRideShareLogError($e, 'Unable to retrieve Date for form.');
}
return json_encode($formValues, JSON_NUMERIC_CHECK);
}