Exemple #1
0
 /**
  * @param  string $authtoken   Authorization token.
  * @param  int    $documentid  Document ID.
  * @return TlonSoapResponse    Success or failure.
  */
 public function close($authtoken, $documentid)
 {
     if ($u = TlonUser::getByAuthToken($authtoken)) {
         return $this->returnByBool(TlonUserDocument::delete($u['username'], $documentid), $authtoken);
     } else {
         return $this->returnFailure($authtoken);
     }
 }