本文整理汇总了PHP中Opus_Document::setCompletedDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Opus_Document::setCompletedDate方法的具体用法?PHP Opus_Document::setCompletedDate怎么用?PHP Opus_Document::setCompletedDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Opus_Document
的用法示例。
在下文中一共展示了Opus_Document::setCompletedDate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$rootCollection = $institutesRole->getRootCollection();
if (is_null($rootCollection) === true) {
$rootCollection = $institutesRole->addRootCollection();
$rootCollection->setVisible(1)->store();
$institutesRole->store();
}
$instituteCollection = $rootCollection->addLastChild();
$instituteCollection->setVisible(1)->setName($instituteName)->store();
}
$doc->addCollection($instituteCollection);
$doc->setPublishedYear('2010');
$doc->setPublishedDate('2010-09-28');
$doc->setPublisherName('The Walt Disney Company');
$doc->setPublisherPlace('Burbank, CA');
$doc->setCompletedYear('2010');
$doc->setCompletedDate('2010-09-27');
$opusThreeId = $doc->addIdentifierOpus3();
$opusThreeId->setValue('1234');
// empty URN will be automaticaly replace by new URN.
$urn = $doc->addIdentifierUrn();
$urn->setValue('urn:nbn:de:kobv:nn-opus-173');
$isbn = $doc->addIdentifierIsbn();
$isbn->setValue('978-3-86680-192-9');
$issn = $doc->addIdentifierIssn();
$issn->setValue('1234-5678');
$doc->addIdentifierOpac()->setValue('OPAC-ID 001 1237890654');
// Valid Arxiv-Identifier from ArXiv.org Homepage: http://arxiv.org/help/arxiv_identifier
$arxiv = $doc->addIdentifierArxiv();
$arxiv->setValue('arXiv:0706.0001');
// Valid DOI Identifier from DOI Homepage: http://www.doi.org/
$doi = $doc->addIdentifierDoi();
示例2: randString
}
// set to the user defined error handler
$oldErrorHandler = set_error_handler("myErrorHandler");
//
// Creating document, filling static fields.
//
$doc = new Opus_Document();
$doc->setType(randString($counter++));
$doc->setServerState('published');
$doc->setServerDatePublished('01.01.1900');
$doc->setLanguage('deu' . randString($counter++));
$doc->setThesisDateAccepted('01.02.2003');
$doc->setPublishedYear('2010');
$doc->setPublishedDate('28.09.2010');
$doc->setCompletedYear('2010');
$doc->setCompletedDate('27.09.2010');
$doc->setPublisherName(randString($counter++));
$doc->setPublisherPlace(randString($counter++));
$doc->setPageNumber(randString($counter++));
$doc->setPageFirst(randString($counter++));
$doc->setPageLast(randString($counter++));
$doc->setVolume(randString($counter++));
$doc->setIssue(randString($counter++));
$doc->setCreatingCorporation(randString($counter++));
$doc->setContributingCorporation(randString($counter++));
//
// Persons
//
$submitter = new Opus_Person();
$submitter->getField('Email')->setValidator(null);
$submitter->setFirstName(randString($counter++))->setLastName(randString($counter++))->setEmail(randString($counter++))->setAcademicTitle(randString($counter++))->setDateOfBirth(randString($counter++))->setPlaceOfBirth(randString($counter++));
示例3: updateModel
/**
* Aktualisiert ein Dokument mit den Werten im Formular.
* @param Opus_Document $document
*/
public function updateModel($document)
{
// Language
$value = $this->getElementValue(self::ELEMENT_LANGUAGE);
$document->setLanguage($value);
// Type
$value = $this->getElementValue(self::ELEMENT_TYPE);
$document->setType($value);
$datesHelper = $this->getDatesHelper();
// CompletedDate
$value = $this->getElementValue(self::ELEMENT_COMPLETED_DATE);
$date = $datesHelper->getOpusDate($value);
$document->setCompletedDate($date);
// CompletedYear
$value = $this->getElementValue(self::ELEMENT_COMPLETED_YEAR);
$document->setCompletedYear($value);
// PublishedDate
$value = $this->getElementValue(self::ELEMENT_PUBLISHED_DATE);
$date = $datesHelper->getOpusDate($value);
$document->setPublishedDate($date);
// PublishedYear
$value = $this->getElementValue(self::ELEMENT_PUBLISHED_YEAR);
$document->setPublishedYear($value);
$value = $this->getElementValue(self::ELEMENT_EMBARGO_DATE);
$date = $datesHelper->getOpusDate($value);
$document->setEmbargoDate($date);
}