X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FSearch%2FCustom%2FFullText%2FMembership.php;h=250aeb044afada26bcf33cb4992c41a2649541b3;hb=cd5823ae452708e6d0a5fb899b2c3eb3f63be640;hp=2fad2841c93732dc92a9c1a10aaaea56b5779610;hpb=00be918220e9ac8f6d25d12ed3c9c49fddd07ff7;p=civicrm-core.git diff --git a/CRM/Contact/Form/Search/Custom/FullText/Membership.php b/CRM/Contact/Form/Search/Custom/FullText/Membership.php index 2fad2841c9..250aeb044a 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Membership.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Membership.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -34,18 +34,24 @@ */ class CRM_Contact_Form_Search_Custom_FullText_Membership extends CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery { + /** + * Class constructor. + */ public function __construct() { parent::__construct('Membership', ts('Memberships')); } + /** + * @return bool + */ public function isActive() { $config = CRM_Core_Config::singleton(); return in_array('CiviMember', $config->enableComponents) && - CRM_Core_Permission::check('access CiviMember'); + CRM_Core_Permission::check('access CiviMember'); } /** - * {@inheritdoc} + * @inheritDoc */ public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); @@ -62,7 +68,8 @@ class CRM_Contact_Form_Search_Custom_FullText_Membership extends CRM_Contact_For * * @param string $queryText * @param string $entityIDTableName - * @return array list tables/queries (for runQueries) + * @return array + * list tables/queries (for runQueries) */ public function prepareQueries($queryText, $entityIDTableName) { // Note: For available full-text indices, see CRM_Core_InnoDBIndexer @@ -108,4 +115,4 @@ LEFT JOIN civicrm_membership_status cms ON cms.id = cm.status_id CRM_Core_DAO::executeQuery($sql); } -} \ No newline at end of file +}