
Public Member Functions | |
| __construct () | |
Protected Member Functions | |
| mainBody () | |
| getTimeMessage () | |
| errorMessage () | |
| oneErrorMessage ($colour, $text) | |
| errorSet ($errorsHTML) | |
| xhtml_10_trans () | |
| xhtml_10_strict () | |
| xhtml_11 () | |
Protected Attributes | |
| $colours = array() | |
| $mainmenu = '' | |
| $username = '' | |
| $versiontext = '' | |
Definition at line 82 of file aliroTemplateBase.php.
| aliroMainTemplateBase::__construct | ( | ) |
Reimplemented from aliroTemplateBase.
Reimplemented in aliroAdminTemplateBase, defaultAdminTemplate, aliroUserTemplateBase, and defaultTemplate.
Definition at line 88 of file aliroTemplateBase.php.
| aliroMainTemplateBase::mainBody | ( | ) | [protected] |
Definition at line 92 of file aliroTemplateBase.php.
References aliroComponentHandler::getInstance().
Referenced by aliroUserTemplateBase::component_render(), defaultTemplate::render(), and defaultAdminTemplate::render().
00092 { 00093 return aliroComponentHandler::getInstance()->mosMainBody(); 00094 }
| aliroMainTemplateBase::getTimeMessage | ( | ) | [protected] |
Definition at line 96 of file aliroTemplateBase.php.
References aliro::getInstance().
Referenced by defaultAdminTemplate::render().
00096 { 00097 return aliro::getInstance()->getTimeMessage(); 00098 }
| aliroMainTemplateBase::errorMessage | ( | ) | [protected] |
Definition at line 100 of file aliroTemplateBase.php.
References errorSet(), and oneErrorMessage().
Referenced by defaultTemplate::render(), and defaultAdminTemplate::render().
00100 { 00101 $messages = $this->request->pullErrorMessages(); 00102 if (count($messages)) { 00103 $msghtml = ''; 00104 foreach ($this->colours as $severity=>$colour) if (isset($messages[$severity])) { 00105 foreach ($messages[$severity] as $text) { 00106 $msghtml .= $this->oneErrorMessage ($colour, $text); 00107 } 00108 } 00109 $html = $this->errorSet($msghtml); 00110 } 00111 else $html = ''; 00112 return $html; 00113 }
| aliroMainTemplateBase::oneErrorMessage | ( | $ | colour, | |
| $ | text | |||
| ) | [protected] |
Definition at line 116 of file aliroTemplateBase.php.
Referenced by errorMessage().
00116 { 00117 return <<<ONE_ERROR_MESSAGE 00118 <div class="$colour errormessage"> 00119 $text 00120 </div> 00121 ONE_ERROR_MESSAGE; 00122 00123 }
| aliroMainTemplateBase::errorSet | ( | $ | errorsHTML | ) | [protected] |
Definition at line 126 of file aliroTemplateBase.php.
Referenced by errorMessage().
00126 { 00127 return <<<FULL_MESSAGE_SET 00128 <!-- start Error Message area --> 00129 <div id="errormessage"> 00130 $errorsHTML 00131 <!-- end Error Message area --> 00132 </div> 00133 FULL_MESSAGE_SET; 00134 00135 }
| aliroMainTemplateBase::xhtml_10_trans | ( | ) | [protected] |
Definition at line 137 of file aliroTemplateBase.php.
00137 { 00138 return <<<DOCTYPE 00139 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 00140 00141 DOCTYPE; 00142 00143 }
| aliroMainTemplateBase::xhtml_10_strict | ( | ) | [protected] |
Definition at line 145 of file aliroTemplateBase.php.
00145 { 00146 return <<<DOCTYPE 00147 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 00148 00149 DOCTYPE; 00150 00151 }
| aliroMainTemplateBase::xhtml_11 | ( | ) | [protected] |
Definition at line 153 of file aliroTemplateBase.php.
00153 { 00154 return <<<DOCTYPE 00155 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 00156 00157 DOCTYPE; 00158 00159 }
aliroMainTemplateBase::$colours = array() [protected] |
aliroMainTemplateBase::$mainmenu = '' [protected] |
Definition at line 84 of file aliroTemplateBase.php.
aliroMainTemplateBase::$username = '' [protected] |
Definition at line 85 of file aliroTemplateBase.php.
aliroMainTemplateBase::$versiontext = '' [protected] |
Definition at line 86 of file aliroTemplateBase.php.
1.5.5