* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
interface ManageableApplication extends FrameworkInterface {
- /**
- * Getter for application's version number
- *
- * @return $appVersion The application's version number
- */
- function getAppVersion ();
- /**
- * Setter for application's version number
- *
- * @param $appVersion The application's version number
- * @return void
- */
- function setAppVersion ($appVersion);
-
- /**
- * Getter for application's human-readable name
- *
- * @return $appName The application's name readable for humans
- */
- function getAppName ();
-
- /**
- * Setter for application's human-readable name
- *
- * @param $appName The application's name readable for humans
- * @return void
- */
- function setAppName ($appName);
-
- /**
- * Getter for application's short uni*-like name
- *
- * @return $shortName The application's name readable for humans
- */
- function getAppShortName ();
-
- /**
- * Setter for application's short uni*-like name
- *
- * @param $shortName The application's name readable for humans
- * @return void
- */
- function setAppShortName ($shortName);
-
- /**
- * Getter for master template name
- *
- * @return $masterTemplate Name of the master template
- */
- function getMasterTemplate ();
-
/**
* Launches the application
*
* @return void
*/
function handleFatalMessages (array $messageList);
+
+ /**
+ * Builds the master template's name
+ *
+ * @return $masterTemplateName Name of the master template
+ */
+ function buildMasterTemplateName();
}
// [EOF]
$templateInstance->assignConfigVariable('base_url');
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignApplicationData($appInstance);
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignApplicationData($appInstance);
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignConfigVariable('base_url');
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignApplicationData($appInstance);
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignApplicationData($appInstance);
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignConfigVariable('base_url');
// Load the master template
- $masterTemplate = $appInstance->getMasterTemplate();
+ $masterTemplate = $appInstance->buildMasterTemplateName();
// Load header template
$templateInstance->loadCodeTemplate('header');
$templateInstance->assignTemplateWithVariable('footer', 'footer');
// Load the master template
- $templateInstance->loadCodeTemplate($this->getApplicationInstance()->getMasterTemplate());
+ $templateInstance->loadCodeTemplate($this->getApplicationInstance()->buildMasterTemplateName());
// Then compile it again
$templateInstance->compileVariables();
*/
protected function loadViewHelper ($helperName) {
// Make first character upper case, rest low
- $helperName = ucfirst($helperName);
+ $helperName = $this->convertToClassName($helperName);
// Is this view helper loaded?
if (!isset($this->helpers[$helperName])) {