contentModule Class Reference

Traitement des modules associé. More...

Inherits AbstractAcaModule, and InterfaceAcaGene.

List of all members.

Public Member Functions

Static Public Member Functions

Protected Member Functions

Static Protected Attributes


Detailed Description

Traitement des modules associé.

Definition at line 380 of file driver.content.php.


Constructor & Destructor Documentation

contentModule::__construct (  )  [protected]

Reimplemented from page.

Definition at line 388 of file driver.content.php.

00388                                    {
00389     global $language, $page;
00390     $this->name=__CLASS__;
00391     $this->modules=array();
00392     $list_mod=array();
00393     foreach(parent::initialise_type('MODULE_CONTENT_INSTALLED',$this->name) as $class){
00394       $cl[$class]=new $class ();
00395       $list_mod[$class] = $cl[$class]->sort_order;
00396     }
00397     asort($list_mod);
00398     foreach($list_mod as $class=>$s){
00399       $this->modules[$class] =$cl[$class];
00400     }
00401     unset($cl);unset($list_mod);
00402     return $this->modules;
00403   }


Member Function Documentation

contentModule::display_view ( ID,
class = '' 
)

Definition at line 416 of file driver.content.php.

00416 {return array();}

contentModule::display_view_min ( cID,
class = '' 
)

Affiche module display_view mini.

Parameters:
@a int cID le Id du customers string class le nom de la class appelé, ou vide pour toutes les class enfants

Definition at line 425 of file driver.content.php.

00425                                                   {
00426     global  $page;
00427     if (!empty($class)) {
00428       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_view_min' ))){
00429         $this->modules[$class]->load_db_values($cID);
00430         return $this->modules[$class]->display_view_min($cID);
00431       }
00432     } else {
00433        $c='';
00434       foreach ($this->modules as $key=>$module) {
00435         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00436           $this->modules[$key]->load_db_values($cID);
00437           $c .=$this->modules[$key]->display_view_min($cID);
00438         }
00439       }
00440       return $c;
00441     }
00442   }

static contentModule::getInstance (  )  [static]

Reimplemented from page.

Definition at line 406 of file driver.content.php.

Referenced by resetInstance().

00406                                        {
00407     if(self::$_instance == null) self::$_instance = new self();
00408     return self::$_instance;
00409   }

static contentModule::resetInstance (  )  [static]

Definition at line 411 of file driver.content.php.

00411                                         {
00412     self::$_instance = null;
00413     return self::getInstance();
00414   }


Member Data Documentation

contentModule::$_instance [static, protected]

Reimplemented from page.

Definition at line 384 of file driver.content.php.


The documentation for this class was generated from the following file: