
Public Member Functions | |
| __construct () | |
| component_render () | |
Protected Member Functions | |
| __get ($property) | |
| prepareHeader () | |
| debugOutput () | |
| header () | |
Protected Attributes | |
| $favicon = '#' | |
| $colours = array() | |
| $template_uri = '' | |
Definition at line 163 of file aliroTemplateBase.php.
| aliroUserTemplateBase::__construct | ( | ) |
Reimplemented from aliroMainTemplateBase.
Reimplemented in defaultTemplate.
Definition at line 168 of file aliroTemplateBase.php.
00168 { 00169 parent::__construct(); 00170 $this->isMain = true; 00171 $this->template_uri = $this->live_site.'/templates/'.$this->tname; 00172 }
| aliroUserTemplateBase::__get | ( | $ | property | ) | [protected] |
Definition at line 174 of file aliroTemplateBase.php.
References aliroSEF::getInstance(), and aliroPathway::getInstance().
00174 { 00175 switch ($property) { 00176 case 'pathway': 00177 return aliroPathway::getInstance(); 00178 case 'thispage': 00179 return $this->request->getCfg('sef') ? aliroSEF::getInstance()->sefRelToAbs(substr($_SERVER['REQUEST_URI'],1)) : ''; 00180 case 'version': 00181 return new version(); 00182 default: 00183 return null; 00184 } 00185 }
| aliroUserTemplateBase::prepareHeader | ( | ) | [protected] |
Definition at line 187 of file aliroTemplateBase.php.
References aliroEditor::getInstance(), and aliroUser::getInstance().
Referenced by header().
00187 { 00188 // Obtain the <head> information accumulated by the system 00189 $headerstuff = $this->request->showHead(); 00190 // If there is a logged in user, then make the editor available 00191 if (aliroUser::getInstance()->id) $headerstuff .= aliroEditor::getInstance()->initEditor(); 00192 return $headerstuff; 00193 }
| aliroUserTemplateBase::debugOutput | ( | ) | [protected] |
Definition at line 195 of file aliroTemplateBase.php.
Referenced by defaultTemplate::render().
00195 { 00196 // Acquire debug information 00197 $this->screenarea['debug']->setData($this->request->getDebug()); 00198 return $this->screenarea['debug']->getData(); 00199 }
| aliroUserTemplateBase::header | ( | ) | [protected] |
Definition at line 201 of file aliroTemplateBase.php.
References aliroTemplateBase::$iso, aliroTemplateBase::$request, aliroRequest::getInstance(), and prepareHeader().
Referenced by component_render(), and defaultTemplate::render().
00201 { 00202 if (!method_exists($this, $this->doctype)) $doctype = 'xhtml_10_trans'; 00203 else $doctype = $this->doctype; 00204 $iso = _ISO; 00205 $request = aliroRequest::getInstance(); 00206 foreach ((array) $this->cssname as $css) $request->addCSS("/templates/$this->tname/$css"); 00207 00208 return <<<HEADER 00209 {$this->$doctype()} 00210 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 00211 <head> 00212 <meta http-equiv="Content-type" content="text/html; $iso" /> 00213 {$this->prepareHeader()} 00214 </head> 00215 00216 HEADER; 00217 00218 }
| aliroUserTemplateBase::component_render | ( | ) |
Definition at line 222 of file aliroTemplateBase.php.
References header(), and aliroMainTemplateBase::mainBody().
00222 { 00223 echo <<<COMPONENT_HTML 00224 {$this->header ()} 00225 00226 <body> 00227 {$this->mainBody()} 00228 </body> 00229 </html> 00230 00231 COMPONENT_HTML; 00232 00233 }
aliroUserTemplateBase::$favicon = '#' [protected] |
Definition at line 164 of file aliroTemplateBase.php.
aliroUserTemplateBase::$colours = array() [protected] |
aliroUserTemplateBase::$template_uri = '' [protected] |
Definition at line 166 of file aliroTemplateBase.php.
1.5.5