2 ///////////////////////////////
3 // Assign personal user data //
4 ///////////////////////////////
6 // Get a new instance for personal data
7 $blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
9 // Set the data source instance which must exist in registry
10 $blockInstance->prefetchValueInstance('user');
12 // Assign fields with template variables
13 $blockInstance->assignField('username');
14 $blockInstance->assignFieldWithFilter('user_status', "user_status_translator");
16 // Shall we include registration date?
17 if ($blockInstance->ifIncludeRegistrationStamp()) {
18 // Then assign it as well!
19 $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
22 // Flush the content out to a template variable
23 $blockInstance->flushContent();
25 // Get helper instance
26 $linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action', 'index.php?app={?app_short_name?}&page=login_area'));
29 $linkInstance->addActionLinkById('logout', 'logout');
32 $linkInstance->flushContent();
36 <div id="content_header">
37 Willkommen zum <span class="app_name">{?app_full_name?}</span>!
40 <div id="content_body">
44 <div id="persona_data" title="Informationen zum Adminaccount">
45 <div id="persona_header">
49 <div id="persona_body">