当前位置: 首页>>代码示例>>PHP>>正文


PHP License::setOrganization方法代码示例

本文整理汇总了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;
                ?>
开发者ID:veggiematts,项目名称:coral-licensing,代码行数:31,代码来源:ajax_processing.php


注:本文中的License::setOrganization方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。