xplo.re Medusa Core Framework 3.2
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • Type
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • coreui
  • html
  • htmlbuilder
  • plain
  • yui

Class yui

YUI view proxy.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Set\Mutable implements Core\Mutator
Extended by Core\Field implements Core\Inquiry
Extended by Core\Field\Mutable implements Core\Variator
Extended by Core\View
Extended by Core\View\Driver\yui
Namespace: Core\View\Driver
Package: Core\View\YUI
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Deprecated: Scheduled for removal in Medusa 3.2 in favor of CoreUI.
Located at View/Driver/yui.inc.php

Methods summary

public Core\View\Driver\yui\Node
# __call( string $moduleName, array $arguments )

Retrieves a module instance for the called method name.

Retrieves a module instance for the called method name.

Parameters

$moduleName

The module name equals the called method name (the first letter is automatically converted to uppercase).

$arguments
Array of arguments handed over to module constructor.

Returns

Core\View\Driver\yui\Node
Module instance.

Throws

Core\Exception\InvalidArgument
No YUI module found for given name.

Since

3.1

Overrides

Core\Object::__call
public
# __construct( Core\URI $uri )

Initialises a new View instance.

Initialises a new View instance.

Parameters

$uri
Driver configuration URI.

Since

3.1

Overrides

Core\View::__construct
public
# append( mixed $textOrNode )

Appends content to the internal YUI buffer.

Appends content to the internal YUI buffer.

Parameters

$textOrNode
Arbitrary content string or node to append.

Returns


$this

Since

3.1
public
# clear( )

Resets the internal YUI buffers.

Resets the internal YUI buffers.

Returns


$this

Since

3.1

Overrides

Core\View::clear
public
# on( string $eventName, string $function, array|string $elements = null )

Adds a YUI event listener.

Adds a YUI event listener.

Parameters

$eventName
Name of event to observe.
$function
Function to execute.
$elements

Module dependencies list, followed by additional arguments to the event handler.

Returns


$this

Since

3.1
public boolean
# render( )

Renders contents.

Renders contents.

Returns

boolean

If false is returned, the primary controller will stop rendering the page; this is useful for RPC requests or binary content renderers, that directly write to the client and do not need any further view (e.g. template) processing.

Since

3.1

Overrides

Core\View::render
public
# setDataForUndefinedKey( string $key, mixed $value )

Adds a KDC value to the view. Additionally, if the key is the empty string, the value is added to the internal output buffer. This allows the use of the array-append operator to append values to the internal output buffer verbatim.

Adds a KDC value to the view. Additionally, if the key is the empty string, the value is added to the internal output buffer. This allows the use of the array-append operator to append values to the internal output buffer verbatim.

Parameters

$key
Data field key.
$value
Value to store.

Throws

Core\Exception\UndefinedKey
No data field identified by the given key exists.

Since

3.1

Overrides

Core\View::setDataForUndefinedKey
public
# useModules( array $modules )

Activates YUI modules.

Activates YUI modules.

Parameters

$modules

Associative array of module names as keys and a version number as the value.

Since

3.1

Methods inherited from Core\View

autocreate(), chain(), derive(), encode(), encoder(), uri(), url()

Methods inherited from Core\Field\Mutable

offsetSet(), offsetUnset(), setDataForKey(), setDataForKeys(), setKeyMasquerade(), updateMasqueradedKeys()

Methods inherited from Core\Field

getDataForKey(), getDataForKeys(), getDataForUndefinedKey(), issetDataForKey(), offsetExists(), offsetGet()

Methods inherited from Core\Set\Mutable

__set(), __unset()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __processParameters(), __toString(), attachMethod(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\View

EncoderParameter

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected array $_js

JavaScript buffer array.

JavaScript buffer array.

Since

3.1
#
protected string $_v_buffer

Output buffer.

Output buffer.

Since

3.1
#
protected array $_v_modules

Array of YUI modules used by the current page.

Array of YUI modules used by the current page.

Since

3.1
#
protected array $_v_nodes

Reserved.

Reserved.

Since

3.1
#

Properties inherited from Core\View

$_encoder, $_v_parameters, $_v_proxy, $_v_renderers, $_v_translator, $_v_uri

Properties inherited from Core\Field\Mutable

$_v_masqueradedKeys

Properties inherited from Core\Field

$_v_data

Magic properties inherited from Core\View

$encoder, $parameters, $proxy, $renderers, $translator, $uri

Magic properties inherited from Core\Field\Mutable

$masqueradedKeys

Magic properties inherited from Core\Field

$data

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.2 API documentation generated by ApiGen