further comment fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 23:32:51 +0000 (12:32 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 23:32:51 +0000 (12:32 +1300)
CRM/Contact/BAO/Query.php
CRM/Contact/Form/Search/Custom/FullText/AbstractPartialQuery.php
CRM/Contact/Form/Search/Custom/FullText/Case.php
CRM/Contact/Form/Search/Custom/FullText/Membership.php
CRM/Contact/StateMachine/Search.php

index 6e837043f3ecb6f4fb8073de2affd49f408b9c1a..5fbd3cc3743abd394f5f6191b74287d48b60fa1b 100644 (file)
@@ -1436,6 +1436,8 @@ class CRM_Contact_BAO_Query {
    * @param int $wildcard
    * @param bool $useEquals
    *
+   * @param string $apiEntity
+   *
    * @return array
    */
   public static function convertFormValues(&$formValues, $wildcard = 0, $useEquals = FALSE, $apiEntity = NULL) {
@@ -1506,6 +1508,8 @@ class CRM_Contact_BAO_Query {
    * @param int $wildcard
    * @param bool $useEquals
    *
+   * @param string $apiEntity
+   *
    * @return array|null
    */
   public static function &fixWhereValues($id, &$values, $wildcard = 0, $useEquals = FALSE, $apiEntity = NULL) {
@@ -2749,6 +2753,7 @@ class CRM_Contact_BAO_Query {
   /**
    * @param $value
    * @param $grouping
+   * @param string $op
    */
   public function includeContactSubTypes($value, $grouping, $op = 'LIKE') {
 
@@ -3288,12 +3293,12 @@ WHERE  id IN ( $groupIDs )
     }
   }
 
-  /*
+  /**
    * Where/qill clause for greeting fields.
    *
    * @param array $values
    */
-  function greetings(&$values) {
+  public function greetings(&$values) {
     list($name, $op, $value, $grouping, $wildcard) = $values;
     $name .= '_display';
 
@@ -5630,6 +5635,19 @@ AND   displayRelType.is_active = 1
     return array($presentClause, $presentSimpleFromClause);
   }
 
+  /**
+   * Build qill for field.
+   *
+   * Qill refers to the query detail visible on the UI.
+   *
+   * @param $daoName
+   * @param $fieldName
+   * @param $fieldValue
+   * @param $op
+   * @param array $pseduoExtraParam
+   *
+   * @return array
+   */
   public static function buildQillForFieldValue($daoName, $fieldName, $fieldValue, $op, $pseduoExtraParam = array()) {
     $pseduoOptions = CRM_Core_PseudoConstant::get($daoName, $fieldName, $pseduoExtraParam = array());
     $qillOperators = CRM_Core_SelectValues::getSearchBuilderOperators();
index a1cdfa8fd1d1570ab5865ed3222723e66c962db1..e4a69036f87ff89479ed9c39fbb0ed11b7012916 100644 (file)
@@ -55,6 +55,11 @@ abstract class CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery {
     $this->label = $label;
   }
 
+  /**
+   * Get label.
+   *
+   * @return string
+   */
   public function getLabel() {
     return $this->label;
   }
index a291ce5065f77918062d20e9a66b430fc1465070..9a02f37bb99b40fac70e6cdf79946c7d06672a8e 100644 (file)
@@ -34,6 +34,9 @@
  */
 class CRM_Contact_Form_Search_Custom_FullText_Case extends CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery {
 
+  /**
+   * Class constructor.
+   */
   public function __construct() {
     parent::__construct('Case', ts('Cases'));
   }
@@ -60,8 +63,11 @@ class CRM_Contact_Form_Search_Custom_FullText_Case extends CRM_Contact_Form_Sear
   }
 
   /**
+   * Prepare queries.
+   *
    * @param string $queryText
    * @param string $entityIDTableName
+   *
    * @return array
    *   list tables/queries (for runQueries)
    */
@@ -111,6 +117,13 @@ GROUP BY   et.entity_id
     return $tables;
   }
 
+  /**
+   * Move IDs.
+   *
+   * @param string $fromTable
+   * @param string $toTable
+   * @param int $limit
+   */
   public function moveIDs($fromTable, $toTable, $limit) {
     $sql = "
 INSERT INTO {$toTable}
index 250aeb044afada26bcf33cb4992c41a2649541b3..abf5708c434d7161e677837134a9f00bc8a8a858 100644 (file)
@@ -97,6 +97,13 @@ WHERE      ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n
     return $tables;
   }
 
+  /**
+   * Move IDs.
+   *
+   * @param string $fromTable
+   * @param string $toTable
+   * @param int $limit
+   */
   public function moveIDs($fromTable, $toTable, $limit) {
     $sql = "
 INSERT INTO {$toTable}
index 606fd52c0f0c2c2efb10aaa1b987c7ed2a2f8f8d..f1f173a27835e8477ad7553f100435dc4578a958 100644 (file)
@@ -43,6 +43,9 @@ class CRM_Contact_StateMachine_Search extends CRM_Core_StateMachine {
 
   /**
    * Class constructor
+   *
+   * @param object $controller
+   * @param \const|int $action
    */
   public function __construct($controller, $action = CRM_Core_Action::NONE) {
     parent::__construct($controller, $action);