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


PHP CRM_Contribute_BAO_ContributionPage::copy方法代码示例

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


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

示例1: copy

 /**
  * This function is to make a copy of a contribution page, including
  * all the fields in the page
  *
  * @return void
  * @access public
  */
 function copy()
 {
     $gid = CRM_Utils_Request::retrieve('gid', 'Positive', $this, true, 0, 'GET');
     require_once 'CRM/Contribute/BAO/ContributionPage.php';
     CRM_Contribute_BAO_ContributionPage::copy($gid);
     CRM_Utils_System::redirect(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
 }
开发者ID:ksecor,项目名称:civicrm,代码行数:14,代码来源:ContributionPage.php

示例2: copy

 /**
  * Make a copy of a contribution page, including all the fields in the page.
  */
 public function copy()
 {
     $gid = CRM_Utils_Request::retrieve('gid', 'Positive', $this, TRUE, 0, 'GET');
     CRM_Contribute_BAO_ContributionPage::copy($gid);
     CRM_Utils_System::redirect(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
 }
开发者ID:nyimbi,项目名称:civicrm-core,代码行数:9,代码来源:ContributionPage.php

示例3: testcopy

 /**
  * Test copy() method
  */
 public function testcopy()
 {
     $params = array('qfkey' => '9a3ef3c08879ad4c8c109b21c583400e', 'title' => 'Test Contribution Page', 'financial_type_id' => $this->_financialTypeID, 'intro_text' => '', 'footer_text' => 'Thanks', 'is_for_organization' => 0, 'for_organization' => ' I am contributing on behalf of an organization', 'goal_amount' => '400', 'is_active' => 1, 'honor_block_title' => '', 'honor_block_text' => '', 'start_date' => '20091022105900', 'start_date_time' => '10:59AM', 'end_date' => '19700101000000', 'end_date_time' => '', 'is_credit_card_only' => '');
     $contributionpage = CRM_Contribute_BAO_ContributionPage::create($params);
     $copycontributionpage = CRM_Contribute_BAO_ContributionPage::copy($contributionpage->id);
     $this->assertEquals($copycontributionpage->financial_type_id, $this->_financialTypeID, 'Check for Financial type id.');
     $this->assertEquals($copycontributionpage->goal_amount, 400, 'Check for goal amount.');
     ContributionPage::delete($contributionpage->id);
     ContributionPage::delete($copycontributionpage->id);
 }
开发者ID:saurabhbatra96,项目名称:civicrm-core,代码行数:13,代码来源:ContributionPageTest.php


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