18 lines
611 B
PHP
18 lines
611 B
PHP
<?php
|
|
namespace App\Helpers;
|
|
|
|
use App\Http\Requests\LambdaRequest;
|
|
|
|
class Formhelper
|
|
{
|
|
public static function getMultiformData($partition, $form_id, $user_id, $startdate = false, $enddate = false) {
|
|
if($startdate) {
|
|
$history = LambdaRequest::postrequest('form', 'formentity/getformhistory', ['form_id' => $form_id, 'user_id' => $user_id, 'partition' => $partition, 'date_range' => $startdate.'_'.$enddate ]);
|
|
} else {
|
|
$history = LambdaRequest::postrequest('form', 'formentity/getformhistory', ['form_id' => $form_id, 'user_id' => $user_id, 'partition' => $partition ]);
|
|
}
|
|
return $history;
|
|
}
|
|
}
|
|
|