*/
namespace Civi\API\Provider;
+
use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
*/
namespace Civi\API\Provider;
+
use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
*/
namespace Civi\API\Subscriber;
+
use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
*/
namespace Civi\API\Subscriber;
+
use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
*/
namespace Civi\API\Subscriber;
+
use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
// OK, the activity has completed every step in the sequence!
civicrm_api3('Case', 'create', array(
- 'id' => $analyzer->getCaseId(),
+ 'id' => $analyzer->getCaseId(),
'status_id' => 'Closed',
));
$analyzer->flush();
<?php
namespace Civi\CiUtil;
+
use Symfony\Component\Finder\Finder;
/**
<?php
namespace Civi\Core;
+
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Common\Annotations\FileCacheReader;
$dispatcher->addListener('DAO::post-insert', array('\CRM_Core_BAO_RecurringEntity', 'triggerInsert'));
$dispatcher->addListener('DAO::post-update', array('\CRM_Core_BAO_RecurringEntity', 'triggerUpdate'));
$dispatcher->addListener('DAO::post-delete', array('\CRM_Core_BAO_RecurringEntity', 'triggerDelete'));
- $dispatcher->addListener('hook_civicrm_unhandled_exception', array('CRM_Core_LegacyErrorHandler', 'handleException'));
+ $dispatcher->addListener('hook_civicrm_unhandled_exception', array(
+ 'CRM_Core_LegacyErrorHandler',
+ 'handleException'
+ ));
return $dispatcher;
}
}
public function setRollbackOnly() {
- $this->doCommit = false;
+ $this->doCommit = FALSE;
}
public function begin() {
* @param array|NULL $params Optional values to pass to callback.
* See php manual call_user_func_array for details.
*/
- public function addCallback($phase, $callback, $params = null, $id = NULL) {
+ public function addCallback($phase, $callback, $params = NULL, $id = NULL) {
if ($id) {
$this->callbacks[$phase][$id] = array(
'callback' => $callback,
* @return \Civi\Core\Transaction\Frame
*/
protected function createBaseFrame() {
- return new Frame($this->dao, 'BEGIN', 'COMMIT', 'ROLLBACK');
- ;
+ return new Frame($this->dao, 'BEGIN', 'COMMIT', 'ROLLBACK');;
}
/**
$conn = @mysql_connect($db_config['server'], $db_config['username'], $db_config['password']);
if (!$conn) {
$results['severity'] = $this::REQUIREMENT_ERROR;
- $results['details'] = 'Could not connect to database';
+ $results['details'] = 'Could not connect to database';
return $results;
}
}
return $this->cache[$id];
}
+
/**
* @param integer $id
* @throws \CiviCRM_API3_Exception