PHP 클래스 Spot\Adapter\AdapterAbstract

파일 보기 프로젝트 열기: vlucas/spot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_connection Connection details
$_dsn
$_dsnParts
$_format_date Format for date columns, formatted for PHP's date() function
$_format_datetime
$_format_time
$_options

공개 메소드들

메소드 설명
__construct ( mixed $dsn, array $options = [] )
date ( $format = null ) : object Get date
dateFormat ( ) : string Get database format
dateTime ( $format = null ) : object Get datetime
dateTimeFormat ( ) : string Get database format
parseDSN ( string $dsn ) : array Taken from PHPUnit 3.4:
time ( $format = null ) : object Get database time format
timeFormat ( ) : string Get database time format

보호된 메소드들

메소드 설명
dateTimeObject ( $format ) : DateTime Turn formstted date into timestamp Also handles input timestamps

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $dsn, array $options = [] )
$dsn mixed DSN string or pre-existing Mongo object
$options array

date() 공개 메소드

Get date
public date ( $format = null ) : object
리턴 object DateTime

dateFormat() 공개 메소드

Get database format
public dateFormat ( ) : string
리턴 string Date format for PHP's date() function

dateTime() 공개 메소드

Get datetime
public dateTime ( $format = null ) : object
리턴 object DateTIme

dateTimeFormat() 공개 메소드

Get database format
public dateTimeFormat ( ) : string
리턴 string DateTime format for PHP's date() function

dateTimeObject() 보호된 메소드

Turn formstted date into timestamp Also handles input timestamps
protected dateTimeObject ( $format ) : DateTime
리턴 DateTime object

parseDSN() 공개 정적인 메소드

Taken from PHPUnit 3.4:
public static parseDSN ( string $dsn ) : array
$dsn string Data Source Name to be parsed
리턴 array an associative array with the following keys: + adapter: Database backend used in PHP (mysql, odbc etc.) + dbsyntax: Database used with regards to SQL syntax etc. + protocol: Communication protocol to use (tcp, unix etc.) + host: Host specification (hostname[:port]) + database: Database to use on the DBMS server + username: User name for login + password: Password for login

time() 공개 메소드

Get database time format
public time ( $format = null ) : object
리턴 object DateTime

timeFormat() 공개 메소드

Get database time format
public timeFormat ( ) : string
리턴 string Time format for PHP's date() function

프로퍼티 상세

$_connection 보호되어 있는 프로퍼티

Connection details
protected $_connection

$_dsn 보호되어 있는 프로퍼티

protected $_dsn

$_dsnParts 보호되어 있는 프로퍼티

protected $_dsnParts

$_format_date 보호되어 있는 프로퍼티

Format for date columns, formatted for PHP's date() function
protected $_format_date

$_format_datetime 보호되어 있는 프로퍼티

protected $_format_datetime

$_format_time 보호되어 있는 프로퍼티

protected $_format_time

$_options 보호되어 있는 프로퍼티

protected $_options