function processPostValues()
{
foreach ($this->aPages as $iPage) {
//cycle pages
if ($this->iPage !== 'done' and $iPage >= $this->iPage) {
$this->iPage = $iPage;
// we are on the current page. dont process these values, dont go further, just show form.
break;
}
// process post values by Profile Fields class
$this->oPF->processPostValues($this->bCouple, $this->aValues, $this->aErrors, $iPage);
if (!empty($this->aErrors[0]) or $this->bCouple and !empty($this->aErrors[1])) {
//we found errors on previous page
// do not process further values, just go to erroneous page.
$this->iPage = $iPage;
break;
}
}
}