[Vtigercrm-commits] [vtiger-commits] r7968 - /vtigercrm/trunk/modules/Campaigns/Campaign.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jul 12 09:12:43 EDT 2006
Author: richie
Date: Wed Jul 12 07:12:39 2006
New Revision: 7968
Log:
functions getSortOrder and getOrderBy has been included
Modified:
vtigercrm/trunk/modules/Campaigns/Campaign.php
Modified: vtigercrm/trunk/modules/Campaigns/Campaign.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/Campaign.php (original)
+++ vtigercrm/trunk/modules/Campaigns/Campaign.php Wed Jul 12 07:12:39 2006
@@ -72,6 +72,35 @@
$this->column_fields = getColumnFields('Campaigns');
}
+ // Mike Crowe Mod --------------------------------------------------------Default ordering for us
+ function getSortOrder()
+ {
+ global $log;
+ $log->debug("Entering getSortOrder() method ...");
+ if(isset($_REQUEST['sorder']))
+ $sorder = $_REQUEST['sorder'];
+ else
+ $sorder = (($_SESSION['CAMPAIGN_SORT_ORDER'] != '')?($_SESSION['CAMPAIGN_SORT_ORDER']):($this->default_sort_order));
+
+ $log->debug("Exiting getSortOrder method ...");
+ return $sorder;
+ }
+
+ function getOrderBy()
+ {
+ global $log;
+ $log->debug("Entering getOrderBy() method ...");
+ if (isset($_REQUEST['order_by']))
+ $order_by = $_REQUEST['order_by'];
+ else
+ $order_by = (($_SESSION['CAMPAIGN_ORDER_BY'] != '')?($_SESSION['CAMPAIGN_ORDER_BY']):($this->default_order_by));
+
+ $log->debug("Exiting getOrderBy method ...");
+ return $order_by;
+ }
+ // Mike Crowe Mod --------------------------------------------------------
+
+
function get_contacts($id)
{
global $log;
More information about the vtigercrm-commits
mailing list