Ejemplo n.º 1
0
 /**
  *
  * Cexample constructor
  *
  */
 function __construct($id, $array = array())
 {
     parent::__construct(TABLE_EXAMPLE);
     $tab = $this->select_for_constructor($id, $array);
     $suffix = $this->get_m_suffixe();
     $this->set_m_id($tab[$suffix . "_ID"]);
     $this->set_m_firstname($tab[$suffix . "_FIRSTNAME"]);
     $this->set_m_name($tab[$suffix . "_NAME"]);
     $this->set_m_age($tab[$suffix . "_AGE"]);
 }
Ejemplo n.º 2
0
 /**
  *
  * CController_main constructor
  *
  */
 function __construct()
 {
     global $GLOBAL_ARR_URL;
     parent::__construct(null);
     $this->m_action = "";
     $this->m_arr_error = $this->m_arr_warning = $this->m_arr_info = $this->m_arr_success = array();
     $this->m_title_error = $this->m_title_warning = $this->m_title_success = $this->m_title_info = "";
     $_SESSION['debug'] = false;
     $this->init();
     $this->m_b_lock = false;
 }
 function __construct()
 {
     parent::__construct(null);
 }