예제 #1
0
 function __construct()
 {
     $this->m_articles = M_Articles::Instance();
     $this->mysql = MSQL::Instance();
     $this->m_users = M_Users::Instance();
     parent::__construct();
 }
예제 #2
0
 public static function Instance()
 {
     if (self::$instance == null) {
         self::$instance = new MSQL();
     }
     return self::$instance;
 }
예제 #3
0
파일: M_Users.php 프로젝트: mavz49/mavz
 public function __construct()
 {
     $this->msql = MSQL::Instance();
     $this->sid = null;
     $this->uid = null;
     $this->onlineMap = null;
 }
예제 #4
0
 function __construct()
 {
     $this->mysql = MSQL::Instance();
     $this->m_users = M_Users::Instance();
     $this->form_art = array();
     parent::__construct();
 }
예제 #5
0
파일: MSQL.php 프로젝트: popytka008/users
 /**
  * MSQL constructor.
  */
 protected function __construct()
 {
     if (!$this->_connection) {
         $this->_connection = mysql_connect('localhost:3306', 'root', '');
         mysql_select_db('documents');
     }
     self::$_instance = $this;
 }
예제 #6
0
 public function __construct()
 {
     $this->msql = MSQL::Instance();
     // Создание одиночного объекта MSQL
     $this->sid = null;
     // Присвоение null для идентификатора текущей сессии
     $this->uid = null;
     // Присвоение null для идентификатора текущего пользователя
 }
예제 #7
0
파일: M_Type.php 프로젝트: mavz49/mavz
 public function __construct()
 {
     $this->msql = MSQL::Instance();
     $this->mUsers = M_Users::Instance();
 }
예제 #8
0
파일: M_Sms.php 프로젝트: ninetw/chsuinfo
 public function __construct()
 {
     $this->msql = MSQL::Instance();
 }
예제 #9
0
 /**
  * Brief Description.
  * Complete Description.
  *
  * @param $msg (tipo) desc
  *
  * @returns (tipo) desc
  *
  */
 private function handlerDb($msg)
 {
     $login = Manager::getLogin();
     $uid = $login ? $login->getLogin() : '';
     $ts = Manager::getSysTime();
     $db = Manager::getDatabase('manager');
     $idLog = $db->getNewId('seq_manager_log');
     $sql = new MSQL('idlog, timestamp, login, msg, host', 'manager_log');
     $db->execute($sql->insert(array($idLog, $ts, $uid, $msg, $this->host)));
 }
예제 #10
0
파일: M_VK.php 프로젝트: ninetw/chsuinfo
 public function __construct()
 {
     $this->msql = MSQL::Instance();
     //логинимся
     $this->token = $this->OAuth(LOGIN, PASSWORD);
 }
예제 #11
0
파일: M_Rasp.php 프로젝트: ninetw/chsuinfo
 public function __construct()
 {
     $this->msql = MSQL::Instance();
     $this->_year = date("Y");
     $this->_month = date("n");
 }
예제 #12
0
 private function __construct()
 {
     $this->mysql = MSQL::Instance();
 }