314 lines
14 KiB
HTML

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs For Class FileMaker_Command_CompoundFind</title>
<link rel="stylesheet" href="../media/stylesheet.css" />
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
</head>
<body>
<div class="page-body">
<h2 class="class-name">Class FileMaker_Command_CompoundFind</h2>
<a name="sec-description"></a>
<div class="info-box">
<div class="info-box-title">Description</div>
<div class="nav-bar">
<span class="disabled">Description</span> |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Command class that performs multiple find requests, also known as a compound find set.</p>
<p class="description"><p>Requests are executed in the order specified in the add() method. The found set includes the results of the entire compound find request. Create this command with <a href="../FileMaker/FM.html#methodnewCompoundFindCommand">FileMaker::newCompoundFindCommand()</a>.</p></p>
<p class="notes">
Located in <a class="field" href="FMC_CompoundFind.php.html">/FileMaker/Command/CompoundFind.php</a> (line <span class="field">32</span>)
</p>
<pre><a href="../FileMaker/FMC.html">FileMaker_Command</a>
|
--FileMaker_Command_CompoundFind</pre>
</div>
</div>
<a name="sec-method-summary"></a>
<div class="info-box">
<div class="info-box-title">Method Summary</span></div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<div class="method-summary">
<div class="method-definition">
<span class="method-result">void</span>
<a href="#add" title="details" class="method-name">add</a>
(<span class="var-type">int</span>&nbsp;<span class="var-name">$precedence</span>, <span class="var-type">findrequest</span>&nbsp;<span class="var-name">$findrequest</span>)
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#addSortRule" title="details" class="method-name">addSortRule</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fieldname</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$precedence</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#clearSortRules" title="details" class="method-name">clearSortRules</a>
()
</div>
<div class="method-definition">
<span class="method-result">array</span>
<a href="#getRange" title="details" class="method-name">getRange</a>
()
</div>
<div class="method-definition">
<span class="method-result">array</span>
<a href="#getRelatedSetsFilters" title="details" class="method-name">getRelatedSetsFilters</a>
()
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setRange" title="details" class="method-name">setRange</a>
([<span class="var-type">integer</span>&nbsp;<span class="var-name">$skip</span> = <span class="var-default">0</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$max</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setRelatedSetsFilters" title="details" class="method-name">setRelatedSetsFilters</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$relatedsetsfilter</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$relatedsetsmax</span> = <span class="var-default">null</span>])
</div>
</div>
</div>
</div>
<a name="sec-methods"></a>
<div class="info-box">
<div class="info-box-title">Methods</div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
</div>
<div class="info-box-body">
<A NAME='method_detail'></A>
<a name="methodadd" id="add"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">add</span> (line <span class="line-number">63</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a Find Request object to this Compound Find command.</p>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
add
</span>
(<span class="var-type">int</span>&nbsp;<span class="var-name">$precedence</span>, <span class="var-type">findrequest</span>&nbsp;<span class="var-name">$findrequest</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$precedence</span><span class="var-description">: Priority in which the find requests are added to this compound find set.</span> </li>
<li>
<span class="var-type">findrequest</span>
<span class="var-name">$findrequest</span><span class="var-description">: FileMaker_FindRequest object to add to this compound find set.</span> </li>
</ul>
</div>
<a name="methodaddSortRule" id="addSortRule"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">addSortRule</span> (line <span class="line-number">81</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a sorting rule to this Compound Find command.</p>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
addSortRule
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fieldname</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$precedence</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$fieldname</span><span class="var-description">: Name of the field to sort by.</span> </li>
<li>
<span class="var-type">integer</span>
<span class="var-name">$precedence</span><span class="var-description">: 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.</span> </li>
<li>
<span class="var-type">mixed</span>
<span class="var-name">$order</span><span class="var-description">: 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.</span> </li>
</ul>
</div>
<a name="methodclearSortRules" id="clearSortRules"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">clearSortRules</span> (line <span class="line-number">89</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Clears all existing sorting rules from this Compound Find command.</p>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
clearSortRules
</span>
()
</div>
</div>
<a name="methodgetRange" id="getRange"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">getRange</span> (line <span class="line-number">114</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the current range settings.</p>
<ul class="tags">
<li><span class="field">return:</span> Associative array with two keys: 'skip' for the current skip setting, and 'max' for the current maximum number of records. If either key does not have a value, the returned value for that key is NULL.</li>
</ul>
<div class="method-signature">
<span class="method-result">array</span>
<span class="method-name">
getRange
</span>
()
</div>
</div>
<a name="methodgetRelatedSetsFilters" id="getRelatedSetsFilters"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">getRelatedSetsFilters</span> (line <span class="line-number">145</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the current settings for the related records filter and the maximum number of related records to return.</p>
<ul class="tags">
<li><span class="field">return:</span> Associative array with two keys: 'relatedsetsfilter' for the portal filter setting, and 'relatedsetsmax' for the maximum number of records. If either key does not have a value, the returned for that key is NULL.</li>
</ul>
<div class="method-signature">
<span class="method-result">array</span>
<span class="method-name">
getRelatedSetsFilters
</span>
()
</div>
</div>
<a name="methodsetRange" id="setRange"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setRange</span> (line <span class="line-number">101</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets a range to request only part of the result set.</p>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setRange
</span>
([<span class="var-type">integer</span>&nbsp;<span class="var-name">$skip</span> = <span class="var-default">0</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$max</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">integer</span>
<span class="var-name">$skip</span><span class="var-description">: Number of records to skip past. Default is 0.</span> </li>
<li>
<span class="var-type">integer</span>
<span class="var-name">$max</span><span class="var-description">: Maximum number of records to return. Default is all.</span> </li>
</ul>
</div>
<a name="methodsetRelatedSetsFilters" id="setRelatedSetsFilters"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">setRelatedSetsFilters</span> (line <span class="line-number">131</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets a filter to restrict the number of related records to return from a portal.</p>
<p class="description"><p>For more information, see the description for the <a href="../FileMaker/FMC_Find.html#methodsetRelatedSetsFilters">FileMaker_Command_Find::setRelatedSetsFilters()</a> method.</p></p>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setRelatedSetsFilters
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$relatedsetsfilter</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$relatedsetsmax</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$relatedsetsfilter</span><span class="var-description">: Specify either 'layout' or 'none' to control filtering.</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$relatedsetsmax</span><span class="var-description">: Maximum number of portal records to return.</span> </li>
</ul>
</div>
<h4>Inherited Methods</h4>
<a name='inherited_methods'><!-- --></a>
<!-- =========== Summary =========== -->
<p>Inherited From <span class="classname"><a href="../FileMaker/FMC.html">FileMaker_Command</a></span></p>
<blockquote>
<span class="method-name"><a href="../FileMaker/FMC.html#methodexecute">FileMaker_Command::execute()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetPreCommandScript">FileMaker_Command::setPreCommandScript()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetPreSortScript">FileMaker_Command::setPreSortScript()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetRecordClass">FileMaker_Command::setRecordClass()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetRecordId">FileMaker_Command::setRecordId()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetResultLayout">FileMaker_Command::setResultLayout()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodsetScript">FileMaker_Command::setScript()</a></span><br>
<span class="method-name"><a href="../FileMaker/FMC.html#methodvalidate">FileMaker_Command::validate()</a></span><br>
</blockquote>
</div>
</div>
<p class="notes" id="credit">
Documentation generated on Mon, 28 Jul 2008 14:47:44 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
</p>
</div></body>
</html>