ForwardFW
[ class tree: ForwardFW ] [ index: ForwardFW ] [ all elements ]

Class: ForwardFW_Controller_DataHandler

Source Location: /Controller/DataHandler.php

Class Overview

ForwardFW_Controller
   |
   --ForwardFW_Controller_DataHandler

Managing DataLoading via PEAR::MDB


Author(s):

Implements interfaces:

Variables

Methods


Child classes:

ForwardFW_Controller_DataHandler_MDB2
Managing DataLoading via PEAR::MDB2

Inherited Variables

Inherited Methods

Class: ForwardFW_Controller

ForwardFW_Controller::__construct()
Constructor
ForwardFW_Controller::getConfigParameter()
Returns configuration of the given parameter for this class.
ForwardFW_Controller::getParameter()
Returns content of the given parameter for this class.

Class Details

[line 52]
Managing DataLoading via PEAR::MDB



Tags:



[ Top ]


Class Variables

$arConnectionCache = array()

[line 58]



Tags:

var:  Cache of connections
access:  protected

Type:   array


[ Top ]



Class Methods


static method getInstance [line 79]

static void getInstance( ForwardFW_Interface_Application $application)

Returns an instance of configured DataHandler.



Tags:

access:  public


Parameters:

ForwardFW_Interface_Application   $application   The running application.

[ Top ]

constructor __construct [line 67]

void __construct( ForwardFW_Interface_Application $application)

Constructor



Tags:

access:  public



Implementation of:
ForwardFW_Interface_DataHandler::__construct()
Constructor
Overrides ForwardFW_Controller::__construct() (Constructor)

Parameters:

ForwardFW_Interface_Application   $application   The running application.

[ Top ]

method getCacheSystem [line 126]

ForwardFW_Cache_Frontend getCacheSystem( string $strConnection)

Initializes and returns the caching system depending on connection configuration.



Tags:

return:  The Cache Frontend.
access:  protected


Parameters:

string   $strConnection   Name of connection

[ Top ]

method getConnection [line 181]

mixed getConnection( string $strConnection)

Gets the connection handler.



Tags:

return:  ConnectionHandler
access:  protected


Parameters:

string   $strConnection   Name of connection

[ Top ]

method initConnection [line 197]

void initConnection( string $strConnection)

Loads and initialize the connection handler.



Tags:

access:  public


Overridden in child classes as:

ForwardFW_Controller_DataHandler_MDB2::initConnection()
Loads and initialize the connection handler.


Implementation of:
ForwardFW_Interface_DataHandler::initConnection()
Initialize the given connection.

Parameters:

string   $strConnection   Name of connection

[ Top ]

method loadFrom [line 153]

mixed loadFrom( string $strConnection, $arOptions)

Loads Data from a connection (DB, SOAP, File)



Tags:

return:  Data from the connection.
access:  public


Overridden in child classes as:

ForwardFW_Controller_DataHandler_MDB2::loadFrom()
Loads Data from a connection (DB, SOAP, File)


Implementation of:
ForwardFW_Interface_DataHandler::loadFrom()
Load method.

Parameters:

string   $strConnection   Name of connection
array   $arOptions   Options to load the data

[ Top ]

method loadFromCached [line 98]

mixed loadFromCached( string $strConnection, $arOptions, [ $nCacheTimeout = -1])

Loads Data from cache or from a connection (DB, SOAP, File) if cache failed.



Tags:

return:  Data from the connection.
access:  public



Implementation of:
ForwardFW_Interface_DataHandler::loadFromCached()
Calls the loading if it isn't in cache or cache timed out.

Parameters:

string   $strConnection   Name of connection
array   $arOptions   Options to load the data
   $nCacheTimeout  

[ Top ]

method saveTo [line 167]

mixed saveTo( string $strConnection, $options, array $arOptions)

Saves Data to a connection (DB, SOAP, File)



Tags:

return:  Data from the connection.
access:  public


Overridden in child classes as:

ForwardFW_Controller_DataHandler_MDB2::saveTo()
Saves Data to a connection (DB, SOAP, File)


Implementation of:
ForwardFW_Interface_DataHandler::saveTo()
Save method.

Parameters:

string   $strConnection   Name of connection
array   $arOptions   Options to load the data
array   $options  

[ Top ]


Documentation generated on Sun, 30 Jan 2011 20:46:40 +0100 by phpDocumentor 1.4.3