當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。