Copied!
CloneableInstantiable
Constants
public PHPFUI\Base::DEBUG_SOURCE = 1
Methods
public PHPFUI\Base::__clone()
public __construct(PHPFUI\Page $page, string $name, Example\Model\Country $model, array $inGroup, array $notInGroup)
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 PHPFUI\Base::count() : int
 

Number of object in this object. Does not count sub objects.

public PHPFUI\Base::done(bool $done = true) : static
 

Form is done rendering

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

Gets the current debug setting

public PHPFUI\ToFromList::getPage() : PHPFUI\Interfaces\Page
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::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\ToFromList::setInIcon(?mixed $inIcon) : static
 

You can customize the "in" icon (or remove it) by passing in html

  • param mixed $inIcon should convert to valid html string
public PHPFUI\ToFromList::setInName(string $inName) : static
 

Sets the header name for the "in" group

public PHPFUI\ToFromList::setOutIcon(?mixed $outIcon) : static
 

You can customize the "out" icon (or remove it) by passing in html

  • param mixed $outIcon should convert to valid html string
public PHPFUI\ToFromList::setOutName(string $outName) : static
 

Sets the header name for the "out" group

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

Sets the page response directly and exits the program

  • return never|static
public PHPFUI\ToFromList::setReadOnly() : 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
Properties
protected PHPFUI\ToFromList::$callback = NULL
protected string PHPFUI\ToFromList::$callbackIndex
protected array PHPFUI\ToFromList::$inGroup
protected PHPFUI\Container PHPFUI\ToFromList::$inIcon
protected string PHPFUI\ToFromList::$inName = 'In'
protected string PHPFUI\ToFromList::$name
protected array PHPFUI\ToFromList::$notInGroup
protected PHPFUI\Container PHPFUI\ToFromList::$outIcon
protected string PHPFUI\ToFromList::$outName = 'Out'
protected PHPFUI\Interfaces\Page PHPFUI\ToFromList::$page
protected bool PHPFUI\ToFromList::$readOnly = false
Methods
protected callback(string $fieldName, string $index, int $userData, string $type) : string
protected PHPFUI\AccordionToFromList::createWindow(array $groups, string $type) : string
 
  • param array $groups
protected PHPFUI\ToFromList::getBody() : string
protected PHPFUI\ToFromList::getEnd() : string
protected PHPFUI\Base::getItems() : array
 
  • return array
protected PHPFUI\ToFromList::getStart() : string
protected PHPFUI\ToFromList::makeDiv(string $id, string $type, string $html) : string
Properties
private Example\Model\Country $model
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