code style for CaseScheduler.php and Event.php
This commit is contained in:
@@ -104,10 +104,23 @@ class Event extends Api
|
|||||||
* @url POST /:projectUid/event
|
* @url POST /:projectUid/event
|
||||||
* @status 201
|
* @status 201
|
||||||
*/
|
*/
|
||||||
public function doPostEvent($projectUid, $request_data, $evn_description, $evn_status, $evn_action,
|
public function doPostEvent(
|
||||||
$evn_related_to, $tas_uid, $evn_tas_uid_from, $evn_tas_estimated_duration,
|
$projectUid,
|
||||||
$evn_time_unit, $evn_when, $evn_when_occurs, $tri_uid, $evn_tas_uid_to = '', $evn_conditions = '')
|
$request_data,
|
||||||
{
|
$evn_description,
|
||||||
|
$evn_status,
|
||||||
|
$evn_action,
|
||||||
|
$evn_related_to,
|
||||||
|
$tas_uid,
|
||||||
|
$evn_tas_uid_from,
|
||||||
|
$evn_tas_estimated_duration,
|
||||||
|
$evn_time_unit,
|
||||||
|
$evn_when,
|
||||||
|
$evn_when_occurs,
|
||||||
|
$tri_uid,
|
||||||
|
$evn_tas_uid_to = '',
|
||||||
|
$evn_conditions = ''
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
$hiddenFields = array('pro_uid', 'evn_action_parameters',
|
$hiddenFields = array('pro_uid', 'evn_action_parameters',
|
||||||
'evn_posx', 'evn_posy', 'evn_type', 'tas_evn_uid', 'evn_max_attempts'
|
'evn_posx', 'evn_posy', 'evn_type', 'tas_evn_uid', 'evn_max_attempts'
|
||||||
@@ -151,13 +164,33 @@ class Event extends Api
|
|||||||
*
|
*
|
||||||
* @url PUT /:projectUid/event/:eventUid
|
* @url PUT /:projectUid/event/:eventUid
|
||||||
*/
|
*/
|
||||||
public function doPutEvent ($projectUid, $eventUid, $request_data, $evn_description, $evn_status, $evn_action,
|
public function doPutEvent (
|
||||||
$evn_related_to, $tas_uid, $evn_tas_uid_from, $evn_tas_estimated_duration,
|
$projectUid,
|
||||||
$evn_time_unit, $evn_when, $evn_when_occurs, $tri_uid, $evn_tas_uid_to = '', $evn_conditions = '')
|
$eventUid,
|
||||||
{
|
$request_data,
|
||||||
|
$evn_description,
|
||||||
|
$evn_status,
|
||||||
|
$evn_action,
|
||||||
|
$evn_related_to,
|
||||||
|
$tas_uid,
|
||||||
|
$evn_tas_uid_from,
|
||||||
|
$evn_tas_estimated_duration,
|
||||||
|
$evn_time_unit,
|
||||||
|
$evn_when,
|
||||||
|
$evn_when_occurs,
|
||||||
|
$tri_uid,
|
||||||
|
$evn_tas_uid_to = '',
|
||||||
|
$evn_conditions = ''
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
$hiddenFields = array('pro_uid', 'evn_action_parameters',
|
$hiddenFields = array(
|
||||||
'evn_posx', 'evn_posy', 'evn_type', 'tas_evn_uid', 'evn_max_attempts'
|
'pro_uid',
|
||||||
|
'evn_action_parameters',
|
||||||
|
'evn_posx',
|
||||||
|
'evn_posy',
|
||||||
|
'evn_type',
|
||||||
|
'tas_evn_uid',
|
||||||
|
'evn_max_attempts'
|
||||||
);
|
);
|
||||||
$request_data['evn_uid'] = $eventUid;
|
$request_data['evn_uid'] = $eventUid;
|
||||||
$event = new \BusinessModel\Event();
|
$event = new \BusinessModel\Event();
|
||||||
|
|||||||
Reference in New Issue
Block a user