Default Record class that represents each record of a result set.
From a Record object, you can get field data, edit and delete the record, get its parent record, get its related record set, and create related records.
Instead of this class, you can specify a different class to use for Record objects. To specify the record class to use, open the FileMaker/conf/filemaker-api.php configuration file where the API is installed. Then set $__FM_CONFIG['recordClass'] to the name of the record class to use. The class you specify should be a subclass of the FileMaker_Record base class or encapsulate its functionality. In PHP 5, this class would implement an interface that alternate classes would be required to implement as well.
Located in /FileMaker/Record.php (line 40)
Record object constructor.
Saves any changes to this record in the database on the Database Server.
Deletes this record from the database on the Database Server.
Returns the HTML-encoded value of the specified field.
This method converts some special characters in the field value to HTML entities. For example, '&', '"', '<', and '>' are converted to '&', '"', '<', and '>', respectively.
Returns the value of the specified field as a UNIX timestamp.
If the field is a date field, the timestamp is for the field date at midnight. It the field is a time field, the timestamp is for that time on January 1, 1970. Timestamp (date and time) fields map directly to the UNIX timestamp. If the specified field is not a date or time field, or if the timestamp generated would be out of range, then this method returns a FileMaker_Error object instead.
Returns a list of the names of all fields in the record.
Only the field names are returned. If you need additional information, examine the Layout object provided by the parent object's FileMaker_Result::getLayout() method.
Returns the unencoded value of the specified field.
This method does not convert special characters in the field value to HTML entities.
Returns the layout this record is associated with.
Returns the modification ID of this record.
The modification ID is an incremental counter that specifies the current version of a record. See the FileMaker_Command_Edit::setModificationId() method.
Returns the parent record, if this record is a child record in a portal.
Returns the record ID of this object.
Returns any Record objects in the specified portal.
Creates a new record in the specified portal.
Sets the value of $field.
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 returns an error. 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.
Pre-validates either a single field or the entire record.
This method uses the pre-validation rules that are enforceable by the PHP engine -- for example, type rules, ranges, and four-digit dates. Rules such as "unique" or "existing," or validation by calculation field, cannot be pre-validated.
If you pass the optional $fieldName argument, only that field is pre-validated. Otherwise, the record is pre-validated as if commit() were called with "Enable record data pre-validation" selected in FileMaker Server Admin Console. If pre-validation passes, validate() returns TRUE. If pre-validation fails, then validate() returns a FileMaker_Error_Validation object containing details about what failed to pre-validate.
Documentation generated on Tue, 22 May 2007 13:39:08 -0700 by phpDocumentor 1.3.1