本文整理汇总了PHP中License::setConsortiums方法的典型用法代码示例。如果您正苦于以下问题:PHP License::setConsortiums方法的具体用法?PHP License::setConsortiums怎么用?PHP License::setConsortiums使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::setConsortiums方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
$license->statusDate = date('Y-m-d H:i:s');
$response = _("Document Added Successfully.");
}
$license->shortName = $_POST['shortName'];
$license->description = $_POST['description'];
$license->typeID = $_POST['documentTypeID'];
$license->statusDate = date('Y-m-d H:i:s');
$license->statusLoginID = $user->primaryKey;
//this method will save to either organization or provider depending on the settings
//also, if this organization or provider doesn't exist it will create a new org/provider
$license->setOrganization($_POST['organizationID'], $_POST['organizationName']);
//this is the html that will be displayed in the form after submitting.
//this is the only form in which this is done.
try {
$license->save();
$license->setConsortiums($_POST['consortiumID']);
if (isset($_POST['licenseID']) && $_POST['licenseID'] != '') {
$licenseID = $_POST['licenseID'];
} else {
// I am adding a new license so go ahead and create the document
$licenseID = $license->primaryKey;
// Save the document
$document = new Document();
$document->documentID = '';
$document->effectiveDate = date('Y-m-d H:i:s');
if (isset($_POST['revisionDate']) && $_POST['revisionDate'] != '') {
$document->revisionDate = date("Y-m-d", strtotime($_POST['revisionDate']));
}
$document->shortName = $_POST['shortName'];
$document->documentTypeID = $_POST['documentTypeID'];
$document->parentDocumentID = $_POST['parentDocumentID'];