本文整理汇总了PHP中Opus_Document::getBelongsToBibliography方法的典型用法代码示例。如果您正苦于以下问题:PHP Opus_Document::getBelongsToBibliography方法的具体用法?PHP Opus_Document::getBelongsToBibliography怎么用?PHP Opus_Document::getBelongsToBibliography使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Opus_Document
的用法示例。
在下文中一共展示了Opus_Document::getBelongsToBibliography方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testFormManipulationForBibliography
/**
* Regression Test for OPUSVIER-2646
*/
public function testFormManipulationForBibliography()
{
$this->markTestIncomplete('testing multipart formdata not yet solved');
$config = Zend_Registry::get('Zend_Config');
$oldval = null;
if (isset($config->form->first->bibliographie)) {
$oldval = $config->form->first->bibliographie;
}
$config->form->first->bibliographie = 0;
$this->request->setMethod('POST')->setPost(array('documentType' => 'demo', 'MAX_FILE_SIZE' => '10240000', 'fileupload' => '', 'uploadComment' => '', 'bibliographie' => '1', 'rights' => '1', 'send' => 'Weiter zum nächsten Schritt'));
$this->dispatch('/publish/form/upload');
$session = new Zend_Session_Namespace('Publish');
// undo config changes
if (is_null($oldval)) {
unset($config->form->first->bibliographie);
} else {
$config->form->first->bibliographie = $oldval;
}
$doc = new Opus_Document($session->documentId);
$belongsToBibliography = $doc->getBelongsToBibliography();
$doc->deletePermanent();
$this->assertResponseCode(200);
$this->assertNotContains("Es sind Fehler aufgetreten.", $this->response->getBody());
$this->assertFalse((bool) $belongsToBibliography, 'Expected that document does not belong to bibliography');
}
示例2: isBelongsToBibliography
public function isBelongsToBibliography()
{
return $this->document->getBelongsToBibliography();
}