channel = $data['channel']; } public function processRequest() { $request = $this->getRequest(); $user = $request->getUser(); $offset = $request->getInt('offset', 0); $page_size = 1000; $pager = new AphrontPagerView(); $request_uri = $request->getRequestURI(); $pager->setURI($request_uri, 'offset'); $pager->setPageSize($page_size); $pager->setOffset($offset); $query = new PhabricatorChatLogQuery(); $query->withChannels(array($this->channel)); $logs = $query->executeWithPager($pager); require_celerity_resource('phabricator-chatlog-css'); $last_author = null; $last_epoch = null; $row_idx = 0; $row_colors = array( 'normal', 'alternate', ); $out = array(); $out[] = '
'. phabricator_datetime($log->getEpoch(), $user).' | '; $author = $log->getAuthor(); $author = phutil_utf8_shorten($author, 18); $out[] = ''. phutil_escape_html($author).' | '; } else { $out[] = '
'; } $out[] = ' '; $out[] = ' |