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