listingModule Class Reference

Support des class ACA. More...

Inherits AbstractAcaModule, and InterfaceAcaGene.

List of all members.

Public Member Functions

Static Public Member Functions

Protected Member Functions

Static Protected Attributes


Detailed Description

Support des class ACA.

Definition at line 294 of file page.listing.php.


Constructor & Destructor Documentation

listingModule::__construct (  )  [protected]

Reimplemented from page.

Definition at line 302 of file page.listing.php.

00302                                    {
00303     global $language, $page;
00304     $this-> name='listing';
00305     $this->modules=array();
00306 
00307     foreach(parent::initialise_type('MODULE_LISTING_INSTALLED','listing') as $class){
00308       $cl[$class]=new $class ();
00309       $list_mod[$class] = $cl[$class]->sort_order;
00310       asort($list_mod);
00311       foreach($list_mod as $class=>$s){
00312         $this->modules[$class] =$cl[$class];
00313       }
00314       unset($cl);unset($list_mod);
00315     }
00316   }


Member Function Documentation

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

Definition at line 328 of file page.listing.php.

00328 {return array();}

listingModule::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 337 of file page.listing.php.

00337                                                   {
00338     global  $page;
00339     if (!empty($class)) {
00340       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_view_min' ))){
00341         $this->modules[$class]->load_db_values($cID);
00342         return $this->modules[$class]->display_view_min($cID);
00343       }
00344     } else {
00345        $c='';
00346       foreach ($this->modules as $key=>$module) {
00347         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00348           $this->modules[$key]->load_db_values($cID);
00349           $c .=$this->modules[$key]->display_view_min($cID);
00350         }
00351       }
00352       return $c;
00353     }
00354   }

static listingModule::getInstance (  )  [static]

Reimplemented from page.

Definition at line 318 of file page.listing.php.

Referenced by resetInstance().

00318                                        {
00319     if(self::$_instance == null) self::$_instance = new self();
00320     return self::$_instance;
00321   }

static listingModule::resetInstance (  )  [static]

Definition at line 323 of file page.listing.php.

00323                                         {
00324     self::$_instance = null;
00325     return self::getInstance();
00326   }

listingModule::return_db_min ( cID,
class = '' 
)

return_db_min 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

Reimplemented from AbstractAcaModule.

Definition at line 364 of file page.listing.php.

00364                                                {
00365     global  $page;
00366     if (!empty($class)) {
00367       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'return_db_min' ))){
00368         $this->modules[$class]->load_db_values($cID);
00369         return $this->modules[$class]->return_db_min($cID);
00370       }
00371     } else {
00372        $c=array();
00373       foreach ($this->modules as $key=>$module) {
00374         if (($module->enabled)  and (method_exists($module, 'return_db_min' ))) {
00375           $this->modules[$key]->load_db_values($cID);
00376           $c[$key]=$this->modules[$key]->return_db_min($cID);
00377         }
00378       }
00379       return $c;
00380     }
00381   }


Member Data Documentation

listingModule::$_instance [static, protected]

Reimplemented from page.

Definition at line 298 of file page.listing.php.


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