FileMaker object constructor.
FileMaker
FileMaker
([string $database = NULL], [string $hostspec = NULL], [string $username = NULL], [string $password = NULL])
-
string
$database: The name of the database to use
-
string
$hostspec: Hostspec to use
-
string
$username: Username to login into database as
-
string
$password: Password for username
Creates a new FileMaker_Record object. This method does not
save the new record to the database. The record is not created on the server until you call its commit() method. You must specify a layout name, and you can optionally specify an array of field values. Values can be set on the new record object individually as well.
-
string
$layout: The layout to create a new record for.
-
array
$fieldValues: Initial values for the new record's fields.
Returns the API version.
string
getAPIVersion
()
Get the data for a given container field.
string
getContainerData
(string $url)
-
string
$url: The location of the data.
Get a Layout object describing $layout.
-
string
$layout: The name of the layout to describe.
Return the minimum server version this API will work with.
string
getMinServerVersion
()
Get an associative array of property name => property value for all current properties and the values currently in effect. This allows introspection and debugging when necessary.
array
getProperties
()
Returns the currently set value of $prop.
string
getProperty
(string $prop)
-
string
$prop: The name of the property.
Returns a single FileMaker_Record object matching the given layout and record ID, or a FileMaker_Error object if the fetch fails.
-
string
$layout: The layout $recordId is in.
-
integer
$recordId: The record id to fetch.
Test for whether or not a variable is a FileMaker API Error.
boolean
isError
(mixed $variable)
Obtain a list of databases that are available with the current server settings and the current username and password credentials.
Obtain a list of layouts from the current database that are available with the current server settings and the current username and password credentials.
Obtain a list of scripts from the current database that are available with the current server settings and the current username and password credentials.
Create a new FileMaker_Command_Add object.
-
string
$layout: The layout to add to.
-
array
$values: A hash of fieldname => value pairs. Repetions can be set by making the value for a field a numerically indexed array, with the numeric keys corresponding to the repetition number to set.
Create a new FileMaker_Compound_Find_Set object.
FileMaker_Compound_Find_Set
&newCompoundFindCommand
(string $layout)
-
string
$layout: The layout to find records in.
Create a new FileMaker_Command_Delete object.
-
string
$layout: The layout to delete from.
-
integer
$recordId: The id of the record to delete.
Create a new FileMaker_Command_Duplicate object.
-
string
$layout: The layout the record to duplicate is in.
-
integer
$recordId: The id of the record to duplicate.
Create a new FileMaker_Command_Edit object.
FileMaker_Command_Edit
&newEditCommand
(
string $layout,
integer $recordId, [
mixed $updatedValues =
array()],
array $values)
-
string
$layout: The layout the record is part of.
-
integer
$recordId: The id of the record to edit.
-
array
$values: A hash of fieldname => value pairs. Repetions can be set by making the value for a field a numerically indexed array, with the numeric keys corresponding to the repetition number to set.
Create a new FileMaker_Command_FindAll object.
-
string
$layout: The layout to find all records in.
Create a new FileMaker_Command_FindAny object.
-
string
$layout: The layout to find a random record from.
Create a new FileMaker_Command_Find object.
-
string
$layout: The layout to find records in.
Create a new FileMaker_Command_FindRequest object. Each of these individual finds are added to a Compound Find Set.
-
string
$layout: The layout to find records in.
Create a new FileMaker_Command_PerformScript object.
-
string
$layout: The layout to use for script context.
-
string
$scriptName: The name of the script to run.
-
string
$scriptParameters: Any parameters to pass to the script.
Associate a PEAR Log object with the API for logging requests and responses.
void
setLogger
(Log &$logger)
Set $prop to a new value for all API calls.
void
setProperty
(string $prop, string $value)
-
string
$prop: The name of the property
-
string
$value: Its new value.