| /plugin/elasticsearch/vendor/nyholm/dsn/src/ |
| D | DsnParser.php | 33 public static function parseFunc(string $dsn): DsnFunction argument 37 if (1 === preg_match(self::FUNCTION_REGEX, $dsn, $matches)) { 43 $arguments = $dsn; 47 …throw new SyntaxException($dsn, 'dsn' === $functionName ? 'The DSN is empty' : 'A function must ha… 64 public static function parse(string $dsn): Dsn argument 66 if (1 === preg_match(self::FUNCTION_REGEX, $dsn, $matches)) { 70 throw new FunctionsNotAllowedException($dsn); 73 return self::getDsn($dsn); 76 public static function parseUrl(string $dsn): Url argument 78 $dsn = self::parse($dsn); [all …]
|
| /plugin/sentry/ |
| D | helper.php | 21 $dsn = []; 22 $dsn['protocol'] = $parts['scheme']; 23 $dsn['public'] = $parts['user']; 24 $dsn['secret'] = $parts['pass']; 25 $dsn['project'] = (int)basename($parts['path']); 26 $dsn['url'] = $parts['host']; 27 if (!empty($parts['port'])) $dsn['url'] .= ':' . $parts['port']; 34 $dsn['path'] = $path; 36 return $dsn; 46 $dsn = $this->parseDSN(); [all …]
|
| /plugin/elasticsearch/vendor/ruflin/elastica/src/ |
| D | ClientConfiguration.php | 79 $dsn = $func->first(); 80 $clientConfiguration = self::fromArray(self::parseDsn($dsn)); 172 private static function parseDsn(Url $dsn): array argument 174 $data = ['host' => $dsn->getHost()]; 176 if (null !== $dsn->getScheme()) { 177 $data['transport'] = $dsn->getScheme(); 180 if (null !== $dsn->getUser()) { 181 $data['username'] = $dsn->getUser(); 184 if (null !== $dsn->getPassword()) { 185 $data['password'] = $dsn->getPassword(); [all …]
|
| /plugin/sql/ |
| D | DB.php | 17 function __construct($dsn, $username="", $password="", $driver_options=array()) { argument 18 parent::__construct($dsn,$username,$password, $driver_options); 60 static function &connect($dsn, $options = array()) argument 62 if (! is_array($dsn) && strpos($dsn,'//')) { 63 $parts = explode('/', $dsn); 68 $dsn = $dsna; 70 …if (is_array($dsn)) $obj = new MDB3($dsn['phptype'].':host='.$dsn['hostspec'].';dbname='.$dsn['dat… 71 else $obj = new MDB3($dsn); 73 $obj->dsn = $dsn;
|
| /plugin/elasticsearch/vendor/nyholm/dsn/src/Exception/ |
| D | DsnTypeNotSupported.php | 15 * @param Dsn|string $dsn 17 public static function onlyUrl($dsn): self argument 19 return new self((string) $dsn, 'Only DSNs of type "URL" is supported.'); 23 * @param Dsn|string $dsn 25 public static function onlyPath($dsn): self argument 27 return new self((string) $dsn, 'Only DSNs of type "path" is supported.');
|
| D | InvalidDsnException.php | 17 private $dsn; variable in Nyholm\\Dsn\\Exception\\InvalidDsnException 19 public function __construct(string $dsn, string $message) argument 21 $this->dsn = $dsn; 22 parent::__construct(sprintf('%s (%s)', $message, $dsn)); 27 return $this->dsn;
|
| D | FunctionsNotAllowedException.php | 14 public function __construct(string $dsn) argument 16 parent::__construct($dsn, 'Function are not allowed in this DSN');
|
| D | FunctionNotSupportedException.php | 19 public function __construct(string $dsn, string $function, ?string $message = null) argument 21 parent::__construct($dsn, $message ?? sprintf('Function "%s" is not supported', $function));
|
| /plugin/elasticsearch/vendor/nyholm/dsn/ |
| D | README.md | 3 …n](https://img.shields.io/github/release/Nyholm/dsn.svg?style=flat-square)](https://github.com/Nyh… 4 …ttps://img.shields.io/scrutinizer/g/Nyholm/dsn.svg?style=flat-square)](https://scrutinizer-ci.com/… 6 …ttps://img.shields.io/packagist/dt/nyholm/dsn.svg?style=flat-square)](https://packagist.org/packag… 16 composer require nyholm/dsn 24 $dsn = DsnParser::parse('http://127.0.0.1/foo/bar?key=value'); 25 echo get_class($dsn); // "Nyholm\Dsn\Configuration\Url" 26 echo $dsn->getHost(); // "127.0.0.1" 27 echo $dsn->getPath(); // "/foo/bar" 28 echo $dsn->getPort(); // null 65 $dsn = DsnParser::parse('scheme://127.0.0.1/foo/bar?key=value'); [all …]
|
| D | CHANGELOG.md | 19 * DsnParser::parseUrl(string $dsn): Url 20 * DsnParser::parsePath(string $dsn): Path 35 $dsn = new \Nyholm\DSN('mysql://localhost'); 38 $dsn = new \Nyholm\Dsn\DsnParser::parse('mysql://localhost');
|
| /plugin/dbquery/ |
| H A D | helper.php | 38 * @param string|null $dsn 43 public function getPDO($dsn = null, $user = null, $pass = null) argument 47 $dsn = $dsn ?: $this->getConf('dsn'); 51 $dsn = str_replace( 54 $dsn 56 $conid = md5($dsn . $user . $pass); 66 $this->pdo[$conid] = new PDO($dsn, $user, $pass, $opts); 84 [$dsn, $user, $pass] = $this->getDSN($dsnalias); 85 $pdo = $this->getPDO($dsn, $user, $pass);
|
| /plugin/strata/driver/ |
| D | driver.php | 88 * @param dsn string the dsn to use for connecting 91 public function connect($dsn) { argument 92 $this->_dsn = $dsn; 94 $this->_db = $this->initializePDO($dsn); 97 … msg(sprintf($this->util->getLang('driver_failed_detail'), hsc($dsn), hsc($e->getMessage())), -1); 110 * @param dsn string the dsn to use for construction 113 protected function initializePDO($dsn) { argument 118 return new PDO($dsn, $credentials[0], $credentials[1]);
|
| /plugin/authphpbb3/ |
| D | auth.php | 593 $dsn = ''; 598 $dsn = ':host=' . $this->_phpbb_conf['dbhost'] . $port . 604 $dsn = 'mysql' . $dsn . ';charset=utf8'; 606 $dsn, 611 $dsn = 'pgsql' . $dsn . 614 $this->_phpbb_sql_link = new PDO($dsn); 618 $dsn = 'oci' . $dsn . ';charset=utf8'; 620 $dsn, 633 … $dsn = $host . ':' . $this->_phpbb_conf['root_path'] . $this->_phpbb_conf['dbhost']; 634 $this->_phpbb_sql_link = new PDO($dsn);
|
| /plugin/davcal/vendor/sabre/dav/bin/ |
| H A D | migrateto21.php | 57 $dsn = $argv[1]; variable 61 echo "Connecting to database: " . $dsn . "\n"; 63 $pdo = new PDO($dsn, $user, $pass);
|
| H A D | migrateto30.php | 56 $dsn = $argv[1]; variable 60 echo "Connecting to database: " . $dsn . "\n"; 62 $pdo = new PDO($dsn, $user, $pass);
|
| H A D | migrateto20.php | 56 $dsn = $argv[1]; variable 60 echo "Connecting to database: " . $dsn . "\n"; 62 $pdo = new PDO($dsn, $user, $pass);
|
| H A D | migrateto17.php | 50 $dsn = $argv[1]; variable 54 echo "Connecting to database: " . $dsn . "\n"; 56 $pdo = new PDO($dsn, $user, $pass);
|
| /plugin/authwordpress/ |
| H A D | auth.php | 271 $dsn = array( 278 $dsn[] = 'port=' . $port; 280 $dsn = 'mysql:' . implode(';', $dsn); 282 $this->db = new PDO($dsn, $this->getConf('username'), $this->getConf('password'));
|
| /plugin/elasticsearch/helper/ |
| D | client.php | 76 $dsn = ['servers' => []]; 87 $dsn['servers'][] = [ 96 $this->elasticaClient = new Client($dsn);
|
| /plugin/yuriigantt/_test/Drivers/ |
| D | embedded.test.php | 74 $this->assertEquals($database->dsn, Embedded::DSN); 75 $this->assertEquals($database->dsn, Embedded::DSN);
|
| /plugin/database2/ |
| D | media.php | 115 list( $dsn, $authSlot, $table, $column, $idColumn, $rowid, $pageID, 148 public function __construct( $dsn, $authSlot, $table, $ioIndex, argument 152 if ( !$this->connect( $dsn, $authSlot ) ) 219 $db = new Database2_media( $dsn, $authSlot, $table, $ioIndex, $pageID );
|
| /plugin/pgsqlquery/ |
| D | syntax.php | 89 $dsn = "pgsql:host=$host;dbname=$DB;user=$user;password=$password"; 94 $link = new PDO($dsn);
|
| /plugin/elasticsearch/ |
| D | composer.lock | 182 "name": "nyholm/dsn", 186 "url": "https://github.com/Nyholm/dsn.git", 191 … "url": "https://api.github.com/repos/Nyholm/dsn/zipball/9445621b426bac8c0ca161db8cd700da00a4e618", 227 "dsn", 228 "dsn parser", 232 "issues": "https://github.com/Nyholm/dsn/issues", 233 "source": "https://github.com/Nyholm/dsn/tree/2.0.1" 434 "nyholm/dsn": "^2.0.0",
|
| /plugin/strata/helper/ |
| D | triples.php | 44 * @param dsn string an optional alternative DSN 49 $dsn = $this->getConf('default_dsn'); 50 $dsn = $this->_expandTokens($dsn); 52 $this->_dsn = $dsn; 55 list($driver,$connection) = explode(':',$dsn,2); 66 if(!$this->_db->connect($dsn)) {
|
| /plugin/yuriigantt/ |
| D | README.md | 46 "dsn": ":embedded:", 75 "dsn": ":embedded:", <-- says parser what database driver was used
|