Commit 31aaf096 authored by Matthew Wire's avatar Matthew Wire

Make all form task inherit from Core_Form_Task otherwise export can fail when...

Make all form task inherit from Core_Form_Task otherwise export can fail when accessed from advanced search because properties are inaccessible
parent 58d4a38f
...@@ -32,37 +32,10 @@ ...@@ -32,37 +32,10 @@
*/ */
/** /**
* Class for activity task actions. * Class for activity form task actions.
* FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Activity_Form_Task extends CRM_Core_Form { class CRM_Activity_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/**
* The array that holds all the contact ids.
*
* @var array
*/
public $_contactIds;
/** /**
* The array that holds all the member ids. * The array that holds all the member ids.
......
...@@ -34,35 +34,7 @@ ...@@ -34,35 +34,7 @@
/** /**
* This class generates form components for relationship. * This class generates form components for relationship.
*/ */
class CRM_Campaign_Form_Task extends CRM_Core_Form { class CRM_Campaign_Form_Task extends CRM_Core_Form_Task {
/**
* The additional clause that we restrict the search.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The task being performed
*
* @var int
*/
protected $_task;
/**
* The array that holds all the contact ids
*
* @var array
*/
public $_contactIds;
/**
* The array that holds all the component ids
*
* @var array
*/
protected $_componentIds;
/** /**
* The array that holds all the voter ids * The array that holds all the voter ids
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
/** /**
* This class generates form components for search-result tasks. * This class generates form components for search-result tasks.
*/ */
class CRM_Contact_Form_Task extends CRM_Core_Form { class CRM_Contact_Form_Task extends CRM_Core_Form_Task {
/** /**
* The task being performed * The task being performed
......
...@@ -32,30 +32,10 @@ ...@@ -32,30 +32,10 @@
*/ */
/** /**
* This class generates form components for relationship. * Class for contribute form task actions.
* FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Contribute_Form_Task extends CRM_Core_Form { class CRM_Contribute_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/** /**
* The array that holds all the contribution ids. * The array that holds all the contribution ids.
...@@ -64,13 +44,6 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form { ...@@ -64,13 +44,6 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form {
*/ */
protected $_contributionIds; protected $_contributionIds;
/**
* The array that holds all the contact ids.
*
* @var array
*/
public $_contactIds;
/** /**
* The array that holds all the mapping contribution and contact ids. * The array that holds all the mapping contribution and contact ids.
* *
......
...@@ -34,31 +34,10 @@ ...@@ -34,31 +34,10 @@
*/ */
/** /**
* This class generates task actions for CiviEvent * Class for event form task actions.
* * FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Event_Form_Task extends CRM_Core_Form { class CRM_Event_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/** /**
* The array that holds all the participant ids. * The array that holds all the participant ids.
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
/** /**
* This class gets the name of the file to upload * This class gets the name of the file to upload
*/ */
class CRM_Export_Form_Select extends CRM_Core_Form { class CRM_Export_Form_Select extends CRM_Core_Form_Task {
/** /**
* Various Contact types. * Various Contact types.
...@@ -70,20 +70,6 @@ class CRM_Export_Form_Select extends CRM_Core_Form { ...@@ -70,20 +70,6 @@ class CRM_Export_Form_Select extends CRM_Core_Form {
public $_componentTable; public $_componentTable;
/**
* Must be set to entity table name (eg. civicrm_participant) by child class
*
* @var string
*/
static $tableName = NULL;
/**
* Must be set to entity shortname (eg. event)
*
* @var string
*/
static $entityShortname = NULL;
/** /**
* Build all the data structures needed to build the form. * Build all the data structures needed to build the form.
* *
......
...@@ -34,31 +34,10 @@ ...@@ -34,31 +34,10 @@
*/ */
/** /**
* This class generates task actions for CiviEvent * Class for grant form task actions.
* * FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Grant_Form_Task extends CRM_Core_Form { class CRM_Grant_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/** /**
* The array that holds all the grant ids. * The array that holds all the grant ids.
......
...@@ -32,30 +32,10 @@ ...@@ -32,30 +32,10 @@
*/ */
/** /**
* This class generates form components for relationship * Class for mailing form task actions.
* FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Mailing_Form_Task extends CRM_Core_Form { class CRM_Mailing_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/** /**
* Build all the data structures needed to build the form. * Build all the data structures needed to build the form.
......
...@@ -34,38 +34,10 @@ ...@@ -34,38 +34,10 @@
*/ */
/** /**
* Class for civimember task actions * Class for member form task actions.
* * FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Member_Form_Task extends CRM_Core_Form { class CRM_Member_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/**
* The array that holds all the contact ids.
*
* @var array
*/
public $_contactIds;
/** /**
* The array that holds all the member ids. * The array that holds all the member ids.
......
...@@ -32,30 +32,10 @@ ...@@ -32,30 +32,10 @@
*/ */
/** /**
* This class generates task actions for CiviEvent. * Class for pledge form task actions.
* FIXME: This needs refactoring to properly inherit from CRM_Core_Form_Task and share more functions.
*/ */
class CRM_Pledge_Form_Task extends CRM_Core_Form { class CRM_Pledge_Form_Task extends CRM_Core_Form_Task {
/**
* The task being performed.
*
* @var int
*/
protected $_task;
/**
* The additional clause that we restrict the search with.
*
* @var string
*/
protected $_componentClause = NULL;
/**
* The array that holds all the component ids.
*
* @var array
*/
protected $_componentIds;
/** /**
* The array that holds all the pledge ids. * The array that holds all the pledge ids.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment