Copied!
CloneableInstantiable
Constants
public PHPFUI\Base::DEBUG_SOURCE = 1
Methods
public PHPFUI\Base::__clone()
public __construct(bool $vertical = false)
 
  • param bool $vertical default false, pass true for a vertical tab structure
public PHPFUI\Base::__toString() : string
public PHPFUI\Base::add(?mixed $item) : static
 

Base add function. Adds to the end of the current objects

  • param mixed $item should be convertable to string
public PHPFUI\Base::addAsFirst(?mixed $item) : static
 

Base addAsFirst function. Adds to the front of the current object

  • param mixed $item should be convertable to string
public addTab(string $tabText, string $content, bool $active = false) : static
 
  • param string $tabText to display on the tab
  • param string $content html to be displayed when the tab is selected, can be any Base or plain html
  • param bool $active optional, default false
public count() : int
public PHPFUI\Base::done(bool $done = true) : static
 

Form is done rendering

public getContent() : PHPFUI\HTML5Element
 

Return the content section for the Tabs. You can call this separately and not add the Tabs object to the page if you need more control of where the content is located in the page. If you add the Tabs object to the page, it will add the tabs section, then the content section immediately after, which you might not want. If you call this separately, you are resposible for adding both the Tabs and content sections to the page.

public static PHPFUI\Base::getDebug(int $flags = 0) : int
 

Gets the current debug setting

public PHPFUI\Base::getResponse() : string
 

Get the current response

public getTabs() : PHPFUI\UnorderedList
 

Return the Tabs section. You can call this separately and not add the Tabs object to the page if you need more control of where the tabs are located in the page. If you add the Tabs object to the page, it will add the tabs section, then the content section immediately after, which you might not want.

public PHPFUI\Base::isDone() : bool
 

Returns true if the page needs no more processing

public PHPFUI\Base::prepend(?mixed $item) : static
 

Add an object in front of existing object

public static PHPFUI\Base::setDebug(int $level = 0) : void
 

Set the debug level, 1 or higher is on

public PHPFUI\Base::setRawResponse(string $response, bool $asJSON = true) : static
 

Sets the page response directly and exits the program

  • return never|static
public PHPFUI\Base::setResponse(string $response, string $color = 'lime') : static
 

Set a response in the standard format ('reponse' and 'color' array) exit will be called after returning the encoded response

  • param string $response to return
  • param string $color used for the save button
  • return never|static
public PHPFUI\Base::walk(string $method, ?mixed $argument = NULL) : static
 

Recursively walks all objects and calls the passed method on each object where it exists

  • param string $method to call on the object in the collection
  • param mixed $argument to pass to the method
Methods
protected getBody() : string
protected getEnd() : string
protected PHPFUI\Base::getItems() : array
 
  • return array
protected getStart() : string
Properties
private PHPFUI\HTML5Element $contentSection
private array $tabs = []
 
  • var array<string,array<string,string|bool>>
private ?PHPFUI\UnorderedList $tabSection = NULL
private bool $vertical
Methods
private generate() : bool
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

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration