public function allowDocumentType($type) { $document = new PHPWS_Document(); return $document->allowType($type); }