generic Class Reference

Inherits AbstractAcaModule, and InterfaceAcaGene.

List of all members.

Public Member Functions

  • __construct ()
    Charge les module aca specifique au porduits.
  • display_view ($pID, $class='')
    Affiche module elemennt html.
  • display_view_min ($cID, $class='')
    Affiche module display_view mini.
  • display_titre ($cID, $format='$s')
    Affiche bock titre client notifié.

Static Public Member Functions

Static Protected Attributes


Detailed Description

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


Constructor & Destructor Documentation

generic::__construct (  ) 

Charge les module aca specifique au porduits.

Reimplemented from page.

Definition at line 26 of file page.generic.php.

00026                          {
00027     global $language, $page, $lang;
00028     $this-> name='generic';
00029     $this-> generics_id='';
00030     $this-> image_handler='';
00031     $this->modules=array();
00032 
00033     foreach(parent::initialise_type('MODULE_GENERIC_INSTALLED','generic') 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

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

Affiche bock titre client notifié.

Parameters:
$cID int
$format string for sprintf

Definition at line 126 of file page.generic.php.

00126                                                   {
00127       $c='';
00128       foreach ($this->modules as $key=>$module) {
00129         if (($module->enabled)  and (method_exists($module, 'display_titre' ))) {
00130           $this->modules[$key]->load_db_values($cID);
00131           $c .=$this->modules[$key]->display_titre($format);
00132         }
00133       }
00134       return $c;
00135   }

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

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 72 of file page.generic.php.

00072                                               {
00073     global  $page;
00074     if (!empty($class)) {
00075       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'display_view' ))){
00076         $this->modules[$class]->load_db_values($pID);
00077         return $this->modules[$class]->display_view($pID);
00078       }
00079     } else {
00080        $c='';
00081       if(isset($this->modules) && is_array($this->modules))
00082       foreach ($this->modules as $key=>$module) {
00083         if (($module->enabled)  and (method_exists($module, 'display_view' ))) {
00084           $this->modules[$key]->load_db_values($pID);
00085           $c .=$this->modules[$key]->display_view($pID);
00086         }
00087       }
00088       return $c;
00089     }
00090   }

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

Affiche module display_view mini.

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 100 of file page.generic.php.

00100                                                   {
00101     global  $page;
00102     if (!empty($class)) {
00103       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'display_view_min' ))){
00104         $this->modules[$class]->load_db_values($cID);
00105         return $this->modules[$class]->display_view_min($cID);
00106       }
00107     } else {
00108        $c='';
00109       foreach ($this->modules as $key=>$module) {
00110         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00111           $this->modules[$key]->load_db_values($cID);
00112           $c .=$this->modules[$key]->display_view_min($cID);
00113         }
00114       }
00115       return $c;
00116     }
00117   }

generic::getInstance ( full = false  )  [static]
Parameters:
$full 

Definition at line 48 of file page.generic.php.

00048                                                   {
00049     if(self::$_instance == null) self::$_instance = new self($full);
00050     return self::$_instance;
00051   }

generic::resetInstance (  )  [static]

Definition at line 56 of file page.generic.php.

00056                                         {
00057     self::$_instance = null;
00058     return self::getInstance();
00059   }


Member Data Documentation

generic::$_instance [static, protected]

object

Reimplemented from page.

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


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