/** * RBM_FH_Field_UserKeys constructor. * * @since 1.1.0 * * @var string $label * @var array $args * @var mixed $value */ function __construct($label = '', $args = array(), $value = false) { // Prevent multiple instances if (self::$did_one) { return; } else { self::$did_one = true; } parent::__construct('_rbm_user_keys', $label, $args, $value); }
/** * RBM_FH_Field_DatePicker constructor. * * @since 1.1.0 * * @var string $name * @var string $label * @var array $args * @var mixed $value */ function __construct($name, $label = '', $args = array(), $value = false) { // Cannot use function in property declaration $args['default'] = date('m/d/Y'); parent::__construct($name, $label, $args, $value); }
/** * RBM_FH_Field_Radio constructor. * * @since 1.1.0 * * @var string $name * @var string $label * @var array $args * @var mixed $value */ function __construct($name, $label = '', $args = array(), $value = false) { parent::__construct($name, $label, $args, $value); }
/** * RBM_FH_Field_WYSIWYG constructor. * * @since 1.1.0 * * @var string $name * @var string $label * @var array $args * @var mixed $value */ function __construct($name, $label = '', $args = array(), $value = false) { // Can't do this on property declaration $this->defaults['wysiwyg_id'] = $name; parent::__construct($name, $label, $args, $value); }