Quantity.php 688 B

1234567891011121314151617181920212223242526272829303132
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. /**
  3. * Class NF_Fields_ProductQuantity
  4. */
  5. class NF_Fields_Quantity extends NF_Fields_Number
  6. {
  7. protected $_name = 'quantity';
  8. protected $_section = 'pricing';
  9. protected $_icon = 'hashtag';
  10. protected $_aliases = array();
  11. protected $_type = 'quantity';
  12. protected $_templates = 'number';
  13. protected $_test_value = 'Lorem ipsum';
  14. protected $_settings = array( 'product_assignment', 'number' );
  15. protected $_settings_exclude = array( 'required', 'input_limit_set' );
  16. public function __construct()
  17. {
  18. parent::__construct();
  19. $this->_nicename = __( 'Quantity', 'ninja-forms' );
  20. }
  21. }