A MonthYear edit field pair for entering month and year values without an associated day. Example credit card expiration dates.

CloneableInstantiable
ExtendsPHPFUI\Base
ImplementsCountable
Constants
public PHPFUI\Base::DEBUG_SOURCE = 1
Methods
public PHPFUI\Base::__clone()
public __construct(PHPFUI\Page $page, string $name, string $label = '', ?string $value = '')
 
Construct a MonthYear field

    public PHPFUI\Base::__toString() : string
    public PHPFUI\Base::add( $item)
     
    Base add function. Adds to the end of the current objects

    • return Base
    public PHPFUI\Base::addAsFirst( $item)
     
    Base addAsFirst function. Adds to the front of the current object

    • return Base
    public PHPFUI\Base::count() : int
     
    Number of object in this object. Does not count sub objects.

    public PHPFUI\Base::done(bool $done = true) : PHPFUI\Base
     
    Form is done rendering

    public static PHPFUI\Base::getDebug(int $flags = 0) : int
     
    Gets the current debug setting

    public PHPFUI\Base::getResponse() : string
     
    Get the current response

    public PHPFUI\Base::isDone() : bool
     
    Returns true if the page needs no more processing

    public PHPFUI\Base::output() : string
     
    Output the object (convert to string)

    • return string
    public PHPFUI\Base::prepend( $item) : PHPFUI\Base
     
    Add an object in front of existing object

    public setDay(int $day) : PHPFUI\Input\MonthYear
     
    So the field can be treated like a full date, set the default day. Use 0 for last day of the month

      public static PHPFUI\Base::setDebug(int $level = 0) : void
       
      Set the debug level, 1 or higher is on

      public setMaxYear(int $max) : PHPFUI\Input\MonthYear
       
      Set the maximum allowed year (4 digits)

      public setMinYear(int $min) : PHPFUI\Input\MonthYear
       
      Set the minimum allowed year (4 digits)

      public PHPFUI\Base::setRawResponse(string $response) : PHPFUI\Base
       
      Sets the page response directly

      public setRequired(bool $required = true) : PHPFUI\Input\MonthYear
      public PHPFUI\Base::setResponse(string $response, string $color = 'lime') : PHPFUI\Base
       
      Set a response in the standard format ('reponse' and 'color' array)

        public PHPFUI\Base::walk(string $method) : PHPFUI\Base
         
        Recursively walks all objects and calls the passed method on each object where it exists

        Properties
        protected $hidden
        protected $label
        protected $monthSelect
        protected $name
        protected $page
        protected $yearSelect
        Methods
        protected getBody() : string
        protected getEnd() : string
        protected getStart() : string
        Properties
        private $day
        private $maxYear
        private $minYear
        private $month
        private $required
        private $year
        Methods
        public static PHPFUI\Base::getDebug(int $flags = 0) : int
         
        Gets the current debug setting

        public static PHPFUI\Base::setDebug(int $level = 0) : void
         
        Set the debug level, 1 or higher is on

        © 2020 Bruce Wells
        Search Namespaces \ Classes
        ConfigurationNumbers (0-9.) only