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


PHP Campaign::get_error方法代码示例

本文整理汇总了PHP中Campaign::get_error方法的典型用法代码示例。如果您正苦于以下问题:PHP Campaign::get_error方法的具体用法?PHP Campaign::get_error怎么用?PHP Campaign::get_error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Campaign的用法示例。


在下文中一共展示了Campaign::get_error方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: realpath

error_reporting(E_ERROR);
if (!isset($_GET['id'])) {
    js_redirect('admin.php?act=manageclients');
}
require_once realpath(dirname(__FILE__)) . '/../classes/dashboard/Campaign.php';
$campaign = new Campaign();
$msg = "";
$error = array();
if (isset($_POST['submit_edit_campaign'])) {
    $_POST = array_map('trim', $_POST);
    $_POST = array_map('strip_tags', $_POST);
    extract($_POST);
    if ($campaign->edit($campaign_id, $campaign_name, $gsm_number, $unbounce_id, $client_id, $ga_view_id, $start_date, $end_date)) {
        $msg = "campaign edited successfully";
    } else {
        $error = $campaign->get_error();
        //        $error[] = 'could not update campaign';
    }
}
$c = $campaign->get_campaign((int) $_GET['id']);
$clients = Campaign::get_clients_list();
$gsm_numebrs = Campaign::get_gsm_numbers();
?>



<div class="row">
  <div class="col-sm-4">
    <ol class="breadcrumb bc-3">
      <li> <a href="admin.php?act=dashboard"><i class="entypo-home"></i>Dashboard</a> </li>
      <li> <a href="admin.php?act=managecampaigns"><i></i>campaigns</a> </li>
开发者ID:dasatti,项目名称:dashboard,代码行数:31,代码来源:editcampaign.php

示例2: realpath

include_once 'include/common.php';
include_once 'include/func.clients.php';
ini_set("display_errors", 1);
error_reporting(E_ERROR);
require_once realpath(dirname(__FILE__)) . '/../classes/dashboard/Campaign.php';
$msg = "";
$error = array();
if (isset($_POST['submit_add_campaign'])) {
    $_POST = array_map('trim', $_POST);
    $_POST = array_map('strip_tags', $_POST);
    extract($_POST);
    $c = new Campaign();
    if ($c->add($campaign_name, $gsm_number, $unbounce_id, $client_id, $ga_view_id, $start_date, $end_date)) {
        $msg = "campaign added successfully";
    } else {
        $error = $c->get_error();
    }
}
$clients = Campaign::get_clients_list();
$gsm_numebrs = Campaign::get_gsm_numbers();
?>



<div class="row">
  <div class="col-sm-4">
    <ol class="breadcrumb bc-3">
      <li> <a href="admin.php?act=dashboard"><i class="entypo-home"></i>Dashboard</a> </li>
      <li> <a href="admin.php?act=managecampaigns"><i></i>campaigns</a> </li>
      <li class="active"> <strong>Add Campaign</strong> </li>
    </ol>
开发者ID:dasatti,项目名称:dashboard,代码行数:31,代码来源:addcampaign.php


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