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

Class: TreasurySystem

Source Location: d:\website\PhpDocumentor\/treasury/TreasurySystem.php

Class Overview

BitBase
   |
   --LibertyBase
      |
      --LibertySystem
         |
         --TreasurySystem

TreasurySystem


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: LibertySystem

LibertySystem::LibertySystem()
Initiate Class
LibertySystem::getContentStatus()
getContentStatus
LibertySystem::getContentTypeDescription()
Get the description of a given content type
LibertySystem::getMimeThumbnailURL()
Get the URL to the icon for the mime type passed in. This should probably check for files of multiple image types instead of just jpg
LibertySystem::getPluginFunction()
getPluginFunction
LibertySystem::getPluginInfo()
getPluginInfo
LibertySystem::getService()
Get the service details of a given package
LibertySystem::hasService()
Check to see if a package has any service capabilities
LibertySystem::invokeServiceFunctionR()
Return an associate array of the non empty return values of all the functions with the given arguments
LibertySystem::isPluginActive()
Check to see if a given plugin is activ or not
LibertySystem::loadActivePlugins()
Load only active plugins from disk
LibertySystem::loadContentTypes()
Load all available content types into $this->mContentTypes
LibertySystem::registerContentType()
Register new content type
LibertySystem::registerDataTag()
Allow data plugins to register their tag
LibertySystem::registerPlugin()
Allow plugins to register themselves using this function. Data is added directly to the list of existing plugins
LibertySystem::registerService()
Register package as service - hash added to $this->mServices
LibertySystem::resetAllPluginSettings()
This function will purge all plugin settings set in kernel_config. useful when the path to plugins changes or plugins don't seem to be working
LibertySystem::scanAllPlugins()
Load all plugins found in specified directory Use loadActivePlugins to load only the active plugins
LibertySystem::setActivePlugin()
set a single plugin as active and store the appropriate information in the database
LibertySystem::setActivePlugins()
setActivePlugins

Class: LibertyBase

LibertyBase::LibertyBase()
Constructor building on BitBase object
LibertyBase::getLibertyObject()
Given a content_id, this will return and object of the proper type

Class: BitBase

BitBase::BitBase()
During initialisation, we assign a name which is used by the class.
BitBase::debug()
Switch debug level in database
BitBase::display()
This method should be THE method used to display a template. php files should not access $gBitSmarty directly.
BitBase::getDb()
Return pointer to current Database
BitBase::getField()
Returns entry from the mInfo hash if field exists
BitBase::isDatabaseValid()
Determines if there is a valide database connection
BitBase::prepGetList()
Prepares parameters with default values for any getList function
BitBase::setDatabase()
Sets database mechanism for the instance
BitBase::verifyId()
Determines if any given variable exists and is a number

Class Details

[line 26]
TreasurySystem



Tags:



[ Top ]


Class Variables

$mPlugins =

[line 28]


Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


constructor TreasurySystem [line 36]

void TreasurySystem( )

Initiate class



Tags:

access:  public


[ Top ]

method getPluginFunction [line 84]

function getPluginFunction( string $pGuid, string $pFunctionName)

Get the function of the plugin responsible for dealing with a given upload



Tags:

return:  name
access:  public


Overrides LibertySystem::getPluginFunction() (getPluginFunction)

Parameters:

string   $pGuid   GUID of plugin used
string   $pFunctionName   Function type we want to use

[ Top ]

method lookupMimeHandler [line 52]

handler lookupMimeHandler( &$pFileHash, string $pFileHash['mimetype'], string $pFileHash['tmp_name'])

Will return the plugin that is responsible for the given mime type



Tags:

return:  plugin guid TODO: Currently this will return the first found handler - might want to have a sort order?
access:  public


Parameters:

string   $pFileHash['mimetype']   (required if no tmp_name) Mime type of file that needs to be dealt with
string   $pFileHash['tmp_name']   (required if no mimetype) Full path to file that needs to be dealt with
   &$pFileHash  

[ Top ]


Documentation generated on Thu, 15 Feb 2007 20:50:21 +0000 by phpDocumentor 1.3.0