Skip to content
Snippets Groups Projects
Commit 902d43c6 authored by Christian Wach's avatar Christian Wach :soccer:
Browse files

Further property rationalisation

parent c75fa9b6
No related branches found
No related tags found
No related merge requests found
......@@ -29,22 +29,13 @@ class CFAFA_ACFE_Form_Action_Base extends acfe_module_form_action {
public $name = '';
/**
* Form Action Label.
* Form Action Name Placeholder.
*
* @since 0.2.0
* @access public
* @var string
*/
public $action_label = '';
/**
* Form Action Alias Placeholder.
*
* @since 0.2.0
* @since 0.2.1
* @access public
* @var string
*/
public $alias_placeholder = '';
public $name_placeholder = '';
/**
* Field Key Prefix.
......@@ -229,7 +220,7 @@ class CFAFA_ACFE_Form_Action_Base extends acfe_module_form_action {
],
'acfe_permissions' => '',
'default_value' => '',
'placeholder' => $this->alias_placeholder,
'placeholder' => $this->name_placeholder,
'prepend' => '',
'append' => '',
'maxlength' => '',
......
......@@ -46,24 +46,6 @@ class CFAFA_ACFE_Form_Action_Email extends CFAFA_ACFE_Form_Action_Base {
*/
public $name = 'email_cfafa';
/**
* Field Key Prefix.
*
* @since 0.2.0
* @access public
* @var string
*/
public $field_key = 'field_';
/**
* Field Name Prefix.
*
* @since 0.2.0
* @access public
* @var string
*/
public $field_name = '';
/**
* Array of translatable mapped Email Fields.
*
......@@ -88,7 +70,7 @@ class CFAFA_ACFE_Form_Action_Email extends CFAFA_ACFE_Form_Action_Base {
$this->title = __( 'Conditional Email action', 'conditional-form-actions-for-acfe' );
// Alias Placeholder for this Form Action.
$this->alias_placeholder = __( 'Conditional Email', 'conditional-form-actions-for-acfe' );
$this->name_placeholder = __( 'Conditional Email', 'conditional-form-actions-for-acfe' );
// Declare the mapped Email Fields with translatable titles.
$this->mapped_email_fields = [
......
......@@ -46,24 +46,6 @@ class CFAFA_ACFE_Form_Action_Product extends CFAFA_ACFE_Form_Action_Base {
*/
public $name = 'woo_cfafa_product';
/**
* Field Key Prefix.
*
* @since 0.2.0
* @access public
* @var string
*/
public $field_key = 'field_';
/**
* Field Name Prefix.
*
* @since 0.2.0
* @access public
* @var string
*/
public $field_name = '';
/**
* Constructor.
*
......@@ -79,7 +61,7 @@ class CFAFA_ACFE_Form_Action_Product extends CFAFA_ACFE_Form_Action_Base {
$this->title = __( 'WooCommerce Product action', 'conditional-form-actions-for-acfe' );
// Alias Placeholder for this Form Action.
$this->alias_placeholder = __( 'WooCommerce Product', 'conditional-form-actions-for-acfe' );
$this->name_placeholder = __( 'WooCommerce Product', 'conditional-form-actions-for-acfe' );
// Declare core Fields for this Form Action.
$this->item = [
......
......@@ -61,7 +61,7 @@ class CFAFA_ACFE_Form_Action_Redirect extends CFAFA_ACFE_Form_Action_Base {
$this->title = __( 'Conditional Redirect action', 'conditional-form-actions-for-acfe' );
// Alias Placeholder for this Form Action.
$this->alias_placeholder = __( 'Conditional Redirect', 'conditional-form-actions-for-acfe' );
$this->name_placeholder = __( 'Conditional Redirect', 'conditional-form-actions-for-acfe' );
// Declare core Fields for this Form Action.
$this->item = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment