本文整理匯總了PHP中Reports::update方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reports::update方法的具體用法?PHP Reports::update怎麽用?PHP Reports::update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Reports
的用法示例。
在下文中一共展示了Reports::update方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: validateRoute
break;
case validateRoute('GET', 'reports'):
$mailbox = new Mailbox($db, $user);
$torrent = new Torrent($db, $user);
$subtitles = new Subtitles($db, $user);
$requests = new Requests($db, $user);
$forum = new Forum($db, $user);
$log = new Logs($db);
$comments = new Comments($db, $user);
$reports = new Reports($db, $user, $torrent, $subtitles, $requests, $forum, $mailbox, $comments, $log);
list($result, $totalCount) = $reports->query(array("limit" => $_GET["limit"], "index" => $_GET["index"]));
httpResponse($result, $totalCount);
break;
case validateRoute('PATCH', 'reports/\\d+'):
$reports = new Reports($db, $user);
httpResponse($reports->update((int) $params[1], $postdata));
break;
case validateRoute('DELETE', 'reports/\\d+'):
$reports = new Reports($db, $user);
httpResponse($reports->delete((int) $params[1]));
break;
case validateRoute('GET', 'adminlogs'):
$adminlogs = new AdminLogs($db, $user);
list($result, $totalCount) = $adminlogs->query(array("limit" => $_GET["limit"], "index" => $_GET["index"], "search" => $_GET["searchText"]));
httpResponse($result, $totalCount);
break;
case validateRoute('GET', 'recovery-logs'):
$recoveryLog = new RecoveryLog($db, $user);
list($result, $totalCount) = $recoveryLog->query(array("limit" => $_GET["limit"], "index" => $_GET["index"]));
httpResponse($result, $totalCount);
break;