/** * Get the comments for this Thread * @return array */ public function getComments() { $parent = $this->getProperty('parent', 0); $sortBy = $this->getProperty('sortBy', 'rank'); $sortByAlias = $this->getProperty('sortByAlias', 'quipComment'); $sortDir = $this->getProperty('sortDir', 'ASC'); $this->modx->loadClass('quipComment'); $result = quipComment::getThread($this->modx, $this->thread, $parent, $this->ids, $sortBy, $sortByAlias, $sortDir); $this->comments = $result['results']; $this->setPlaceholder('total', $result['total']); return $this->comments; }