static $_contribOrSoftCredit = "only_contribs";
/**
- * Function get the import/export fields for contribution
+ * Function get the import/export fields for contribution.
*
* @return array
* self::$_contributionFields associative array of contribution fields
/**
* If contributions are involved, add the specific contribute fields.
*
- * @param $query
+ * @param CRM_Contact_BAO_Query $query
*/
public static function select(&$query) {
// if contribute mode add contribution id
}
/**
- * @param $query
+ * Get where clause.
+ *
+ * @param CRM_Contact_BAO_Query $query
*/
public static function where(&$query) {
$grouping = NULL;
}
/**
- * @param $values
- * @param $query
+ * Get where clause for a single value.
+ *
+ * @param array $values
+ * @param CRM_Contact_BAO_Query $query
*/
public static function whereClauseSingle(&$values, &$query) {
list($name, $op, $value, $grouping, $wildcard) = $values;
}
/**
+ * Get from clause.
+ *
* @param string $name
- * @param $mode
- * @param $side
+ * @param string $mode
+ * @param string $side
*
* @return NULL|string
*/
}
/**
- * @param $query
+ * Initialise the soft credit clause.
+ *
+ * @param CRM_Contact_BAO_Query $query
*/
public static function initializeAnySoftCreditClause(&$query) {
if (self::isSoftCreditOptionEnabled($query->_params)) {
}
/**
+ * Check if soft credits are enables.
+ *
* @param array $queryParams
*
* @return bool
}
/**
+ * Get return properties for soft credits.
+ *
* @param bool $isExportMode
*
* @return array
}
/**
- * @param $row
+ * Function that may not be needed.
+ *
+ * @param array $row
* @param int $id
*/
public static function searchAction(&$row, $id) {
}
/**
- * @param $tables
+ * Get table names.
+ *
+ * @todo better function comment needed - what IS the point of this?
+ *
+ * @param array $tables
*/
public static function tableNames(&$tables) {
// Add contribution table
}
/**
+ * Get fields for recurring contributions.
+ *
* @return array
*/
public static function getRecurringFields() {