
Public Member Functions | |
| check () | |
| getParams () | |
| loadLanguage () | |
| renderModule ($area, $template) | |
| renderModuleTitle ($area, $template) | |
Protected Attributes | |
| $DBclass = 'aliroCoreDatabase' | |
| $tableName = '#__modules' | |
| $rowKey = 'id' | |
| $handler = 'aliroModuleHandler' | |
| $formalfield = 'module' | |
Definition at line 267 of file aliroModule.php.
| aliroModule::check | ( | ) |
Reimplemented from aliroDBGeneralRow.
Definition at line 275 of file aliroModule.php.
References T_().
00275 { 00276 // check for presence of a name 00277 if (trim( $this->title ) == '') { 00278 $this->_error = T_('Your Module must contain a title.'); 00279 return false; 00280 } 00281 return true; 00282 }
| aliroModule::getParams | ( | ) |
Definition at line 284 of file aliroModule.php.
Referenced by renderModule(), and renderModuleTitle().
00284 { 00285 $params = new aliroParameters ($this->params); 00286 return $params; 00287 }
| aliroModule::loadLanguage | ( | ) |
Definition at line 289 of file aliroModule.php.
References criticalInfo::getInstance().
Referenced by renderModule().
00289 { 00290 // check for custom language file 00291 $basepath = criticalInfo::getInstance()->absolute_path.'/modules/'.$this->module; 00292 $path = $basepath.aliroCore::get('mosConfig_lang').'.php'; 00293 if (file_exists( $path )) include( $path ); 00294 else { 00295 $path = $basepath.'.en.php'; 00296 if (file_exists( $path )) include( $path ); 00297 } 00298 }
| aliroModule::renderModule | ( | $ | area, | |
| $ | template | |||
| ) |
Definition at line 300 of file aliroModule.php.
References getParams(), and loadLanguage().
00300 { 00301 $this->loadLanguage(); 00302 $params = $this->getParams(); 00303 $moduleclass_sfx = $params->get( 'moduleclass_sfx' ); 00304 $title = $this->showtitle ? $this->title : ''; 00305 $moduleclass = ($this->admin & 2) ? $this->adminclass : $this->class; 00306 $modobject = new $moduleclass; 00307 $modobject->activate($this, $content, $area, $params); 00308 $method = 'moduleStyle'.$area->style; 00309 return $template->$method($moduleclass_sfx, $title, $content); 00310 }
| aliroModule::renderModuleTitle | ( | $ | area, | |
| $ | template | |||
| ) |
Definition at line 312 of file aliroModule.php.
References getParams().
00312 { 00313 $params = $this->getParams(); 00314 $moduleclass_sfx = $params->get( 'moduleclass_sfx' ); 00315 $title = $this->showtitle ? $this->title : ''; 00316 $method = 'moduleStyle'.$area->style; 00317 return $template->$method($moduleclass_sfx, $title, ''); 00318 }
aliroModule::$DBclass = 'aliroCoreDatabase' [protected] |
Definition at line 268 of file aliroModule.php.
aliroModule::$tableName = '#__modules' [protected] |
Definition at line 269 of file aliroModule.php.
aliroModule::$rowKey = 'id' [protected] |
Definition at line 270 of file aliroModule.php.
aliroModule::$handler = 'aliroModuleHandler' [protected] |
Definition at line 271 of file aliroModule.php.
aliroModule::$formalfield = 'module' [protected] |
Definition at line 272 of file aliroModule.php.
1.5.5