UIX Documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • None
  • uix
    • data
    • ui
      • control

Classes

  • box
  • control
  • footer
  • grid
  • header
  • help
  • metabox
  • modal
  • notice
  • page
  • panel
  • post_type
  • repeat
  • section
  • uix

Class uix

Core UIX abstract class.

Direct known subclasses

uix\data\data, uix\ui\help, uix\ui\post_type

Indirect known subclasses

uix\ui\box, uix\ui\control, uix\ui\control\number, uix\ui\control\post_relation, uix\ui\control\radio, uix\ui\control\select, uix\ui\control\separator, uix\ui\control\slider, uix\ui\control\template, uix\ui\control\text, uix\ui\control\textarea, uix\ui\control\toggle, uix\ui\control\autocomplete, uix\ui\footer, uix\ui\grid, uix\ui\header, uix\ui\metabox, uix\ui\modal, uix\ui\notice, uix\ui\page, uix\ui\panel, uix\ui\repeat, uix\ui\section, uix\ui\control\button, uix\ui\control\checkbox, uix\ui\control\color, uix\ui\control\editor, uix\ui\control\email, uix\ui\control\file, uix\ui\control\hidden

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

Methods summary

protected
# __construct( string $slug, array $object, uix\ui\uix $parent = null )

UIX constructor

UIX constructor

Parameters

$slug
Object slug
$object
Objects structure array
$parent
Parent UIX Object

Since

1.0.0
public
# setup( )

Autoload Children - Checks structure for nested structures

Autoload Children - Checks structure for nested structures

Since

1.0.0
public
# process_child( $type )

process type key child

process type key child

Since

1.0.0
public
# process_children( $type )

Process all children under type key

Process all children under type key

Since

1.0.0
public
# init( )

All objects loaded - application method for finishing off loading objects

All objects loaded - application method for finishing off loading objects

Since

1.0.0
protected
# actions( )

setup actions and hooks - ovveride to add specific hooks. use parent::actions() to keep admin head

setup actions and hooks - ovveride to add specific hooks. use parent::actions() to keep admin head

Since

1.0.0
public
# set_assets( )

Define core UIX styles - override to register core ( common styles for uix type )

Define core UIX styles - override to register core ( common styles for uix type )

Since

1.0.0
public string
# id( )

uix object id

uix object id

Returns

string
The object ID

Since

1.0.0
public static object|uix()
# register( string $slug, array $object, $parent = null )

Register the UIX objects

Register the UIX objects

Parameters

$slug
Object slug
$object
object structure array
$parent

Returns

object|uix()
object instance

Since

1.0.0
public UIX|null
# __call( string $type, array $args )

Magic caller for adding child objects

Magic caller for adding child objects

Parameters

$type
Type of object to attempt to create
$args
arguments for the caller

Returns

UIX|null

Since

1.0.0
public
# enqueue_core( )

enqueue core assets

enqueue core assets

Since

1.0.0
protected
# enqueue_active_assets( )

runs after assets have been enqueued

runs after assets have been enqueued

Since

1.0.0
public
# set_url( )

Detects the root of the plugin folder and sets the URL

Detects the root of the plugin folder and sets the URL

Since

1.0.0
public
# is_active( )

Determin if a UIX object should be active for this screen Intended to be ovveridden

Determin if a UIX object should be active for this screen Intended to be ovveridden

Since

1.0.0
protected
# base_color( )

Base color helper

Base color helper

Since

1.0.0
public
# set_attributes( )

Sets the wrappers attributes

Sets the wrappers attributes

Since

1.0.0
public string
# build_attributes( )

Build Attributes for the input control

Build Attributes for the input control

Returns

string
Attributes string for applying to an element

Since

1.0.0
abstract public string
# render( )

Render the UIX object

Render the UIX object

Returns

string
HTML of rendered object

Since

1.0.0
public string|null
# render_children( )

Render the child objects

Render the child objects

Returns

string|null

Since

1.0.0

Properties summary

public string $type

The type of UI object

The type of UI object

Since

1.0.0
# 'uix'
public array $struct

Config Structure of object

Config Structure of object

Since

1.0.0
# array()
public array $assets

Set this object type assets

Set this object type assets

Since

1.0.0
# array( 'script' => array(), 'style' => array() )
public string $slug

object slug

object slug

Since

1.0.0
#
public array $child

array of child objects

array of child objects

Since

1.0.0
# array()
public object/uix $parent

Objects parent

Objects parent

Since

1.0.0
#
public array $attributes

List of attributes to apply to the wrapper element

List of attributes to apply to the wrapper element

Since

1.0.0
# array()
protected string $url

Base URL of this class

Base URL of this class

Since

1.0.0
#
protected array $scripts

List of core object scripts ( common scripts )

List of core object scripts ( common scripts )

Since

1.0.0
# array()
protected array $styles

List of core object styles ( common styles )

List of core object styles ( common styles )

Since

1.0.0
# array()
UIX Documentation API documentation generated by ApiGen