Continued:
[core.git] / inc / main / interfaces / application / class_ManageableApplication.php
1 <?php
2 // Own namespace
3 namespace CoreFramework\Manager;
4
5 // Import framework stuff
6 use CoreFramework\Generic\FrameworkInterface;
7 use CoreFramework\Template\CompileableTemplate;
8
9 /**
10  * An interface for managing applications. This can be a lot. E.g.:
11  *
12  * - Un-/locking applications
13  * - Creating selectors for the selector-mode
14  * - Usage statistics
15  * - And many more...
16  *
17  * @author              Roland Haeder <webmaster@shipsimu.org>
18  * @version             0.0.0
19  * @copyright   Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
20  * @license             GNU GPL 3.0 or any newer version
21  * @link                http://www.shipsimu.org
22  *
23  * This program is free software: you can redistribute it and/or modify
24  * it under the terms of the GNU General Public License as published by
25  * the Free Software Foundation, either version 3 of the License, or
26  * (at your option) any later version.
27  *
28  * This program is distributed in the hope that it will be useful,
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31  * GNU General Public License for more details.
32  *
33  * You should have received a copy of the GNU General Public License
34  * along with this program. If not, see <http://www.gnu.org/licenses/>.
35  */
36 interface ManageableApplication extends FrameworkInterface {
37         /**
38          * Launches the application
39          *
40          * @return      void
41          */
42         function entryPoint ();
43
44         /**
45          * Handle the indexed array of fatal messages and puts them out in an
46          * acceptable fasion
47          *
48          * @param       $messageList    An array of fatal messages
49          * @return      void
50          */
51         function handleFatalMessages (array $messageList);
52
53         /**
54          * Builds the master template's name
55          *
56          * @return      $masterTemplateName             Name of the master template
57          */
58         function buildMasterTemplateName();
59
60         /**
61          * Assigns extra application-depending data
62          *
63          * @param       $templateInstance       An instance of a CompileableTemplate
64          * @return      void
65          * @todo        Nothing to add?
66          */
67         function assignExtraTemplateData (CompileableTemplate $templateInstance);
68
69 }