public function __construct(RecordCollection $contacts, RecordCollectionPagination $pagination, $tableOnly = false) { $pagination->setNumResultsPerPage($this->getResultsPerPage()); $this->pager = $pagination->getPager(); $this->pagerInfo = $pagination->getInfo(); $this->contacts = $pagination->getPaginatedResults(); $this->requireJsPackage("typeahead"); $this->contactsSearch = new TypeAheadSearchFormView(TypeAheadEnum::CONTACTS(), "Search Contacts..."); $this->_tableOnly = (bool) $tableOnly; }