// CFG: ADMIN-EMAIL
$cfg->setConfigEntry('admin_email', "you@some-hoster.invalid");
+// CFG: WEB-BLOCK-HELPER
+$cfg->setConfigEntry('web_block_helper', "WebBlockHelper");
+
+// CFG: WEB-FORM-HELPER
+$cfg->setConfigEntry('web_form_helper', "WebFormHelper");
+
+// CFG: WEB-LINK-HELPER
+$cfg->setConfigEntry('web_link_helper', "WebLinkHelper");
+
// [EOF]
?>
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
// Set link text
$helper->addLinkWithTextById('logout_now_link_text');
$helper->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
$helper->addLinkWithTextById('return_login_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "admin_profile");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "admin_profile"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "resend_link");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
if ($helper->ifUserAccountUnconfirmed()) {
// Build the form for confirmation
- $helper = WebFormHelper::createWebFormHelper($this, "confirm_code");
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
// Add code box
$helper->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
<?php
// Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
$captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
$captchaHelper->flushContent();
// [EOF]
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('login_retry_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'admin_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'admin_user_login'));
// Formular deaktiviert?
if ($helper->ifLoginIsEnabled()) {
$helper->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
$helper->addLinkWithTextById('register_login_form_link_text');
///////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
// Set the data source instance which must exist in registry
$blockInstance->prefetchValueInstance('user');
$blockInstance->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$helper->addActionLink('logout', "Ausloggen");
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('relogin_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'admin_register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'admin_register'));
// Always ask at least for nickname and password
$helper->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");
// CFG: ADMIN-EMAIL
$cfg->setConfigEntry('admin_email', "you@some-hoster.invalid");
+// CFG: WEB-BLOCK-HELPER
+$cfg->setConfigEntry('web_block_helper', "WebBlockHelper");
+
+// CFG: WEB-FORM-HELPER
+$cfg->setConfigEntry('web_form_helper', "WebFormHelper");
+
+// CFG: WEB-LINK-HELPER
+$cfg->setConfigEntry('web_link_helper', "WebLinkHelper");
+
// [EOF]
?>
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
// Set link text
$helper->addLinkWithTextById('logout_now_link_text');
$helper->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
$helper->addLinkWithTextById('return_login_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "blog_profile");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "blog_profile"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "resend_link");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
if ($helper->ifUserAccountUnconfirmed()) {
// Build the form for confirmation
- $helper = WebFormHelper::createWebFormHelper($this, "confirm_code");
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
// Add code box
$helper->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
<?php
// Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
$captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
$captchaHelper->flushContent();
// [EOF]
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('direct_login_link_text');
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('login_retry_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'blog_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'blog_user_login'));
// Formular deaktiviert?
if ($helper->ifLoginIsEnabled()) {
// Ist Gastlogin erlaubt?
if ($helper->ifGuestLoginAllowed()) {
// Neue Helper-Instanz holen
- $helper = WebFormHelper::createWebFormHelper($this, 'blog_guest_login');
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'blog_guest_login'));
$helper->addInputHiddenConfiguredField('user', 'guest_login');
$helper->addInputHiddenConfiguredField('passwd', 'guest_login');
}
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
$helper->addLinkWithTextById('register_login_form_link_text');
///////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
// Set the data source instance which must exist in registry
$blockInstance->prefetchValueInstance('user');
//////////////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'company_data'));
// Set the data source instance
$blockInstance->prefetchValueInstance('company', 'user');
$blockInstance->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$helper->addActionLink('logout', "Ausloggen");
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('relogin_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'blog_register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'blog_register'));
// Always ask at least for nickname and password
$helper->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");
// CFG: GOVERMENT-STARTUP-HELP-LIMIT
$cfg->setConfigEntry('goverment_startup_help_limit', 3);
+// CFG: WEB-BLOCK-HELPER
+$cfg->setConfigEntry('web_block_helper', "WebBlockHelper");
+
+// CFG: WEB-FORM-HELPER
+$cfg->setConfigEntry('web_form_helper', "WebFormHelper");
+
+// CFG: WEB-LINK-HELPER
+$cfg->setConfigEntry('web_link_helper', "WebLinkHelper");
+
// [EOF]
?>
<?php
// Get a link helper instance
-$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'company_links', 'index.php?app={?app_short_name?}&page=login_area');
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'company_links', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch the user data
$linkInstance->prefetchValueInstance('user');
<?php
// Get form helper instance
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_startup_form');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_startup_form'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get form helper instance
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_training_form');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_training_form'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
$helperInstance->flushContent();
// Get link helper for profile link
-$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$linkInstance->addActionLinkById('profile', 'goto_profile_link');
<?php
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
// Set link text
$helperInstance->addLinkWithTextById('logout_now_link_text');
$helperInstance->flushContent();
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
$helperInstance->addLinkWithTextById('return_login_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helperInstance = WebFormHelper::createWebFormHelper($this, "shipsimu_profile");
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "shipsimu_profile"));
// Pre-fetch field data with a given registry key
$helperInstance->prefetchValueInstance('user');
<?php
// Neue Helper-Instanz holen
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'refill_form');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'refill_form'));
// Pre-fetch payment types
$helperInstance->prefetchValueInstance('payments');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helperInstance = WebFormHelper::createWebFormHelper($this, "resend_link");
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
// Pre-fetch field data with a given registry key
$helperInstance->prefetchValueInstance('user');
if ($helperInstance->ifUserAccountUnconfirmed()) {
// Build the form for confirmation
- $helperInstance = WebFormHelper::createWebFormHelper($this, "confirm_code");
+ $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
// Add code box
$helperInstance->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
<?php
// Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
$captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
$captchaHelper->flushContent();
// [EOF]
<?php
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helperInstance->addLinkWithTextById('direct_login_link_text');
<?php
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helperInstance->addLinkWithTextById('login_retry_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_user_login');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_user_login'));
// Formular deaktiviert?
if ($helperInstance->ifLoginIsEnabled()) {
// Ist Gastlogin erlaubt?
if ($helperInstance->ifGuestLoginAllowed()) {
// Neue Helper-Instanz holen
- $helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_guest_login');
+ $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_guest_login'));
$helperInstance->addInputHiddenConfiguredField('user', 'guest_login');
$helperInstance->addInputHiddenConfiguredField('passwd', 'guest_login');
}
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
$helperInstance->addLinkWithTextById('register_login_form_link_text');
///////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
// Set the data source instance which must exist in registry
$blockInstance->prefetchValueInstance('user');
//////////////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'company_data'));
// Set the data source instance
$blockInstance->prefetchValueInstance('company', 'user');
$blockInstance->flushContent();
// Get helper instance
-$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area');
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$linkInstance->addLinkGroup('logout', "");
<?php
// Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helperInstance->addLinkWithTextById('relogin_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_register');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_register'));
// Always ask at least for nickname and password
$helperInstance->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");
// CFG: ADMIN-EMAIL
$cfg->setConfigEntry('admin_email', "you@some-hoster.invalid");
+// CFG: WEB-BLOCK-HELPER
+$cfg->setConfigEntry('web_block_helper', "WebBlockHelper");
+
+// CFG: WEB-FORM-HELPER
+$cfg->setConfigEntry('web_form_helper', "WebFormHelper");
+
+// CFG: WEB-LINK-HELPER
+$cfg->setConfigEntry('web_link_helper', "WebLinkHelper");
+
// [EOF]
?>
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
// Set link text
$helper->addLinkWithTextById('logout_now_link_text');
$helper->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
$helper->addLinkWithTextById('return_login_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "shoutbox_profile");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "shoutbox_profile"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "resend_link");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
if ($helper->ifUserAccountUnconfirmed()) {
// Build the form for confirmation
- $helper = WebFormHelper::createWebFormHelper($this, "confirm_code");
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
// Add code box
$helper->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
<?php
// Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
$captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
$captchaHelper->flushContent();
// [EOF]
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('direct_login_link_text');
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('login_retry_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'shoutbox_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shoutbox_user_login'));
// Formular deaktiviert?
if ($helper->ifLoginIsEnabled()) {
// Ist Gastlogin erlaubt?
if ($helper->ifGuestLoginAllowed()) {
// Neue Helper-Instanz holen
- $helper = WebFormHelper::createWebFormHelper($this, 'shoutbox_guest_login');
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shoutbox_guest_login'));
$helper->addInputHiddenConfiguredField('user', 'guest_login');
$helper->addInputHiddenConfiguredField('passwd', 'guest_login');
}
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
$helper->addLinkWithTextById('register_login_form_link_text');
///////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
// Set the data source instance which must exist in registry
$blockInstance->prefetchValueInstance('user');
//////////////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'company_data'));
// Set the data source instance
$blockInstance->prefetchValueInstance('company', 'user');
$blockInstance->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$helper->addActionLink('logout', "Ausloggen");
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('relogin_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'shoutbox_register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shoutbox_register'));
// Always ask at least for nickname and password
$helper->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");
// CFG: ADMIN-EMAIL
$cfg->setConfigEntry('admin_email', "you@some-hoster.invalid");
+// CFG: WEB-BLOCK-HELPER
+$cfg->setConfigEntry('web_block_helper', "WebBlockHelper");
+
+// CFG: WEB-FORM-HELPER
+$cfg->setConfigEntry('web_form_helper', "WebFormHelper");
+
+// CFG: WEB-LINK-HELPER
+$cfg->setConfigEntry('web_link_helper', "WebLinkHelper");
+
// [EOF]
?>
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
// Set link text
$helper->addLinkWithTextById('logout_now_link_text');
$helper->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
$helper->addLinkWithTextById('return_login_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "todo_profile");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "todo_profile"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, "resend_link");
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
// Pre-fetch field data with a given registry key
$helper->prefetchValueInstance('user');
if ($helper->ifUserAccountUnconfirmed()) {
// Build the form for confirmation
- $helper = WebFormHelper::createWebFormHelper($this, "confirm_code");
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
// Add code box
$helper->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
<?php
// Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
<?php
// Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
$captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
$captchaHelper->flushContent();
// [EOF]
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('direct_login_link_text');
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('login_retry_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'todo_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'todo_user_login'));
// Formular deaktiviert?
if ($helper->ifLoginIsEnabled()) {
// Ist Gastlogin erlaubt?
if ($helper->ifGuestLoginAllowed()) {
// Neue Helper-Instanz holen
- $helper = WebFormHelper::createWebFormHelper($this, 'todo_guest_login');
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'todo_guest_login'));
$helper->addInputHiddenConfiguredField('user', 'guest_login');
$helper->addInputHiddenConfiguredField('passwd', 'guest_login');
}
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
$helper->addLinkWithTextById('register_login_form_link_text');
///////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
// Set the data source instance which must exist in registry
$blockInstance->prefetchValueInstance('user');
//////////////////////////////////////
// Get a new instance for personal data
-$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+$blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'company_data'));
// Set the data source instance
$blockInstance->prefetchValueInstance('company', 'user');
$blockInstance->flushContent();
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
$helper->addActionLink('logout', "Ausloggen");
<?php
// Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
$helper->addLinkWithTextById('relogin_link_text');
// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'todo_register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'todo_register'));
// Always ask at least for nickname and password
$helper->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");