Ejemplo n.º 1
0
 public static function Instance()
 {
     if (self::$instance == null) {
         self::$instance = new M_Mysql();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->sid = null;
     $this->uid = null;
     //$this->onlineMap = null;
 }
Ejemplo n.º 3
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->m_functions = M_Functions::Instance();
     $this->m_posts2categories = M_Posts2Categories::Instance();
     $this->m_postmeta = M_Postmeta::Instance();
     $this->table_post = DB_PREF . 'posts';
 }
Ejemplo n.º 4
0
 public function Load_Options()
 {
     $m_mysql = M_Mysql::Instance();
     $query = "SELECT * FROM `{$this->table_options}`";
     $var_options = $m_mysql->Select($query);
     $options = array();
     foreach ($var_options as $option) {
         $options[$option['option_name']] = $option['option_value'];
     }
     return $options;
 }
Ejemplo n.º 5
0
 function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->table_post2category = DB_PREF . 'post2category';
     $this->table_posts = DB_PREF . 'posts';
 }
Ejemplo n.º 6
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->m_functions = M_Functions::Instance();
 }
Ejemplo n.º 7
0
 function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
 }
Ejemplo n.º 8
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->m_functions = M_Functions::Instance();
     $this->table_orders = DB_PREF . 'orders';
 }
Ejemplo n.º 9
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->m_functions = M_Functions::Instance();
     $this->table_categories = DB_PREF . 'categories';
 }
Ejemplo n.º 10
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->m_functions = M_Functions::Instance();
     $this->table_handbags = DB_PREF . 'handbags';
 }
Ejemplo n.º 11
0
 private function __construct()
 {
     $this->m_mysql = M_Mysql::Instance();
     $this->postmeta = DB_PREF . 'postmeta';
 }