$caseArray[] = $dao->id;
}
- $dao->free();
return $caseArray;
}
$values[$rid]['relationship_direction'] = $dao->relationship_direction;
}
- $dao->free();
return $values;
}
$caseActivities[$caseActivityId]['links'] = $url;
}
- $dao->free();
$caseActivitiesDT = array();
$caseActivitiesDT['data'] = array_values($caseActivities);
$values[] = $details;
}
}
- $dao->free();
return $values;
}
$values[$dao->id]['id'] = $dao->id;
$values[$dao->id]['activity_date'] = $dao->activity_date;
}
- $dao->free();
return $values;
}
while ($dao->fetch()) {
$relatedCaseIds[$dao->case_id] = $dao->case_id;
}
- $dao->free();
return array_values($relatedCaseIds);
}
'links' => $caseView,
);
}
- $dao->free();
return $relatedCases;
}
while ($dao->fetch()) {
$singletonActivityIds[] = $dao->id;
}
- $dao->free();
}
}
if ($dao->fetch()) {
$email = $dao->email;
}
- $dao->free();
return $email;
}
if ($dao->fetch()) {
$openId = $dao->openid;
}
- $dao->free();
return $openId;
}
$dao->save();
}
}
- $dao->free();
}
CRM_Utils_Hook::post('delete', $type, $id, $obj);
$obj->free();
while ($dao->fetch()) {
if ($count) {
$noRows = $dao->rowCount;
- $dao->free();
return array($noRows, NULL);
}
$val = $query->store($dao);
}
$values[$dao->$entityIDField] = $val;
}
- $dao->free();
return array($values, $options);
}
while ($dao->fetch()) {
$ids[] = $dao->id;
}
- $dao->free();
return implode(',', $ids);
}
while ($dao->fetch()) {
$values[] = $dao->TABLE_NAME;
}
- $dao->free();
return $values;
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
$constraint = "`FK_{$tableName}_{$columnName}`";
$query = "SELECT * FROM $tableName WHERE $columnName != '$columnValue'";
$dao = CRM_Core_DAO::executeQuery($query);
$result = $dao->fetch() ? FALSE : TRUE;
- $dao->free();
return $result;
}
$query = "SELECT * FROM $tableName WHERE $columnName IS NOT NULL";
$dao = CRM_Core_DAO::executeQuery($query);
$result = $dao->fetch() ? FALSE : TRUE;
- $dao->free();
return $result;
}
$dao = CRM_Core_DAO::executeQuery($query, $params);
$result = $dao->fetch() ? TRUE : FALSE;
- $dao->free();
return $result;
}
) {
// we typically do this for insert/update/delete statements OR if explicitly asked to
// free the dao
- $dao->free();
}
return $dao;
}