public function getAllDocuments()
    {
        $documents = ArrayList::create();

        foreach ($this->owner->DocumentSets() as $documentSet) {
            /** @var DocumentSet $documentSet */
            $documents->merge($documentSet->getDocuments());
        }
        $documents->removeDuplicates();

        return $documents;
    }
public function getAllDocuments()
    {
        $documents = ArrayList::create();

        foreach ($this->owner->DocumentSets() as $documentSet) {
            /** @var DocumentSet $documentSet */
            $documents->merge($documentSet->getDocuments());
        }
        $documents->removeDuplicates();

        return $documents;
    }
public function getAllDocuments ( ) { $ documents = ArrayList :: create ( ) ; foreach ( $ this -> owner -> DocumentSets ( ) as $ documentSet ) { /** @var DocumentSet $documentSet */ $ documents -> merge ( $ documentSet -> getDocuments ( ) ) ; } $ documents -> removeDuplicates ( ) ; return $ documents ; }
Get a list of all documents from all document sets for the owner page

@return ArrayList
Get a list of all documents from all document sets for the owner page