public function validateDonePage(PHUIFormPageView $page) { $c_activate = $page->getControl('activate'); $v_activate = $c_activate->getValue(); if ($v_activate != 'start' && $v_activate != 'wait') { $c_activate->setError(pht('Required')); $page->addPageError(pht('Make a choice about repository activation.')); } return $c_activate->isValid(); }
protected function isLastPage(PHUIFormPageView $page) { return $this->getPageIndex($page->getKey()) === count($this->pages) - 1; }