if ($userInstance->ifUsernameExists() === false) {
// Throw an exception here
throw new UsernameMissingException(array($userInstance, $userName), self::EXCEPTION_USERNAME_NOT_FOUND);
- } // END - if
+ }
// Return the instance
return $userInstance;
// If there is no action use the default on
if (is_null($lastAction)) {
$lastAction = $this->getConfigInstance()->getConfigEntry('login_default_action');
- } // END - if
+ }
// Get a critieria instance
$searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
// And store it in registry
Registry::getRegistry()->addInstance('points', $pointsInstance);
- } // END - if
+ }
// Get the amount
$amount = $requestInstance->getRequestElement('amount');
if (!$this->getResultInstance() instanceof SearchableResult) {
// Abort here
return;
- } // END - if
+ }
// Do we have data to update?
if ($this->getResultInstance()->ifDataNeedsFlush()) {
// Yes, then send the whole result to the database layer
$wrapperInstance->doUpdateByResult($this->getResultInstance());
- } // END - if
+ }
}
}