Merge remote-tracking branch 'upstream/release/3.2.1' into bugfix/HOR-3017
This commit is contained in:
@@ -996,4 +996,24 @@ class WebEntryEvent
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function verify if a user $userUid was configure in a Web Entry and return the total of records
|
||||
*
|
||||
* @param string $userUid uid of a user
|
||||
*
|
||||
* return integer $total
|
||||
*/
|
||||
public function getWebEntryRelatedToUser($userUid)
|
||||
{
|
||||
try {
|
||||
//Get data
|
||||
$criteria = $this->getWebEntryEventCriteria();
|
||||
$criteria->add(\WebEntryEventPeer::USR_UID, $userUid, \Criteria::EQUAL);
|
||||
$total = \WebEntryEventPeer::doCount($criteria);
|
||||
return $total;
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,10 +78,10 @@ class OutputDocuments extends Api
|
||||
*
|
||||
* @param string $prjUid {@min 32} {@max 32}
|
||||
* @param string $outputDocumentUid {@min 32} {@max 32}
|
||||
* @param OutputDocumentStructure $request_data
|
||||
* @param array $request_data
|
||||
*
|
||||
*/
|
||||
public function doPutProjectOutputDocument($prjUid, $outputDocumentUid, OutputDocumentStructure $request_data)
|
||||
public function doPutProjectOutputDocument($prjUid, $outputDocumentUid, $request_data)
|
||||
{
|
||||
try {
|
||||
$request_data = (array)($request_data);
|
||||
|
||||
Reference in New Issue
Block a user