function __construct() { $this->url = ConnectionUtils::getUrl(); }
function __construct() { $this->dbConn = ConnectionUtils::getDbConnection(); }
public static function getDbConnection() { AppConfig::initConfig(); return self::$dbConn = mysqli_connect(AppConfig::$connection["mysql"]["host"], AppConfig::$connection["mysql"]["user"], AppConfig::$connection["mysql"]["password"], AppConfig::$connection["mysql"]["dbname"]); }
public static function getUrl() { AppConfig::initConfig(); return self::$url = 'http://' . AppConfig::$connection["elastic"]["host"] . ':' . AppConfig::$connection["elastic"]["port"] . '/' . AppConfig::$connection["elastic"]["index"] . '/' . AppConfig::$connection["elastic"]["type"] . "/_search"; }