/** * Get things rolling */ function __construct() { // Call our parent constructor. This ensures our $comparison_operators variable is set properly. parent::__construct(); // Set our label and slug. $this->label = __('Number Of Submissions', 'ninja-forms-conditionals'); $this->slug = 'sub_count'; // Unset the comparison operators we don't want to use for this trigger type. unset($this->comparison_operators['before']); unset($this->comparison_operators['after']); unset($this->comparison_operators['contains']); unset($this->comparison_operators['notcontains']); unset($this->comparison_operators['on']); $this->conditions = array('type' => 'text'); }
/** * Get things rolling */ function __construct() { // Call our parent constructor. This ensures our $comparison_operators variable is set properly. parent::__construct(); // Set our label and slug. $this->label = __('Date Submitted', 'ninja-forms-conditionals'); $this->slug = 'date_submitted'; // Set our type to date. This will control our "value" output if a user selects this trigger. $this->type = 'date'; // Unset the comparison operators we don't want to use for this trigger type. unset($this->comparison_operators['==']); unset($this->comparison_operators['!=']); unset($this->comparison_operators['<']); unset($this->comparison_operators['>']); unset($this->comparison_operators['contains']); unset($this->comparison_operators['notcontains']); $this->conditions = array('type' => 'text'); }