메소드 |
설명 |
|
__construct ( connection $connection, $associations_table = null, $nonces_table = null ) |
This creates a new SQLStore instance. It requires an
established database connection be given to it, and it allows
overriding the default table names. |
|
_add_nonce ( $server_url, $timestamp, $salt ) |
|
|
_fixSQL ( ) |
|
|
_get_assoc ( $server_url, $handle ) |
|
|
_get_assocs ( $server_url ) |
|
|
_octify ( $str ) |
"Octifies" a binary string by returning a string with escaped
octal bytes. This is used for preparing binary data for
PostgreSQL BYTEA fields. |
|
_set_assoc ( $server_url, $handle, $secret, $issued, $lifetime, $assoc_type ) |
|
|
_unoctify ( $str ) |
"Unoctifies" octal-escaped data from PostgreSQL and returns the
resulting ASCII (possibly binary) string. |
|
_verifySQL ( ) |
|
|
blobDecode ( $blob ) |
|
|
blobEncode ( $str ) |
|
|
cleanupAssociations ( ) |
|
|
cleanupNonces ( ) |
|
|
createTables ( ) |
|
|
create_assoc_table ( ) |
|
|
create_nonce_table ( ) |
|
|
getAssociation ( $server_url, $handle = null ) |
|
|
isError ( $value ) |
Returns true if $value constitutes a database error; returns
false otherwise. |
|
removeAssociation ( $server_url, $handle ) |
|
|
reset ( ) |
Resets the store by removing all records from the store's
tables. |
|
resultToBool ( $obj ) |
Converts a query result to a boolean. If the result is a
database error according to $this->isError(), this returns
false; otherwise, this returns true. |
|
setSQL ( ) |
This method should be overridden by subclasses. This method is
called by the constructor to set values in $this->sql, which is
an array keyed on sql name. |
|
storeAssociation ( $server_url, $association ) |
|
|
tableExists ( $table_name ) |
|
|
useNonce ( $server_url, $timestamp, $salt ) |
|
|