include/resource/ResourceManager.php

Show: inherited
Table of Contents

\ResourceManager

Package: SugarCRM

ResourceManager.php This class is responsible for resource management of SQL queries, file usage, etc.

Properties

Propertyprivate  $_observers= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $instance= ''
static
Details
Type
n/a

Methods

methodprivateResourceManager( ) : void

The constructor; declared as private

methodpublicgetInstance( ) : \The
static

getInstance Singleton method to return static instance of ResourceManager

Returns
Type Description
\The static singleton ResourceManager instance
methodpublicgetObservers( ) : void

methodpublicnotifyObservers( \$msg $msg ) : void

notifyObservers This method notifies the registered observers with the provided message.

Parameters
Name Type Description
$msg \$msg

Message from language file to notify observers with

methodpublicsetup( \$module $module ) : boolean

setup Handles determining the appropriate setup based on client type.

It will create a SoapResourceObserver instance if the $module parameter is set to 'Soap'; otherwise, it will try to create a WebResourceObserver instance.

Parameters
Name Type Description
$module \$module

The module value used to create the corresponding observer

Returns
Type Description
boolean value indicating whether or not an observer was successfully setup
Documentation was generated by DocBlox 0.18.1.