start copy from cimac web
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/AddImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that adds a new record.
|
||||
* Create this command with {@link FileMaker::newAddCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_Add extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Add_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Add command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the command was created by.
|
||||
* @param string $layout Layout to add a record to.
|
||||
* @param array $values Associative array of field name => value pairs. To set field repetitions,
|
||||
* use a numerically indexed array for the value of a field, with the numeric keys
|
||||
* corresponding to the repetition number to set.
|
||||
*/
|
||||
function FileMaker_Command_Add($fm, $layout, $values = array())
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_Add_Implementation($fm, $layout, $values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new value for a field.
|
||||
*
|
||||
* @param string $field Name of field to set.
|
||||
* @param string $value Value to set for this field.
|
||||
* @param integer $repetition Field repetition number to set,
|
||||
* Defaults to the first repetition.
|
||||
*/
|
||||
function setField($field, $value, $repetition = 0)
|
||||
{
|
||||
return $this->_impl->setField($field, $value, $repetition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new value for a date, time, or timestamp field from a
|
||||
* UNIX timestamp value.
|
||||
*
|
||||
* If the field is not a date or time field, then this method returns
|
||||
* an Error object. Otherwise, returns TRUE.
|
||||
*
|
||||
* If layout data for the target of this command has not already
|
||||
* been loaded, calling this method loads layout data so that
|
||||
* the type of the field can be checked.
|
||||
*
|
||||
* @param string $field Name of the field to set.
|
||||
* @param string $timestamp Timestamp value.
|
||||
* @param integer $repetition Field repetition number to set.
|
||||
* Defaults to the first repetition.
|
||||
*/
|
||||
function setFieldFromTimestamp($field, $timestamp, $repetition = 0)
|
||||
{
|
||||
return $this->_impl->setFieldFromTimestamp($field, $timestamp, $repetition);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/CompoundFindImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that performs multiple find requests, also known as a compound
|
||||
* find set.
|
||||
* 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 {@link FileMaker::newCompoundFindCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_CompoundFind extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_CompoundFind_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Compound find set constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* request was created by.
|
||||
* @param string $layout Layout to find records in.
|
||||
*/
|
||||
function FileMaker_Command_CompoundFind($fm, $layout)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_CompoundFind_Implementation($fm, $layout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a Find Request object to this Compound Find command.
|
||||
*
|
||||
* @param int $precedence Priority in which the find requests are added to
|
||||
* this compound find set.
|
||||
* @param findrequest $findrequest {@link FileMaker_FindRequest} object
|
||||
* to add to this compound find set.
|
||||
*/
|
||||
function add($precedence, $findrequest)
|
||||
{
|
||||
$this->_impl->add($precedence, $findrequest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a sorting rule to this Compound Find command.
|
||||
*
|
||||
* @param string $fieldname Name of the field to sort by.
|
||||
* @param 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.
|
||||
* @param 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.
|
||||
*/
|
||||
function addSortRule($fieldname, $precedence, $order = null)
|
||||
{
|
||||
$this->_impl->addSortRule($fieldname, $precedence, $order);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all existing sorting rules from this Compound Find command.
|
||||
*/
|
||||
function clearSortRules()
|
||||
{
|
||||
$this->_impl->clearSortRules();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a range to request only part of the result set.
|
||||
*
|
||||
* @param integer $skip Number of records to skip past. Default is 0.
|
||||
* @param integer $max Maximum number of records to return.
|
||||
* Default is all.
|
||||
*/
|
||||
function setRange($skip = 0, $max = null)
|
||||
{
|
||||
$this->_impl->setRange($skip, $max);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current range settings.
|
||||
*
|
||||
* @return array 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.
|
||||
*/
|
||||
function getRange()
|
||||
{
|
||||
return $this->_impl->getRange();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a filter to restrict the number of related records to return from
|
||||
* a portal.
|
||||
*
|
||||
* For more information, see the description for the
|
||||
* {@link FileMaker_Command_Find::setRelatedSetsFilters()} method.
|
||||
*
|
||||
* @param string $relatedsetsfilter Specify either 'layout' or 'none' to
|
||||
* control filtering.
|
||||
* @param string $relatedsetsmax Maximum number of portal records
|
||||
* to return.
|
||||
*/
|
||||
function setRelatedSetsFilters($relatedsetsfilter, $relatedsetsmax = null)
|
||||
{
|
||||
return $this->_impl->setRelatedSetsFilters($relatedsetsfilter, $relatedsetsmax);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current settings for the related records filter and
|
||||
* the maximum number of related records to return.
|
||||
*
|
||||
* @return array 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.
|
||||
*/
|
||||
function getRelatedSetsFilters()
|
||||
{
|
||||
return $this->_impl->getRelatedSetsFilters();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2009, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/DeleteImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that deletes a single record.
|
||||
* Create this command with {@link FileMaker::newDeleteCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_Delete extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Delete_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Delete command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout to delete record from.
|
||||
* @param string $recordId ID of the record to delete.
|
||||
*/
|
||||
function FileMaker_Command_Delete($fm, $layout, $recordId)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_Delete_Implementation($fm, $layout, $recordId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2009, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/DuplicateImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that duplicates a single record.
|
||||
* Create this command with {@link FileMaker::newDuplicateCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_Duplicate extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Duplicate_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Duplicate command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout the record to duplicate is in.
|
||||
* @param string $recordId ID of the record to duplicate.
|
||||
*/
|
||||
function FileMaker_Command_Duplicate($fm, $layout, $recordId)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_Duplicate_Implementation($fm, $layout, $recordId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2009, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/EditImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that edits a single record.
|
||||
* Create this command with {@link FileMaker::newEditCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_Edit extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Edit_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Edit command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout the record is part of.
|
||||
* @param string $recordId ID of the record to edit.
|
||||
* @param array $values Associative array of field name => value pairs.
|
||||
* To set field repetitions, use a numerically indexed array for
|
||||
* the value of a field, with the numeric keys corresponding to the
|
||||
* repetition number to set.
|
||||
*/
|
||||
function FileMaker_Command_Edit($fm, $layout, $recordId, $updatedValues = array())
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_Edit_Implementation($fm, $layout, $recordId, $updatedValues);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new value for a field.
|
||||
*
|
||||
* @param string $field Name of the field to set.
|
||||
* @param string $value Value for the field.
|
||||
* @param integer $repetition Field repetition number to set,
|
||||
* Defaults to the first repetition.
|
||||
*/
|
||||
function setField($field, $value, $repetition = 0)
|
||||
{
|
||||
return $this->_impl->setField($field, $value, $repetition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new value for a date, time, or timestamp field from a
|
||||
* UNIX timestamp value.
|
||||
*
|
||||
* If the field is not a date or time field, then this method returns
|
||||
* an Error object. Otherwise, returns TRUE.
|
||||
*
|
||||
* If layout data for the target of this command has not already
|
||||
* been loaded, calling this method loads layout data so that
|
||||
* the type of the field can be checked.
|
||||
*
|
||||
* @param string $field Name of the field to set.
|
||||
* @param string $timestamp Timestamp value.
|
||||
* @param integer $repetition Field repetition number to set.
|
||||
* Defaults to the first repetition.
|
||||
*/
|
||||
function setFieldFromTimestamp($field, $timestamp, $repetition = 0)
|
||||
{
|
||||
return $this->_impl->setFieldFromTimestamp($field, $timestamp, $repetition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the modification ID for this command.
|
||||
*
|
||||
* Before you edit a record, you can use the
|
||||
* {@link FileMaker_Record::getModificationId()} method to get the record's
|
||||
* modification ID. By specifying a modification ID when you execute an
|
||||
* Edit command, you can make sure that you are editing the current version
|
||||
* of a record. If the modification ID value you specify does not match the
|
||||
* current modification ID value in the database, the Edit command is not
|
||||
* allowed and an error code is returned.
|
||||
*
|
||||
* @param integer $modificationId Modification ID.
|
||||
*/
|
||||
function setModificationId($modificationId)
|
||||
{
|
||||
$this->_impl->setModificationId($modificationId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/FindImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that finds records using the specified criteria.
|
||||
* Create this command with {@link FileMaker::newFindCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_Find extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Find_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Find command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout to find records in.
|
||||
*/
|
||||
function FileMaker_Command_Find($fm, $layout)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_Find_Implementation($fm, $layout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a criterion to this Find command.
|
||||
*
|
||||
* @param string $fieldname Name of the field being tested.
|
||||
* @param string $testvalue Value of field to test against.
|
||||
*/
|
||||
function addFindCriterion($fieldname, $testvalue)
|
||||
{
|
||||
$this->_impl->addFindCriterion($fieldname, $testvalue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all existing criteria from this Find command.
|
||||
*/
|
||||
function clearFindCriteria()
|
||||
{
|
||||
$this->_impl->clearFindCriteria();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a sorting rule to this Find command.
|
||||
*
|
||||
* @param string $fieldname Name of the field to sort by.
|
||||
* @param 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.
|
||||
* @param 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.
|
||||
*/
|
||||
function addSortRule($fieldname, $precedence, $order = null)
|
||||
{
|
||||
$this->_impl->addSortRule($fieldname, $precedence, $order);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all existing sorting rules from this Find command.
|
||||
*/
|
||||
function clearSortRules()
|
||||
{
|
||||
$this->_impl->clearSortRules();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param integer $operator Specify the FILEMAKER_FIND_AND or
|
||||
* FILEMAKER_FIND_OR constant.
|
||||
*/
|
||||
function setLogicalOperator($operator)
|
||||
{
|
||||
$this->_impl->setLogicalOperator($operator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a range to request only part of the result set.
|
||||
*
|
||||
* @param integer $skip Number of records to skip past. Default is 0.
|
||||
* @param integer $max Maximum number of records to return.
|
||||
* Default is all.
|
||||
*/
|
||||
function setRange($skip = 0, $max = null)
|
||||
{
|
||||
$this->_impl->setRange($skip, $max);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current range settings.
|
||||
*
|
||||
* @return array 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.
|
||||
*/
|
||||
function getRange()
|
||||
{
|
||||
return $this->_impl->getRange();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param 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.
|
||||
*
|
||||
* @param 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.
|
||||
*/
|
||||
function setRelatedSetsFilters($relatedsetsfilter, $relatedsetsmax = null)
|
||||
{
|
||||
return $this->_impl->setRelatedSetsFilters($relatedsetsfilter, $relatedsetsmax);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current settings for the related records filter and
|
||||
* the maximum number of related records to return.
|
||||
*
|
||||
* @return array 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.
|
||||
*/
|
||||
function getRelatedSetsFilters()
|
||||
{
|
||||
return $this->_impl->getRelatedSetsFilters();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/Find.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/FindAllImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that finds all records from a layout.
|
||||
* Create this command with {@link FileMaker::newFindAllCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_FindAll extends FileMaker_Command_Find
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_FindAll_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* FindAll command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout to find all records in.
|
||||
*/
|
||||
function FileMaker_Command_FindAll($fm, $layout)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_FindAll_Implementation($fm, $layout);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/Find.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/FindAnyImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that finds one random record.
|
||||
* Create this command with {@link FileMaker::newFindAnyCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_FindAny extends FileMaker_Command_Find
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_FindAny_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* FindAny command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout to find a random record from.
|
||||
*/
|
||||
function FileMaker_Command_FindAny($fm, $layout)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_FindAny_Implementation($fm, $layout);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API for PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/FindRequestImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Find Request class. Contains all the information about a single find request
|
||||
* for a Compound Find command.
|
||||
* Create this command with {@link FileMaker::newFindRequest()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_FindRequest
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_Find_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* Find request constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* request was created by.
|
||||
* @param string $layout Layout to find records in.
|
||||
*/
|
||||
function FileMaker_Command_FindRequest($fm, $layout)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_FindRequest_Implementation($fm, $layout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether this request is an omit request.
|
||||
*
|
||||
* An omit request removes the matching records from the final result set.
|
||||
*
|
||||
* @param boolean $value TRUE if this is an omit request. Otherwise, FALSE.
|
||||
*/
|
||||
function setOmit($value)
|
||||
{
|
||||
$this->_impl->setOmit($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a criterion to this find request.
|
||||
*
|
||||
* @param string $fieldname Name of the field being tested.
|
||||
* @param string $testvalue Value of the field to test against.
|
||||
*/
|
||||
function addFindCriterion($fieldname, $testvalue)
|
||||
{
|
||||
$this->_impl->addFindCriterion($fieldname, $testvalue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all existing criteria from this find request.
|
||||
*/
|
||||
function clearFindCriteria()
|
||||
{
|
||||
$this->_impl->clearFindCriteria();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* FileMaker API PHP
|
||||
*
|
||||
* @package FileMaker
|
||||
*
|
||||
* Copyright © 2005-2007, FileMaker, Inc. All rights reserved.
|
||||
* NOTE: Use of this source code is subject to the terms of the FileMaker
|
||||
* Software License which accompanies the code. Your use of this source code
|
||||
* signifies your agreement to such license terms and conditions. Except as
|
||||
* expressly granted in the Software License, no other copyright, patent, or
|
||||
* other intellectual property license or right is granted, either expressly or
|
||||
* by implication, by FileMaker.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
* @ignore Include parent and delegate classes.
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Command.php';
|
||||
require_once dirname(__FILE__) . '/../Implementation/Command/PerformScriptImpl.php';
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Command class that performs a ScriptMaker script.
|
||||
* Create this command with {@link FileMaker::newPerformScriptCommand()}.
|
||||
*
|
||||
* @package FileMaker
|
||||
*/
|
||||
class FileMaker_Command_PerformScript extends FileMaker_Command
|
||||
{
|
||||
/**
|
||||
* Implementation
|
||||
*
|
||||
* @var FileMaker_Command_PerformScript_Implementation
|
||||
* @access private
|
||||
*/
|
||||
var $_impl;
|
||||
|
||||
/**
|
||||
* PerformScript command constructor.
|
||||
*
|
||||
* @ignore
|
||||
* @param FileMaker_Implementation $fm FileMaker_Implementation object the
|
||||
* command was created by.
|
||||
* @param string $layout Layout to use for script context.
|
||||
* @param string $scriptName Name of the script to run.
|
||||
* @param string $scriptParameters Any parameters to pass to the script.
|
||||
*/
|
||||
function FileMaker_Command_PerformScript($fm, $layout, $scriptName, $scriptParameters = null)
|
||||
{
|
||||
$this->_impl = new FileMaker_Command_PerformScript_Implementation($fm, $layout, $scriptName, $scriptParameters);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user