* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
+ * @todo Add functionality here
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Make sure only allowed values are comming through
// Get data
$data = $requestInstance->getRequestElement($element);
- // Skip empty fields
+ // Silently skip empty fields
if (empty($data)) continue;
// Do we have an alias?
* Checks wether the user can take points from the money bank
*
* @return $bankLends Wether the money bank is able to lend money
+ * @todo Need to check the bank if they can generally lend money to the user
*/
public function ifUserAllowedTakeCreditsFromMoneyBank () {
// Per default the money bank cannot pay
* credits from the bank.
*
* @return $hasMaxCredits Wether the user has maximum credits with the bank
+ * @todo Need to check the bank if they can lend more money
*/
public function ifUserHasMaximumCreditsWithMoneyBank () {
// For default he can still get money
} // END - Change requires confirmation
} // END - email change allowed
+// Add form group for user profile
$helper->addFormGroup('profile', "Hier kannst du deine Profildaten ändern.");
// Persoenliche Daten mit in der Anmeldung abfragen?
$helper->addInputTextFieldWithDefault('city');
} // END - Persona data
+// Add su group for zip code
$helper->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
$helper->addFieldText('zip', "Postleitzahl:");
$helper->addInputTextFieldWithDefault('zip');
+// Add sub group for chat protocols
$helper->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
+// Add ICQ chat?
if ($helper->ifChatEnabled('icq')) {
$helper->addFieldText('icq', "ICQ-Nummer:");
$helper->addInputTextFieldWithDefault('icq');
} // END - if
+// Add Jabber chat?
if ($helper->ifChatEnabled('jabber')) {
$helper->addFieldText('jabber', "Jabber:");
$helper->addInputTextFieldWithDefault('jabber');
} // END - if
+// Add Yahoo! chat?
if ($helper->ifChatEnabled('yahoo')) {
$helper->addFieldText('yahoo', "Yahoo!:");
$helper->addInputTextFieldWithDefault('yahoo');
} // END - if
+// Add AOL chat?
if ($helper->ifChatEnabled('aol')) {
$helper->addFieldText('aol', "AOL-Screenname:");
$helper->addInputTextFieldWithDefault('aol');
} // END - if
+// Add MSN chat?
if ($helper->ifChatEnabled('msn')) {
$helper->addFieldText('msn', "MSN:");
$helper->addInputTextFieldWithDefault('msn');