Skip to content

Instantly share code, notes, and snippets.

View eileenmcnaughton's full-sized avatar

Eileen McNaughton eileenmcnaughton

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
<div style="padding-top:100px;margin-right:50px;border-style: none;">
<table style="margin-top:5px;padding-bottom:50px;" cellpadding="5" cellspacing="0">
<tr>
https://github.com/civicrm/civicrm-core/pull/12891 relationship types
https://github.com/civicrm/civicrm-core/pull/12824 smart groups of fields
https://github.com/civicrm/civicrm-core/pull/12758 mosaico add test in subject
https://github.com/civicrm/civicrm-core/pull/12764 too many entities deleted when deleting recurring events
https://github.com/civicrm/civicrm-core/pull/12904 current employer on reports
https://github.com/civicrm/civicrm-core/pull/12819 add contact name on membership view
Places where triage help would be great
https://lab.civicrm.org/dev/core/issues/420
1) test up methodology
We are leaning towards starting with one or 2 api & getting them & their tests going & then refining & doing a few more
How do we clean up the test classes? Scenario library? Require php 5.4 & use traits - it could be an option to make v4 require 5.4 even
if core does not initially)
2) use class api rather than procedural array based as a starting point?
$api = new CiviCRM_API4($authParams);
$contact = $api->Contact('create, $params);
$emails = $api->Email('get', $params);
diff --git a/.gitignore b/.gitignore
index baff153..bea989f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
+sites/*/civicrm.settings*.php
+sites/default/civicrm/extensions/cache
+sites/default/civicrm/extensions/tmp
<?php
namespace Civi\Payment\Exception;
/**
* Class PaymentProcessorException
*/
class PaymentProcessorException extends \CRM_Core_Exception {
}
@eileenmcnaughton
eileenmcnaughton / gist:a436bb22189433119e08
Created December 2, 2014 02:35
Paybox sample code -taken from documentation but NOT working
<?php
// Get the date at ISO 8601 format
//date_default_timezone_set ('+13:00' );
//$dateTime = date("c");
// use a fixed string so people can replicate
$dateTime = date("c", strtotime('2014-12-01'));
// Create the string to be hashed, without URLencoding
$msg = "PBX_SITE=1999888".
"&PBX_RANG=32".
"&PBX_IDENTIFIANT=107904482".
1) api_v3_SyntaxConformanceTest::testSqlOperators with data set #2 ('ActionSchedule')
PEAR_Exception: DB Error: no such field
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Error.php:867
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PEAR.php:931
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/DB.php:975
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PEAR.php:564
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/DB/common.php:1905
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/DB/mysql.php:899
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/DB/mysql.php:328
<?php
/**
*
*/
function api_payment_form_get($params) {
$paymentProcessor = civicrm_api3('payment_processor', 'getsingle', array('processor_id' => $params['processor_id']));
$formData = paymentFormBuild($paymentProcessor, $params);
if ($params['output'] = 'json') {
<form novalidate="" action="" method="post" name="payment">
<div id="payflowpro_gateway_gateway-personal-info">
<div class="row-fluid">
<span class="personalInfo">
<div class="row-fluid">
<div class="col-md-12">
<h3 class="cc_header">Montant du don: <span id="selected-amount">€3.00</span><img style="vertical-align:baseline;margin-left:8px;" src="/extensions/DonationInterface/gateway_forms/includes/padlock.gif"></h3>
</div>
</div>