本文整理汇总了PHP中PluginMonitoringProfile::add方法的典型用法代码示例。如果您正苦于以下问题:PHP PluginMonitoringProfile::add方法的具体用法?PHP PluginMonitoringProfile::add怎么用?PHP PluginMonitoringProfile::add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginMonitoringProfile
的用法示例。
在下文中一共展示了PluginMonitoringProfile::add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Copyright
You should have received a copy of the GNU Affero General Public License
along with Monitoring. If not, see <http://www.gnu.org/licenses/>.
------------------------------------------------------------------------
@package Plugin Monitoring for GLPI
@author David Durieux
@co-author
@comment
@copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team
@license AGPL License 3.0 or (at your option) any later version
http://www.gnu.org/licenses/agpl-3.0-standalone.html
@link https://forge.indepnet.net/projects/monitoring/
@since 2011
------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Session::checkRight("profile", "r");
$pmProfile = new PluginMonitoringProfile();
Session::checkRight("profile", "w");
if ($pmProfile->getFromDB($_POST['profiles_id'])) {
$pmProfile->update($_POST);
$pmProfile->changeprofile();
Html::back();
} else {
$pmProfile->add($_POST);
$pmProfile->changeprofile();
Html::back();
}