categorieModule Class Reference

Inherits AbstractAcaModule, and InterfaceAcaGene.

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes

Protected Member Functions

Static Protected Attributes


Detailed Description

Definition at line 448 of file driver.categorie.php.


Constructor & Destructor Documentation

categorieModule::__construct (  )  [protected]

Reimplemented from page.

Definition at line 473 of file driver.categorie.php.

00473                                    {
00474     global $language, $page;
00475     $this-> name=__CLASS__;
00476     $this->type_flag=1;
00477     $this-> products_id='';
00478     $this-> image_handler='';
00479 
00480     $this->modules=array();
00481     $this->pile_img=array();
00482     $list_mod=array();
00483 
00484     foreach(parent::initialise_type('MODULE_ACACAT_INSTALLED','categories') as $class){
00485       $cl[$class]=new $class ();
00486       $list_mod[$class] = $cl[$class]->sort_order;
00487     }
00488     asort($list_mod);
00489     foreach($list_mod as $class=>$s){
00490       $this->modules[$class] =$cl[$class];
00491     }
00492     unset($cl);unset($list_mod);
00493     return $this->modules;
00494   }


Member Function Documentation

categorieModule::display_view ( pID,
classe = '' 
)

Affiche module elemennt html Block principal d'affichage, liste ou vue des élément.

Block principal de page

Parameters:
$pID int $pID le Id du produits
@classe string le nom de la class appelé, ou vide pour toutes les class enfants

Definition at line 523 of file driver.categorie.php.

00523                                                {
00524     global  $page;
00525     if (!empty($classe)) {
00526       if (isset($this->modules[$classe]) && $this->modules[$classe]->enabled and (method_exists($classe, 'display_view' ))){
00527         $this->modules[$classe]->load_db_values($pID);
00528         return $this->modules[$classe]->display_view($pID);
00529       }
00530     } else {
00531        $c='';
00532       if(isset($this->modules) && is_array($this->modules))
00533       foreach ($this->modules as $key=>$module) {
00534         if (($module->enabled)  and (method_exists($module, 'display_view' ))) {
00535           $this->modules[$key]->load_db_values($pID);
00536           $c .=$this->modules[$key]->display_view($pID);
00537         }
00538       }
00539       return $c;
00540     }
00541   }

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

Affiche module display_view mini.

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

Definition at line 548 of file driver.categorie.php.

00548                                                   {
00549     global  $page;
00550     if (!empty($class)) {
00551       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_view_min' ))){
00552         $this->modules[$class]->load_db_values($cID);
00553         return $this->modules[$class]->display_view_min($cID);
00554       }
00555     } else {
00556        $c='';
00557       foreach ($this->modules as $key=>$module) {
00558         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00559           $this->modules[$key]->load_db_values($cID);
00560           $c .=$this->modules[$key]->display_view_min($cID);
00561         }
00562       }
00563       return $c;
00564     }
00565   }

categorieModule::get_option_data ( _array  ) 

Definition at line 507 of file driver.categorie.php.

00507                                           {
00508     if(isset($this->modules) && is_array($this->modules))
00509     foreach ($this->modules as $key=>$module) {
00510       if ( $module->enabled && (method_exists($module, 'get_option_data' ))) {
00511         $_array=$this->modules[$key]->get_option_data($_array);
00512       }
00513     }
00514     return $_array;
00515   }

static categorieModule::getInstance (  )  [static]

Reimplemented from page.

Definition at line 497 of file driver.categorie.php.

Referenced by resetInstance().

00497                                        {
00498     if(self::$_instance == null) self::$_instance = new self();
00499     return self::$_instance;
00500   }

static categorieModule::resetInstance (  )  [static]

Definition at line 502 of file driver.categorie.php.

00502                                         {
00503     self::$_instance = null;
00504     return self::getInstance();
00505   }


Member Data Documentation

categorieModule::$_instance [static, protected]

Reimplemented from page.

Definition at line 469 of file driver.categorie.php.

categorieModule::$modules

Les modules actif.

Parameters:
string 

Definition at line 461 of file driver.categorie.php.

categorieModule::$name

flag de la class

Parameters:
string 

Definition at line 456 of file driver.categorie.php.

categorieModule::$pile_img

Pile des images du porduit.

Parameters:
array 

Definition at line 466 of file driver.categorie.php.


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