skipv1_0_0Textfield

The Facebook Fanpage Import skip v1 0 Textfield class.

Defined (1)

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

/includes/skip/elements/forms/textfield.php  
  1. class Textfield extends Form_Element{ 
  2.  
  3. /** 
  4. * Constructor 
  5. * @since 1.0.0 
  6. * @param string $name Name of field. 
  7. * @param string $label Label of field. 
  8. * @param string $description Description of field which is shown under element 
  9. * @param array/string $args List of Arguments. 
  10. */ 
  11. function __construct( $name, $label = FALSE, $args = array() ) { 
  12. $defaults = array( 
  13. 'description' => '',  
  14. 'default' => '',  
  15. 'disabled' => FALSE 
  16. ); 
  17. $args = wp_parse_args( $args, $defaults ); 
  18. $args[ 'label' ] = $label; 
  19.  
  20. parent::__construct( 'input', $name, $args ); 
  21.  
  22. $this->add_param( 'type', 'text' ); // This is a text field!