samples/PhotoAlbum/lib/rb.php
private static function checkDSN($dsn) {
		$dsn = trim($dsn);
		$dsn = strtolower($dsn);
		if (
					 strpos($dsn, 'mysql:')!==0
				  && strpos($dsn,'sqlite:')!==0
				  && strpos($dsn,'pgsql:')!==0
				  && strpos($dsn,'cubrid:')!==0
				  && strpos($dsn,'oracle:')!==0
		) {
			trigger_error('Unsupported DSN');
		}
		else {
			return true;
		}
	}
private static function checkDSN($dsn) {
		$dsn = trim($dsn);
		$dsn = strtolower($dsn);
		if (
					 strpos($dsn, 'mysql:')!==0
				  && strpos($dsn,'sqlite:')!==0
				  && strpos($dsn,'pgsql:')!==0
				  && strpos($dsn,'cubrid:')!==0
				  && strpos($dsn,'oracle:')!==0
		) {
			trigger_error('Unsupported DSN');
		}
		else {
			return true;
		}
	}
private static function checkDSN ( $ dsn ) { $ dsn = trim ( $ dsn ) ; $ dsn = strtolower ( $ dsn ) ; if ( strpos ( $ dsn , 'mysql:' ) !== 0 && strpos ( $ dsn , 'sqlite:' ) !== 0 && strpos ( $ dsn , 'pgsql:' ) !== 0 && strpos ( $ dsn , 'cubrid:' ) !== 0 && strpos ( $ dsn , 'oracle:' ) !== 0 ) { trigger_error ( 'Unsupported DSN' ) ; } else { return true ; } }
This method checks the DSN string. If the DSN string contains a
database name that is not supported by RedBean yet then it will
throw an exception RedBean_Exception_NotImplemented. In any other
case this method will just return boolean TRUE.
@throws RedBean_Exception_NotImplemented
@param string $dsn
@return boolean $true
This method checks the DSN string . If the DSN string contains a database name that is not supported by RedBean yet then it will throw an exception RedBean_Exception_NotImplemented . In any other case this method will just return boolean TRUE .