UIX Documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • None
  • uix
    • data
    • ui
      • control

Classes

  • ui

Class ui

UI loader and handler class. This forms a single instance with UI objects attached

Namespace: uix
Package: uix
Author: David Cramer
Located at classes/uix/ui.php

Methods summary

public
# auto_load( )

UI structure auto load

UI structure auto load

Since

1.0.0
public object
# add( string $type, string $slug, array $structure, object $parent = null )

Add a single structure object

Add a single structure object

Parameters

$type
The type of object to add
$slug
The objects slug to add
$structure
The objects structure
$parent
object

Returns

object
The instance of the object type or null if invalid

Since

1.0.0
public array|null
# get_register_callback( string $type )

Returns a callback for registering the object or null if invalid type

Returns a callback for registering the object or null if invalid type

Parameters

$type
The type of object to get register callback for

Returns

array|null
Callback array for registering an object or null if invalid

Since

1.0.0
public boolean
# is_callable( string $type )

Checks if the object type is callable

Checks if the object type is callable

Parameters

$type
The type of object to check

Returns

boolean

Since

1.0.0
public
# add_objects( string $type, array $objects, object $parent = null )

Registers multiple objects

Registers multiple objects

Parameters

$type
The type of object to add
$objects
The objects structure
$parent
object

Since

1.0.0
public static uix\ui
# get_instance( array $request_data )

Return an instance of this class.

Return an instance of this class.

Parameters

$request_data
Current REQUEST superglobals

Returns

uix\ui
A single instance of this class

Since

1.0.0

Codecoverageignore

public
# register( array|string $arr )

Register the UIX object paths for autoloading

Register the UIX object paths for autoloading

Parameters

$arr
path, or array of paths to structures to autoload

Since

1.0.0
public array
# request_vars( string $type )

Handy method to get request vars

Handy method to get request vars

Parameters

$type
Request type to get

Returns

array
Request vars array

Since

1.0.0
public
# silent_warning( integer $errno, string $errstr, string $errfile, integer $errline )

Handles E_WARNING error notices whan the file loader runs.

Handles E_WARNING error notices whan the file loader runs.

Parameters

$errno
Contains the level of the error raised, as an integer.
$errstr
Contains the error message.
$errfile
Which contains the filename that the error was raised in.
$errline
which contains the line number the error was raised at.

Since

1.0.0

Link

http://php.net/manual/en/function.set-error-handler.php
public
# set_assets( array $assets )

Sets assets to be enqueued for this instance.

Sets assets to be enqueued for this instance.

Parameters

$assets
the asset to enqueue where the key is the type and the value the asset
protected
# enqueue( array $set, string $type )

enqueue a set of styles and scripts

enqueue a set of styles and scripts

Parameters

$set
Array of assets to be enqueued
$type
The type of asset

Since

1.0.0

Properties summary

protected array $locations

Array of definitions locations

Array of definitions locations

Since

1.0.0
# array()
public array $ui

Array of object instances

Array of object instances

Since

1.0.0
#
protected array $data

Array of post and get data

Array of post and get data

Since

1.0.0
# array()
protected static object/UI $instance

Holds instance

Holds instance

Since

1.0.0
# null
UIX Documentation API documentation generated by ApiGen