_impl = new FileMaker_Result_Implementation($fm); } /** * Returns a FileMaker_Layout object that describes the layout of this * result set. * * @return FileMaker_Layout Layout object. */ function &getLayout() { return $this->_impl->getLayout(); } /** * Returns an array containing each record in the result set. * * Each member of the array is a FileMaker_Record object, or an * instance of the alternate class you specified to use for records * (see {@link FileMaker_Record}. The array may be empty if * the result set contains no records. * * @return array Record objects. */ function &getRecords() { return $this->_impl->getRecords(); } /** * Returns a list of the names of all fields in the records in * this result set. * * Only the field names are returned. If you need additional * information, examine the Layout object provided by the * {@link getLayout()} method. * * @return array List of field names as strings. */ function getFields() { return $this->_impl->getFields(); } /** * Returns the names of related tables for all portals present in records * in this result set. * * @return array List of related table names as strings. */ function getRelatedSets() { return $this->_impl->getRelatedSets(); } /** * Returns the number of records in the table that was accessed. * * @return integer Total record count in table. */ function getTableRecordCount() { return $this->_impl->getTableRecordCount(); } /** * Returns the number of records in the entire found set. * * @return integer Found record count. */ function getFoundSetCount() { return $this->_impl->getFoundSetCount(); } /** * Returns the number of records in the filtered result set. * * If no range parameters were specified on the Find command, * then this value is equal to the result of the {@link getFoundSetCount()} * method. It is always equal to the value of * count($response->{@link getRecords()}). * * @return integer Filtered record count. */ function getFetchCount() { return $this->_impl->getFetchCount(); } /** * Returns the first record in this result set. * * @return FileMaker_Record First record. */ function getFirstRecord() { return $this->_impl->getFirstRecord(); } /** * Returns the last record in this result set. * * @return FileMaker_Record Last record. */ function getLastRecord() { return $this->_impl->getLastRecord(); } }