home Class Reference

prend en charge les modules de types home. More...

Inherits AbstractAcaModule, and InterfaceAcaGene.

List of all members.

Public Member Functions

Static Public Member Functions

Static Protected Attributes


Detailed Description

prend en charge les modules de types home.

Definition at line 15 of file page.home.php.


Constructor & Destructor Documentation

home::__construct (  ) 

Charge les module aca specifique au porduits.

Reimplemented from page.

Definition at line 25 of file page.home.php.

00025                          {
00026 
00027     global $language, $page;
00028     $this->name='home';
00029     $this->homes_id='';
00030     $this->image_handler='';
00031     $this->modules=array();
00032 
00033     foreach(parent::initialise_type('MODULE_HOME_INSTALLED','home') as $class){
00034       $cl[$class]=new $class ();
00035       $list_mod[$class] = $cl[$class]->sort_order;
00036       asort($list_mod);
00037       foreach($list_mod as $class=>$s){
00038         $this->modules[$class] =$cl[$class];
00039       }
00040       unset($cl);unset($list_mod);
00041     }
00042   }


Member Function Documentation

home::display_alaune ( cID,
class = '' 
)

Specifique Module.

Affiche module display_alaune, block specifique home, blok page central

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

Definition at line 134 of file page.home.php.

00134                                                 {
00135     global  $page;
00136     if (!empty($class)) {
00137       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_alaune' ))){
00138         $this->modules[$class]->load_db_values($cID);
00139         return $this->modules[$class]->display_alaune($cID);
00140       }
00141     } else {
00142       $c=array();
00143       foreach ($this->modules as $key=>$module) {
00144         if (($module->enabled)  and (method_exists($module, 'display_alaune' ))) {
00145           $this->modules[$key]->load_db_values($cID);
00146           $c[]=$this->modules[$key]->display_alaune($cID);
00147         }
00148       }
00149       return $c;
00150     }
00151   }

home::display_titre ( cID,
format = '$s' 
)

Affiche bock titre client notifié.

Parameters:
$cID int
$format string format for sprintf

Definition at line 115 of file page.home.php.

00115                                                   {
00116       $c='';
00117       foreach ($this->modules as $key=>$module) {
00118         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00119           $this->modules[$key]->load_db_values($cID);
00120           $c[]=$this->modules[$key]->display_titre($format);
00121         }
00122       }
00123       return $c;
00124   }

home::display_view ( pID,
class = '' 
)

Obligatoire depend AbstractAcaModule.

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

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

Definition at line 63 of file page.home.php.

00063                                               {
00064     global  $page;
00065     if (!empty($class)) {
00066       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'display_view' ))){
00067         $this->modules[$class]->load_db_values($pID);
00068         return $this->modules[$class]->display_view($pID);
00069       }
00070     } else {
00071        $c=array();
00072       if(isset($this->modules) && is_array($this->modules))
00073       foreach ($this->modules as $key=>$module) {
00074         if (($module->enabled)  and (method_exists($module, 'display_view' ))) {
00075           $this->modules[$key]->load_db_values($pID);
00076           $c[]=$this->modules[$key]->display_view($pID);
00077         }
00078       }
00079       return $c;
00080     }
00081   }

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

Affiche module display_view mini.

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

Definition at line 90 of file page.home.php.

00090                                                   {
00091     global  $page;
00092     if (!empty($class)) {
00093       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'display_view_min' ))){
00094         $this->modules[$class]->load_db_values($cID);
00095         return $this->modules[$class]->display_view_min($cID);
00096       }
00097     } else {
00098       $c=array();
00099       foreach ($this->modules as $key=>$module) {
00100         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00101           $this->modules[$key]->load_db_values($cID);
00102           $c .=$this->modules[$key]->display_view_min($cID);
00103         }
00104       }
00105       return $c;
00106     }
00107   }

static home::getInstance ( full = false  )  [static]

Definition at line 44 of file page.home.php.

00044                                                   {
00045     if(self::$_instance == null) self::$_instance = new self($full);
00046     return self::$_instance;
00047   }

static home::resetInstance (  )  [static]

Definition at line 49 of file page.home.php.

00049                                         {
00050     self::$_instance = null;
00051     return self::getInstance();
00052   }


Member Data Documentation

home::$_instance [static, protected]

object

Reimplemented from page.

Definition at line 20 of file page.home.php.


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