Example #1
0
 /**
  * @param null $country_name
  */
 public function __construct($country_name = null)
 {
     $this->country = $country_name;
     if (!isset($db)) {
         $db = MySqliDb::getInstance();
         $this->db = $db;
     }
 }
Example #2
0
 public function __construct()
 {
     if (!isset($db)) {
         $db = MySqliDb::getInstance();
         $this->db = $db;
     }
     $this->greateXML();
 }
Example #3
0
 public function __construct($country_id = null, $post = null)
 {
     $this->country = $country_id;
     $this->post = $post;
     if (!isset($db)) {
         $db = MySqliDb::getInstance();
         $this->db = $db;
     }
 }
Example #4
0
 public function __construct($point_id = null)
 {
     $this->point = $point_id;
     if (!isset($db)) {
         $db = MySqliDb::getInstance();
         $this->db = $db;
     }
     if ($_POST['centr']) {
         $this->target_dir = 'images/index/';
     } else {
         $this->target_dir = 'images/gallery/';
     }
     $this->insertId = null;
 }
 /**
  * Initialize TagEngine - Load database instance
  */
 public function __construct()
 {
     $this->db = MySqliDb::getInstance();
 }