}
// also get values array for relation_target_name
// for relatinship search we always do wildcard
- $relationType = $this->getWhereValues('relation_type_id', $grouping);
+ $relationType = $this->getWhereValues('relation_type_id', $grouping);
$targetName = $this->getWhereValues('relation_target_name', $grouping);
$relStatus = $this->getWhereValues('relation_status', $grouping);
$relPermission = $this->getWhereValues('relation_permission', $grouping);
$params = array('id' => $rel[0]);
$rType = CRM_Contact_BAO_RelationshipType::retrieve($params, $rTypeValues);
}
- if ( empty($rTypeValues) ) {
+ if (empty($rTypeValues)) {
// if we don't know which end of the relationship we are dealing with we'll create a temp table
//@todo unless we are dealing with a target group
self::$_relType = 'reciprocal';
* @param $fieldName
* @param $fieldDef
* @param $params
- * @param $daoName
+ *
*/
protected function assignTestFK($fieldName, $fieldDef, $params) {
$required = CRM_Utils_Array::value('required', $fieldDef);
/**
* Given the component id, compute the contact id
* since its used for things like send email
+ *
+ * @param $componentIDs
+ * @param $tableName
+ *
+ * @return array
*/
public static function &getContactIDsFromComponent(&$componentIDs, $tableName) {
$contactIDs = array();
/**
* Creates a test object, including any required objects it needs via recursion
- *createOnly: only create in database, do not store or return the objects (useful for perf testing)
- *ONLY USE FOR TESTING
+ * createOnly: only create in database, do not store or return the objects (useful for perf testing)
+ * ONLY USE FOR TESTING
+ *
+ * @param $daoName
+ * @param array $params
+ * @param int $numObjects
+ * @param bool $createOnly
+ *
+ * @return
*/
static function createTestObject(
$daoName,
}
}
}
+
$object->save();
if (!$createOnly) {
/**
* deletes the this object plus any dependent objects that are associated with it
* ONLY USE FOR TESTING
+ *
+ * @param $daoName
+ * @param array $params
*/
static function deleteTestObjects($daoName, $params = array(
)) {