-// Checks if given task id is valid
-function isTaskIdValid ($taskId) {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__][$taskId])) {
- // Determine it
- $GLOBALS[__FUNCTION__][$taskId] = ((!is_null($taskId)) && ($taskId > 0));
- } // END - if
-
- // Return "cached" value
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'taskId[' . gettype($taskId) . ']=' . intval($taskId) . ',isValid=' . intval($GLOBALS[__FUNCTION__][$taskId]));
- return $GLOBALS[__FUNCTION__][$taskId];
-}
-