Beispiel #1
0
 function getDraft($namespace)
 {
     global $thisstaff;
     if (!$thisstaff) {
         Http::response(403, "Login required for draft creation");
     } elseif (!($id = Draft::findByNamespaceAndStaff($namespace, $thisstaff->getId()))) {
         Http::response(205, "Draft not found. Create one first");
     }
     return self::_getDraft($id);
 }