This commit is contained in:
Roly Rudy Gutierrez Pinto
2016-06-13 13:14:37 -04:00
parent 25b77fce04
commit 39694f757d
6 changed files with 155 additions and 2 deletions

View File

@@ -3084,6 +3084,26 @@ function PMFGeti18nText($id, $category, $lang = "en")
return $text;
}
/**
* @method
* The requested text in the specified language | If not found returns false
* @name PMFUnCancelCase
* @label PMF Un Cancel Case
* @param string | $caseUID | ID Case | Is the unique UID of the case
* @param string | $userUID | ID User | Is the unique ID of the user who will uncancel the case
* @return int | $value | Return | Returns 1 if the case was successfully uncancelled, otherwise returns 0 if an error ocurred
*/
function PMFUnCancelCase($caseUID, $userUID)
{
try {
$cases = new Cases();
$cases->unCancelCase($caseUID, $userUID);
return 1;
} catch (Exception $oException) {
return 0;
}
}
/**
* @method
* Function to return an array of objects containing the properties of the fields