Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19773

Call hook_civicrm_selectWhereClause from the BAOs

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Core Team Funds
    • Verified?:
      No

      Description

      As of today the hook_civicrm_selectWhereClause is only called from the API. It needs to be called from the BAOs, the CRM_Report_Form class and most probably the CRM_Utils_Sql_Select class.

      This issue is only related to implementing the hook in the BAOs. Other implementation will be listed in additional tickets.

      Calling this hook consistently will enable the re-implementation of several pieces of code that now live in core through extensions - Multisite, Financial ACLs and eventually ACLs. The last two would be 'core extensions' packaged and shipped with core.

      For multisite, priority BAO are: Membership_Type, Event, Contribution_Page and Payment Processor. We can then extend (if relevant) to the lower-level 'utility' and 'settings' tables (Menu, Navigation, Job, Option_Value, Mail_Settings, Word_Replacement, etc).

        Attachments

          Activity

            People

            • Assignee:
              nganivet Nicolas Ganivet
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h