public static function newFromText($text, $namespace) { $articlePage = Title::newFromText($text, $namespace); if (!$articlePage) { /** * doesn't exist, lame */ return false; } $comments = new ArticleCommentList(); $comments->setText($articlePage->getDBkey()); $comments->setTitle($articlePage); return $comments; }