2 // Get a link helper instance
3 $linkInstance = WebLinkHelper::createWebLinkHelper($this, 'company_links', 'index.php?app=ship-simu&page=login_area');
5 // Preftech the user data
6 $linkInstance->prefetchValueInstance('user');
8 // Maximum of allowed companies reached?
9 if ($linkInstance->getValueInstance()->ifUserCreatedMaximumAllowedCompanies()) {
10 // No more companies allowed to create
11 } elseif ($linkInstance->getValueInstance()->ifUserPointsEnougth('found_new_company')) {
12 // Enough money to found company
13 } elseif ($linkInstance->getValueInstance()->ifUserPointsEnougth('write_applications')) {
14 // Enough money to write applications to other companies
15 } elseif ($linkInstance->getValueInstance()->ifGovermentPaysStartupHelp()) {
16 // Display link to goverment for startup help
19 if ($linkInstance->getValueInstance()->ifUserAllowTakeCreditsFromMoneyBank()) {
20 // Display link to money bank page
21 } elseif ($linkInstance->getValueInstance()->ifUserHasMaximumCreditsWithMoneyBank()) {
22 // Maximum credits reached which a money bank can lent
24 // Money bank is closed!
27 if ($linkInstance->getValueInstance()->ifRefillPageActive()) {
28 // Display link to refill page
30 // Refill page not active
33 // Flush content to the template
34 $linkInstance->flushContent();
36 // End of PHP commands
38 <div class="table_header" id="list_company_header">
39 Auflistung der Reedereien, an denenen du dich beteiligst:
42 <div class="table_list">
46 <div class="table_footer">