/** * Get all available sharepoint lists * * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage */ public function findAllLists() { $lists = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage'); $this->sharepointHandler->setReturnType('object'); $originalLists = $this->sharepointHandler->getLists(); foreach ($originalLists as $item) { $lists->attach($item); } return $lists; }
private static function sharepoint($user) { $sp = new SharePointAPI("SAINTS/" . $user->user_id, $user->password(), static::NOTIFICATIONS_URL); $sp->setReturnType('object'); return $sp; }