Evernote\Client::findNotes_listNotebooksWithContext PHP Method

findNotes_listNotebooksWithContext() protected method

protected findNotes_listNotebooksWithContext ( $context )
    protected function findNotes_listNotebooksWithContext($context)
    {
        // XXX: We do the full listNotebooks operation here, which is overkill in all situations,
        // and could wind us up doing a bunch of extra work. Optimization is to only look at -listNotebooks
        // if we're personal scope, and -listLinkedNotebooks for linked and business, without ever
        // authenticating to other note stores.
        $notebooks = $this->listNotebooks();
        if ($notebooks) {
            $context->allNotebooks = $notebooks;
            return $this->findNotes_findInPersonalScopeWithContext($context);
        } else {
            // TODO : handle error
        }
    }