* we have a static list of tables.
*/
public function fixSchemaDifferences() {
- //
foreach ($this->indices as $tableName => $ign) {
$todoSqls = $this->reconcileIndexSqls($tableName);
foreach ($todoSqls as $todoSql) {
}
/**
- * Determine if an index is expected to exist
+ * Determine if an index is expected to exist.
*
* @param string $table
* @param array $fields
* FTS index.
*
* @param $table
+ *
* @return array
* (string $indexName => string $sql)
*/
}
/**
- * Generate a "DROP INDEX" statement for each existing FTS index
+ * Generate a "DROP INDEX" statement for each existing FTS index.
*
* @param string $table
+ *
* @return array
* (string $idxName => string $sql)
*/
* Construct a set of SQL statements which will create (or preserve)
* required indices and destroy unneeded indices.
*
- * @param $table
+ * @param string $table
+ *
* @return array
*/
public function reconcileIndexSqls($table) {
}
/**
- * Put the indices into a normalized format
+ * Put the indices into a normalized format.
*
* @param $indices
* @return array
}
/**
+ * Setter for isActive.
+ *
* @param bool $isActive
*/
public function setActive($isActive) {
}
/**
+ * Getter for isActive.
+ *
* @return bool
*/
public function getActive() {
*
* @param array $params
* Assoc array of input parameters for this transaction.
- *
- * @return array|void
*/
public function doDirectPayment(&$params) {
CRM_Core_Error::fatal(ts('This function is not implemented'));
public $participants = array();
/**
+ * Class constructor.
*/
public function __construct() {
parent::__construct();
}
/**
+ * Add participant to cart.
+ *
* @param $participant
*/
public function add_participant($participant) {
foreach (array_keys($contacts_to_delete) as $contact_id) {
CRM_Contact_BAO_Contact::deleteContact($contact_id);
}
- parent::delete();
+ return parent::delete();
}
/**
$this->addFormRule(array('CRM_Event_Form_Registration_Confirm', 'formRule'), $this);
}
+ /**
+ * @param $fields
+ * @param $files
+ * @param $self
+ *
+ * @return array|bool
+ */
public static function formRule($fields, $files, $self) {
$errors = array();
$eventFull = CRM_Event_BAO_Participant::eventFull($self->_eventId, FALSE, CRM_Utils_Array::value('has_waitlist', $self->_values['event']));
/**
* Class constructor
+ *
+ * @param null $title
+ * @param bool|int $action
+ * @param bool $modal
*/
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
/**
* Class constructor
+ *
+ * @param object $controller
+ * @param \const|int $action
*/
public function __construct($controller, $action = CRM_Core_Action::NONE) {
parent::__construct($controller, $action);
/**
* Manipulate header rows for relationship fields
+ *
+ * @param $headerRows
+ * @param $contactRelationshipTypes
*/
public static function manipulateHeaderRows(&$headerRows, $contactRelationshipTypes) {
foreach ($headerRows as & $header) {
/**
* Exclude contacts who are deceased, have "Do not mail" privacy setting,
* or have no street address
+ * @param $exportTempTable
+ * @param $headerRows
+ * @param $sqlColumns
+ * @param $exportParams
*/
public static function postalMailingFormat($exportTempTable, &$headerRows, &$sqlColumns, $exportParams) {
$whereClause = array();
/**
* Class constructor
+ *
+ * @param object $controller
+ * @param \const|int $action
*/
public function __construct($controller, $action = CRM_Core_Action::NONE) {
parent::__construct($controller, $action);
/**
* Class constructor
+ *
+ * @param null $title
+ * @param bool|int $action
+ * @param bool $modal
*/
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
*/
/**
- * This class generates form components for processing a ontribution
- *
+ * This class generates form components for processing a contribution.
*/
class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
/**
* Variable defined for Contribution Page Id
*/
-
public $_pageId = NULL;
public $_id = NULL;
public $_component = NULL;