本文整理匯總了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();
}