Evernote\Client::findNotes_nextFindInLinkedScopeWithContext PHP Method

findNotes_nextFindInLinkedScopeWithContext() protected method

    protected function findNotes_nextFindInLinkedScopeWithContext($context)
    {
        if (count($context->linkedNotebooksToSearch) == 0) {
            $this->findNotes_processResultsWithContext($context);
            return;
        }
        // Pull the first notebook off the list of pending linked notebooks.
        $linkedNotebook = array_shift($context->linkedNotebooksToSearch);
        $noteStore = $this->getNotestore($linkedNotebook->noteStoreUrl);
        $authToken = $this->getSharedNotebookAuthResult($linkedNotebook)->authenticationToken;
        $notesMetadataList = $noteStore->findNotesMetadata($authToken, $context->noteFilter, 0, $context->maxResults, $context->resultSpec);
        foreach ($notesMetadataList->notes as $notesMetadata) {
            $context->findMetadataResults[] = $notesMetadata;
        }
        $this->findNotes_nextFindInLinkedScopeWithContext($context);
        $this->findNotes_processResultsWithContext($context);
    }