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

  • Authentication
  • Authentication_Token
  • AutoLoader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Configuration
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • Version

Class Controller

A controller implements application logic based on models and feeds data to views for rendering a corresponding output.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Controller

Direct known subclasses

Core\Controller\Primary

Abstract
Namespace: Core
Package: Core\Controller
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Controller.inc.php

Methods summary

protected Core\View
# appendView( string $viewName = null, string $proxyInstanceName = Registry::DefaultView )

Creates a new view and assigns it to the controller.

Creates a new view and assigns it to the controller.

Parameters

$viewName

Name of view to create. If null, a view with the same name as the controller is created (replacing the controller namespace by the view namespace in the controller class name).

$proxyInstanceName
Registered ame of proxy view instance.

Returns

Core\View

Since

3.0
protected
# appendViews( array $views )

Assigns a set of existing views to the controller.

Assigns a set of existing views to the controller.

Parameters

$views
Array of views to assign to controller.

Returns


$this

Since

3.0
protected
# dispatch( string|boolean $controllerName, string|boolean $action = false )

Dispatches control to a different controller. All views created by the dispatch controller are assigned to the current controller.

Dispatches control to a different controller. All views created by the dispatch controller are assigned to the current controller.

Parameters

$controllerName
Name of controller to dispatch control to.
$action
Name of action to execute on dispatch controller.

Since

3.0
abstract public
# main( )

Default controller action.

Default controller action.

Remark

The default controller action is executed, if no specific action was requested. Every controller must implement this action.


Since

3.0
protected
# relocate( string|boolean $controllerName, string|boolean $action = false, array $POST = null, array $GET = null )

Resets environment and dispatches to new target. A relocation is similar to a standard dispatch but also overwrites POST and GET arrays. This is especially useful to dispatch to a new destination after an operation succeeded and a new page request should be simulated.

Resets environment and dispatches to new target. A relocation is similar to a standard dispatch but also overwrites POST and GET arrays. This is especially useful to dispatch to a new destination after an operation succeeded and a new page request should be simulated.

Parameters

$controllerName
Name of controller to dispatch control to.
$action
Name of action to execute on dispatch controller.
$POST

New POST data array to set or null to clear all POST variables. Set to false to retain the current POST set. Defaults to null.

$GET

New GET data array to set or null, to clear all GET variables. Set to false to retain the current GET set. Defaults to null.

Since

3.1

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

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

Constants summary

Constants inherited from Core\Object

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

Properties summary

protected array $_v_views

Array of view instances assigned to the controller.

Array of view instances assigned to the controller.

Since

3.0
# array ()

Magic properties inherited from Core\Object

$hash, $uuid

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