Redux_Validation_js

The Gravity Forms Advanced File Uploader Redux Validation js class.

Defined (1)

The class is defined in the following location(s).

/inc/ReduxFramework/ReduxCore/inc/validation/js/validation_js.php  
  1. class Redux_Validation_js { 
  2.  
  3. /** 
  4. * Field Constructor. 
  5. * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function 
  6. * @since ReduxFramework 1.0.0 
  7. */ 
  8. function __construct( $parent, $field, $value, $current ) { 
  9.  
  10. $this->parent = $parent; 
  11. $this->field = $field; 
  12. $this->value = $value; 
  13. $this->current = $current; 
  14.  
  15. $this->validate(); 
  16. } //function 
  17.  
  18. /** 
  19. * Field Render Function. 
  20. * Takes the vars and validates them 
  21. * @since ReduxFramework 1.0.0 
  22. */ 
  23. function validate() { 
  24.  
  25. $this->value = esc_js( $this->value ); 
  26. } //function 
  27. } //class