/** * @param null $country_name */ public function __construct($country_name = null) { $this->country = $country_name; if (!isset($db)) { $db = MySqliDb::getInstance(); $this->db = $db; } }
public function __construct() { if (!isset($db)) { $db = MySqliDb::getInstance(); $this->db = $db; } $this->greateXML(); }
public function __construct($country_id = null, $post = null) { $this->country = $country_id; $this->post = $post; if (!isset($db)) { $db = MySqliDb::getInstance(); $this->db = $db; } }
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(); }