* (reference) an assoc array of name/value pairs.
*
* @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set
- * @static
*/
public static function create(&$params) {
$priceSetBAO = new CRM_Upgrade_Snapshot_V4p2_Price_BAO_Set();
* (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set
- * @static
*/
public static function retrieve(&$params, &$defaults) {
return CRM_Core_DAO::commonRetrieve('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $params, $defaults);
*
* @return Object
* DAO object on sucess, null otherwise
- * @static
*/
public static function setIsActive($id, $isActive) {
return CRM_Core_DAO::setFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'is_active', $isActive);
* @return int
* priceSetID
*
- * @static
*/
public static function getDefaultPriceSet($entity = 'contribution') {
if ($entity == 'contribution') {
* @return string
* title
*
- * @static
*/
public static function getTitle($id) {
return CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'title');
* false if fields exist for this set, true if the
* set could be deleted
*
- * @static
*/
public static function deleteSet($id) {
// remove from all inactive forms
*
* @return int|null
* price set id on success, null otherwise
- * @static
*/
public static function getSetId(&$params) {
$fid = NULL;
* @return array
* Array of the field ids
*
- * @static
*/
public static function getFieldIds($id) {
$priceField = new CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field();
* The price set id to copy.
*
* @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field
- * @static
*/
static function copy($id) {
$maxId = CRM_Core_DAO::singleValueQuery("SELECT max(id) FROM civicrm_price_set");
* @param bool $onlyActive
*
* @return int|null|string
- * @static
*/
public static function getPricesetCount($sid, $onlyActive = TRUE) {
$count = 0;
*
* @return array
* associate array of frequency interval and unit
- * @static
*/
public static function getRecurDetails($priceSetId) {
$query = 'SELECT mt.duration_interval, mt.duration_unit
*
* @return Object
* DAO object on sucess, null otherwise
- * @static
*/
public static function setIsQuickConfig($id, $isQuickConfig) {
return CRM_Core_DAO::setFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'is_quick_config', $isQuickConfig);