Overview

Packages

  • Controller

Classes

  • Horde_Controller_Base
  • Horde_Controller_Exception
  • Horde_Controller_Filter_Gzip
  • Horde_Controller_FilterRunner
  • Horde_Controller_Null
  • Horde_Controller_Request_Http
  • Horde_Controller_Request_Mock
  • Horde_Controller_Request_Null
  • Horde_Controller_Response
  • Horde_Controller_ResponseWriter_Web
  • Horde_Controller_ResponseWriter_WebDebug
  • Horde_Controller_Runner
  • Horde_Controller_SettingsExporter_Default
  • Horde_Controller_UrlWriter

Interfaces

  • Horde_Controller
  • Horde_Controller_FilterCollection
  • Horde_Controller_PostFilter
  • Horde_Controller_PreFilter
  • Horde_Controller_Request
  • Horde_Controller_RequestConfiguration
  • Horde_Controller_ResponseWriter
  • Horde_Controller_SettingsExporter
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Controller_Base

Base class for controllers that implements the Logged, Injected, and Viewed interfaces.

This class is for convenience, if you decide you wish to use only logging or the injector or views, or neither, you do not have to use it. As long as your controllers implement Horde_Controller, they are runnable.

Horde_Controller_Base implements Horde_Controller
Abstract
Package: Controller
Category: Horde
License: BSD
Author: James Pepin james@bluestatedigital.com
Located at Horde/Controller/Base.php
Methods summary
public
# setInjector( Horde_Injector $injector )

Set the injector for this controller

Set the injector for this controller

Parameters

$injector
injector that this controller should use to create objects

Inject

public Horde_Injector
# getInjector( )

Get the injector for this controller

Get the injector for this controller

Returns

Horde_Injector

The injector previously set for this controller, or a new Horde_Injector_TopLevel

public
# setLogger( Horde_Log_Logger $logger )

Set the Logger for this controller

Set the Logger for this controller

Parameters

$logger
logger to use for this controller

Inject

public Horde_Log_Logger
# getLogger( )

Get the logger assigned to this controller

Get the logger assigned to this controller

Returns

Horde_Log_Logger
The logger for this controller
public
# setView( Horde_View_Base $view )

Set the Horde_View object to be used for this controller

Set the Horde_View object to be used for this controller

Parameters

$view
view object

Inject

public Horde_View_Base
# getView( )

Gets the current view for this controller

Gets the current view for this controller

Returns

Horde_View_Base

The view for this controller, or a new empty Horde_View if none is set

Note

This method will create an empty Horde_View if none has been set.
public
# getRequest( )

Get the current request

Get the current request

public
# getResponse( )

Get the current response

Get the current response

public Horde_Controller_UrlWriter
# getUrlWriter( )

Get an instance of UrlWriter for this controller.

Get an instance of UrlWriter for this controller.

Returns

Horde_Controller_UrlWriter
Methods inherited from Horde_Controller
processRequest()
API documentation generated by ApiGen