| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
+
+/**
+ * Class CRM_Utils_Weight
+ */
class CRM_Utils_Weight {
/**
* @var array, list of GET fields which must be validated
return $resultDAO;
}
+ /**
+ * @param $rows
+ * @param $daoName
+ * @param $idName
+ * @param $returnURL
+ * @param null $filter
+ */
static function addOrder(&$rows, $daoName, $idName, $returnURL, $filter = NULL) {
if (empty($rows)) {
return;
self::fixOrderOutput($url);
}
+ /**
+ * @param $url
+ */
static function fixOrderOutput($url) {
if (empty($_GET['snippet']) || $_GET['snippet'] !== 'json') {
CRM_Utils_System::redirect($url);