메소드 |
설명 |
|
__construct ( $key, $secret ) |
Constructor. Creates authenticated access to Factual. |
|
boost ( $factualBoost ) : object |
Improves search results by associating query with selected record |
|
buildQuery ( $tableName, $query ) : string |
Build query string without running fetch |
|
clear ( $clear ) : object |
Clear a/n attribute/s from a Factual entity |
|
debug ( ) |
Turns on debugging for output to stderr |
|
factualAutoload ( $className ) |
Autoloader for file dependencies
Called by spl_autoload_register() to avoid conflicts with autoload() methods from other libs |
|
factualReverseGeocode ( $point, $tableName = "places" ) : the |
Reverse geocodes by returning a response containing the address nearest a given point. |
|
fetch ( $tableName, $query ) : object |
Factual Fetch Abstraction |
|
fetchRow ( string $tableName, $factualID ) : the |
Runs a read query against the specified Factual table. |
|
flag ( $flagger ) : object |
Flags entties as problematic |
|
geocode ( $address ) : array |
Geocodes address string or placename |
|
geocoderDiagnostics ( ) |
|
|
match ( $tableName, $vars ) : object |
Matches entity to Factual ID (shortcut method) |
|
multiFetch ( ) : response |
Use this to send all queued reads as a multi request |
|
multiQueue ( $table, $query, $handle ) |
Queue a request for inclusion in a multi request. |
|
rawGet ( $path, $params ) : string |
Runs a GET request against the specified endpoint path, using the given
parameters and your OAuth credentials. Returns the raw response body
returned by Factual. The necessary URL base will be automatically prepended to path. If
you need to change it, e.g. to make requests against a development instance of
the Factual service, use Factual::setFactHome(). |
|
rawPost ( $path, $body, $params = null ) : string |
Runs a GET request against the specified endpoint path, using the given
parameters and your OAuth credentials. Returns the raw response body
returned by Factual. The necessary URL base will be automatically prepended to path. If
you need to change it, e.g. to make requests against a development instance of
the Factual service, use Factual::setFactHome(). |
|
resolve ( $tableName, $vars ) : object |
Resolves and returns resolved entity or null (shortcut method) |
|
reverseGeocode ( $lon, $lat ) : array |
Reverse geocodes long/lat to the smallest bounding WOEID |
|
schema ( $tableName ) : object |
|
|
setConnectTimeout ( $secs ) |
Sets maximum number of seconds to connect to the server before bailing |
|
setCurlTimeout ( $secs ) |
Sets maximum number of seconds to the network function to execute |
|
setFactHome ( $urlBase ) : void |
Change the base URL at which to contact Factual's API. This
may be useful if you want to talk to a test or staging
server withou changing config
Example value: http://staging.api.v3.factual.com/t/ |
|
submit ( $submittor ) : object |
Submit data to Factual |
|
version ( ) : string |
Gets driver version |
|