Adds a criterion to this Find command.
void
addFindCriterion
(string $fieldname, string $testvalue)
-
string
$fieldname: Name of the field being tested.
-
string
$testvalue: Value of field to test against.
Adds a sorting rule to this Find command.
void
addSortRule
(string $fieldname, integer $precedence, [mixed $order = null])
-
string
$fieldname: Name of the field to sort by.
-
integer
$precedence: Integer from 1 to 9, inclusive. A value of 1 sorts records based on this sorting rule first, a value of 2 sorts records based on this sorting rule only when two or more records have the same value after the first sorting rule is applied, and so on.
-
mixed
$order: Direction of the sort. Specify the FILEMAKER_SORT_ASCEND constant, the FILEMAKER_SORT_DESCEND constant, or the name of a value list specified as a string.
Clears all existing criteria from this Find command.
void
clearFindCriteria
()
Clears all existing sorting rules from this Find command.
void
clearSortRules
()
Returns the current range settings.
array
getRange
()
Returns the current settings for the related records filter and the maximum number of related records to return.
array
getRelatedSetsFilters
()
Specifies how the find criteria in this Find command are combined as either a logical AND or OR search.
If not specified, the default is a logical AND.
void
setLogicalOperator
(integer $operator)
-
integer
$operator: Specify the FILEMAKER_FIND_AND or FILEMAKER_FIND_OR constant.
Sets a range to request only part of the result set.
void
setRange
(integer $skip, [integer $max = null])
-
integer
$skip: Number of records to skip past. Default is 0.
-
integer
$max: Maximum number of records to return. Default is all.
Sets a filter to restrict the number of related records to return from a portal.
The filter limits the number of related records returned by respecting the settings specified in the FileMaker Pro Portal Setup dialog box.
void
setRelatedSetsFilters
(string $relatedsetsfilter, [string $relatedsetsmax = null])
-
string
$relatedsetsfilter: Specify one of these values to control filtering:
- 'layout': Apply the settings specified in the FileMaker Pro
Portal Setup dialog box. The records are sorted based
on the sort defined in the Portal Setup dialog box,
with the record set filtered to start with the
specified "Initial row."
- 'none': Return all related records in the portal without
filtering or presorting them.
-
string
$relatedsetsmax: If the "Show vertical scroll bar" setting is enabled in the Portal Setup dialog box, specify one of these values:
- an integer value: Return this maximum number of related records
after the initial record.
- 'all': Return all of the related records in the portal.
If "Show vertical scroll bar" is disabled, the Portal
Setup dialog box's "Number of rows" setting determines
the maximum number of related records to return.
Inherited Methods
Inherited From FileMaker_Command
FileMaker_Command::execute()
FileMaker_Command::setPreCommandScript()
FileMaker_Command::setPreSortScript()
FileMaker_Command::setRecordClass()
FileMaker_Command::setRecordId()
FileMaker_Command::setResultLayout()
FileMaker_Command::setScript()
FileMaker_Command::validate()