/** * @private */ function _setParameters($params) { // fetch the article id $this->_article = $params["article"]; // load the status $this->_commentStatus = $params["showStatus"]; if (!ArticleCommentStatus::isValidStatus($this->_commentStatus)) { $this->_commentStatus = COMMENT_STATUS_ALL; } }