skipv1_0_0Textarea

The Facebook Fanpage Import skip v1 0 Textarea class.

Defined (1)

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

/includes/skip/elements/forms/textarea.php  
  1. class Textarea extends Form_Element{ 
  2.  
  3. /** 
  4. * Constructor 
  5. * @since 1.0 
  6. * @param string $name Name of field. 
  7. * @param array/string $args List of Arguments.  
  8. */ 
  9. function __construct( $name, $label = FALSE, $args = array() ) { 
  10. $defaults = array( 
  11. 'rows' => '',  
  12. 'cols' => '',  
  13. 'description' => '',  
  14. 'default' => '',  
  15. 'disabled' => FALSE 
  16. ); 
  17.  
  18. $args = wp_parse_args( $args, $defaults ); 
  19. $args[ 'label' ] = $label; 
  20. $args[ 'close_tag' ] = TRUE; // No Close tag for Input type Text 
  21.  
  22. parent::__construct( 'textarea', $name, $args ); 
  23.  
  24. if( '' != $args[ 'rows' ] ) 
  25. $this->add_param( 'rows', $args[ 'rows' ] ); 
  26.  
  27. if( '' != $args[ 'cols' ] ) 
  28. $this->add_param( 'cols', $args[ 'cols' ] ); 
  29.  
  30. if( '' != $this->value ) 
  31. $this->add_element( $this->value ); 
  32.  
  33. $this->del_param( 'value' ); // Not needed here