protected function findNotes_findInPersonalScopeWithContext($context) { $skipPersonalScope = false; // Skip the personal scope if the scope notebook isn't personal, or if the scope // flag doesn't include personal. if ($context->scopeNotebook) { // If the scope notebook isn't personal, skip personal. if ($context->scopeNotebook->isLinkedNotebook()) { $skipPersonalScope = true; } } else { if (!$this->isFlagSet($context->scope, self::SEARCH_SCOPE_PERSONAL)) { // If the caller didn't request personal scope. $skipPersonalScope = true; } } // TODO : handle linked app notebook // else if ([self appNotebookIsLinked]) { // // If we know this is an app notebook scoped app, and we know the app notebook is not personal. // $skipPersonalScope = true; // } // If we're skipping personal scope, proceed directly to busines scope. if (true === $skipPersonalScope) { return $this->findNotes_findInBusinessScopeWithContext($context); } $notesMetadataList = $this->getUserNotestore()->findNotesMetadata($this->token, $context->noteFilter, 0, $context->maxResults, $context->resultSpec); foreach ($notesMetadataList->notes as $notesMetadata) { $context->findMetadataResults[] = $notesMetadata; } return $this->findNotes_findInBusinessScopeWithContext($context); }