function __construct() { $this->m_articles = M_Articles::Instance(); $this->mysql = MSQL::Instance(); $this->m_users = M_Users::Instance(); parent::__construct(); }
public static function Instance() { if (self::$instance == null) { self::$instance = new MSQL(); } return self::$instance; }
public function __construct() { $this->msql = MSQL::Instance(); $this->sid = null; $this->uid = null; $this->onlineMap = null; }
function __construct() { $this->mysql = MSQL::Instance(); $this->m_users = M_Users::Instance(); $this->form_art = array(); parent::__construct(); }
/** * MSQL constructor. */ protected function __construct() { if (!$this->_connection) { $this->_connection = mysql_connect('localhost:3306', 'root', ''); mysql_select_db('documents'); } self::$_instance = $this; }
public function __construct() { $this->msql = MSQL::Instance(); // Создание одиночного объекта MSQL $this->sid = null; // Присвоение null для идентификатора текущей сессии $this->uid = null; // Присвоение null для идентификатора текущего пользователя }
public function __construct() { $this->msql = MSQL::Instance(); $this->mUsers = M_Users::Instance(); }
public function __construct() { $this->msql = MSQL::Instance(); }
/** * 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))); }
public function __construct() { $this->msql = MSQL::Instance(); //логинимся $this->token = $this->OAuth(LOGIN, PASSWORD); }
public function __construct() { $this->msql = MSQL::Instance(); $this->_year = date("Y"); $this->_month = date("n"); }
private function __construct() { $this->mysql = MSQL::Instance(); }