/** * Handles the `showLinks()` method for fRecordSet * * @internal * * @param fRecordSet $object The record set * @param string|array $class The class(es) contained in the record set * @param array &$records The records * @param string $method_name The method that was called * @param array $parameters The parameters passed to the method * @return boolean If the links were shown */ public static function showRecordSetLinks($object, $class, &$records, $method_name, $parameters) { $template = count($parameters) < 1 ? 'default' : $parameters[0]; $data = count($parameters) < 2 ? array() : $parameters[1]; $data = self::extendRecordSetInfo($data, $class); return self::showTemplatedLinks($template, $data, $object->getPage(), $object->getLimit(), $object->count(TRUE)); }