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); } }