2 ///////////////////////////////
3 // Assign personal user data //
4 ///////////////////////////////
6 // Get a new instance for personal data
7 $blockInstance = ObjectFactory::createObjectByConfiguredName('html_block_helper_class', array($this, 'persona_data'));
9 // Set the data source instance which must exist in registry
10 $blockInstance->prefetchValueInstance('user', 'user_points');
12 // Assign fields with template variables
13 $blockInstance->assignField('username');
14 $blockInstance->assignFieldWithFilter('user_status', 'user_status_translator');
15 $blockInstance->assignFieldWithFilter('points', 'format_number');
17 // Shall we include registration date?
18 if ($blockInstance->ifIncludeRegistrationStamp()) {
19 // Then assign it as well!
20 $blockInstance->assignFieldWithFilter('registered', 'format_timestamp');
23 // Flush the content out to a template variable
24 $blockInstance->flushContent();
26 // Get helper instance
27 $linkInstance = ObjectFactory::createObjectByConfiguredName('html_link_helper_class', array($this, 'logout'));
30 $linkInstance->addActionLinkById('logout', 'logout');
33 $linkInstance->flushContent();
37 <div id="content_header">
38 Willkommen im Loginbereich von <span class="app_name">{?app_full_name?}</span>!
41 <div id="content_body">
45 <div id="persona_data" title="Informationen zu Deinem Spieleaccount">
46 <div id="persona_header">
50 <div id="persona_body">