} } } } } break; case 'status': // show file status //TODO: ability to force recalculation of checksums. verify that the file is on disk $fileId = $this->owner; $data = FileInfo::get($fileId); if (!$data) { echo '<h1>File dont exist</h1>'; return; } $list = TaskQueue::getQueuedTasks($fileId); if (!empty($list)) { echo '<h1>' . count($list) . ' queued actions</h1>'; foreach ($list as $row) { echo '<h3>Was enqueued ' . ago($row['timeCreated']) . ' by ' . Users::link($row['creatorId']); echo ' type=' . $row['orderType'] . ', params=' . $row['orderParams']; echo '</h3>'; } } else { echo '<h1>No queued action</h1>'; } echo 'Process log:<br/>'; $list = TaskQueue::getLog($fileId); echo '<table border="1">'; echo '<tr>'; echo '<th>Added</th>';