account Class Reference

Class de la gestion de compte des customers les page account.php Prend en charge des extension de type 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

Class de la gestion de compte des customers les page account.php Prend en charge des extension de type aca.

Definition at line 33 of file page.account.php.


Constructor & Destructor Documentation

account::__construct (  )  [protected]

Reimplemented from page.

Definition at line 41 of file page.account.php.

00041                                    {
00042     global $language, $page, $lang;
00043 
00044     $this->name='account';
00045     $this->products_id='';
00046     $this->modules=array();
00047 
00048     foreach(parent::initialise_type('MODULE_ACCOUNT_INSTALLED','account') as $class){
00049       $cl[$class]=new $class ();
00050       $list_mod[$class] = $cl[$class]->sort_order;
00051       asort($list_mod);
00052       foreach($list_mod as $class=>$s){
00053         $this->modules[$class] =$cl[$class];
00054       }
00055       unset($cl);unset($list_mod);
00056     }
00057   }


Member Function Documentation

account::display_view ( cID,
class = '' 
)

Affiche module elemennt html.

cheche methode draw_html_xxx pour les sous modules et class enfants

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

Definition at line 95 of file page.account.php.

00095                                               {
00096     global  $page;
00097     if (!empty($class)) {
00098       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'display_view' ))){
00099         $this->modules[$class]->load_db_values($cID);
00100         return $this->modules[$class]->display_view($cID);
00101       }
00102     } else {
00103        $c=array();
00104       foreach ($this->modules as $key=>$module) {
00105         if (($module->enabled)  and (method_exists($module, 'display_view' ))) {
00106           $this->modules[$key]->load_db_values($cID);
00107           $c[]=$this->modules[$key]->display_view($cID);
00108         }
00109       }
00110       return $c;
00111     }
00112   }

account::display_view_button_action ( cID  ) 

Affiche Un bouton ou form d'action dans etxte ou tableau (rma in history_info).

  • int cID le Id du customers

Definition at line 179 of file page.account.php.

00179                                                   {
00180     global  $page;
00181     $c='';
00182       foreach ($this->modules as $key=>$module) {
00183         if (($module->enabled)  and (method_exists($module, 'display_view_button_action' ))) {
00184           $this->modules[$key]->load_db_values($cID);
00185           $c .=$this->modules[$key]->display_view_button_action($cID);
00186         }
00187       }
00188       return $c;
00189   }

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

Affiche module display_view mini.

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

Definition at line 120 of file page.account.php.

00120                                                   {
00121     global  $page;
00122     if (!empty($class)) {
00123       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_view_min' ))){
00124         $this->modules[$class]->load_db_values($cID);
00125         return $this->modules[$class]->display_view_min($cID);
00126       }
00127     } else {
00128        $c='';
00129       foreach ($this->modules as $key=>$module) {
00130         if (($module->enabled)  and (method_exists($module, 'display_view_min' ))) {
00131           $this->modules[$key]->load_db_values($cID);
00132           $c .=$this->modules[$key]->display_view_min($cID);
00133         }
00134       }
00135       return $c;
00136     }
00137   }

account::display_view_public ( cID,
class = '' 
)

Affiche module display_view public Les information membre public.

Module

Parameters:
$class string class le nom de la class appelé, ou vide pour toutes les class enfants
Returns:
string

Definition at line 155 of file page.account.php.

00155                                                      {
00156     global  $page;
00157     if (!empty($class)) {
00158       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($module, 'display_view_public' ))){
00159         $this->modules[$class]->load_db_values($cID);
00160         return $this->modules[$class]->display_view_public($cID);
00161       }
00162     } else {
00163        $c='';
00164       foreach ($this->modules as $key=>$module) {
00165         if (($module->enabled)  and (method_exists($module, 'display_view_public' ))) {
00166           $this->modules[$key]->load_db_values($cID);
00167           $c .=$this->modules[$key]->display_view_public($cID);
00168         }
00169       }
00170       return $c;
00171     }
00172   }

account::get_header ( class = '',
action = '' 
)

Definition at line 70 of file page.account.php.

00070                                                   {
00071     global  $page;
00072     if (!empty($class)) {
00073       if (isset($this->modules[$class]) && $this->modules[$class]->enabled and (method_exists($class, 'get_header' ))){
00074         return $this->modules[$class]->get_header($action);
00075       }
00076     } else {
00077        $c=array();
00078       foreach ($this->modules as $key=>$module) {
00079         if (($module->enabled)  and (method_exists($module, 'get_header' ))) {
00080           $c[]=$module->get_header($action);
00081         }
00082       }
00083       return $c;
00084     }
00085   }

static account::getInstance (  )  [static]

Reimplemented from page.

Definition at line 59 of file page.account.php.

Referenced by resetInstance().

00059                                        {
00060     if(self::$_instance == null) self::$_instance = new self();
00061     return self::$_instance;
00062   }

static account::resetInstance (  )  [static]

Definition at line 64 of file page.account.php.

00064                                         {
00065     self::$_instance = null;
00066     return self::getInstance();
00067   }


Member Data Documentation

account::$_instance [static, protected]

Reimplemented from page.

Definition at line 37 of file page.account.php.


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