本文整理汇总了PHP中License::setOrganization方法的典型用法代码示例。如果您正苦于以下问题:PHP License::setOrganization方法的具体用法?PHP License::setOrganization怎么用?PHP License::setOrganization使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::setOrganization方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: License
$license = new License(new NamedArguments(array('primaryKey' => $_POST['licenseID'])));
$response = "License Updated Successfully.";
} else {
//add data
$license = new License();
$license->licenseID = '';
$license->createDate = date('Y-m-d H:i:s');
$license->statusID = '';
$license->statusDate = '';
$response = "License Added Successfully.<br />Please continue to upload documents and add expressions or emails.";
}
$license->shortName = $_POST['shortName'];
$license->consortiumID = $_POST['consortiumID'];
//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();
if (isset($_POST['licenseID']) && $_POST['licenseID'] != '') {
$licenseID = $_POST['licenseID'];
} else {
$licenseID = $license->primaryKey;
}
?>
<table class="thickboxTable" style="background-image:url('images/title.gif');background-repeat:no-repeat;width:260px;">
<tr>
<td colspan='2'><br /><span class='headerText'><?php
echo $response;
?>