[ Index ]

PHP Cross Reference of Nucleus CMS 3.64

title

Body

[close]

/nucleus3.64/nucleus/libs/ -> MANAGER.php (summary)

(no description)

File Size: 575 lines (16 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MANAGER:: (33 methods):
  instance()
  MANAGER()
  getItem()
  loadClass()
  existsItem()
  existsCategory()
  getBlog()
  existsBlog()
  existsBlogID()
  getTemplate()
  getKarma()
  getMember()
  setParserProperty()
  getParserProperty()
  _loadClass()
  _loadPlugin()
  getPlugin()
  pluginLoaded()
  pidLoaded()
  pluginInstalled()
  pidInstalled()
  getPidFromName()
  getUpperCaseName()
  clearCachedInfo()
  _initCacheInfo()
  notify()
  _loadSubscriptions()
  addTicketToUrl()
  addTicketHidden()
  getNewTicket()
  checkTicket()
  _cleanUpExpiredTickets()
  _generateTicket()


Class: MANAGER  - X-Ref

This class makes sure each item/weblog/comment object gets requested from
the database only once, by keeping them in a cache. The class also acts as
a dynamic classloader, loading classes _only_ when they are first needed,
hoping to diminish execution time

The class is a singleton, meaning that there will be only one object of it
active at all times. The object can be requested using MANAGER::instance()

instance()   X-Ref
Returns the only instance of this class. Creates the instance if it
does not yet exists. Users should use this function as
$manager =& MANAGER::instance(); to get a reference to the object
instead of a copy


MANAGER()   X-Ref
The constructor of this class initializes the object caches


getItem($itemid, $allowdraft, $allowfuture)   X-Ref
Returns the requested item object. If it is not in the cache, it will
first be loaded and then placed in the cache.
Intended use: $item =& $manager->getItem(1234)


loadClass($name)   X-Ref
Loads a class if it has not yet been loaded


existsItem($id,$future,$draft)   X-Ref
Checks if an item exists


existsCategory($id)   X-Ref
Checks if a category exists


getBlog($blogid)   X-Ref
Returns the blog object for a given blogid


existsBlog($name)   X-Ref
Checks if a blog exists


existsBlogID($id)   X-Ref
Checks if a blog id exists


getTemplate($templateName)   X-Ref
Returns a previously read template


getKarma($itemid)   X-Ref
Returns a KARMA object (karma votes)


getMember($memberid)   X-Ref
Returns a MEMBER object


setParserProperty($name, $value)   X-Ref
Set the global parser preferences


getParserProperty($name)   X-Ref
Get the global parser preferences


_loadClass($name, $filename)   X-Ref
A helper function to load a class

private

_loadPlugin($name)   X-Ref
A helper function to load a plugin

private

getPlugin($name)   X-Ref
Returns a PLUGIN object


pluginLoaded($name)   X-Ref
Checks if the given plugin IS loaded or not


pidLoaded($pid)   X-Ref
No description

pluginInstalled($name)   X-Ref
checks if the given plugin IS installed or not


pidInstalled($pid)   X-Ref
No description

getPidFromName($name)   X-Ref
No description

getUpperCaseName($name)   X-Ref
Retrieve the name of a plugin in the right capitalisation


clearCachedInfo($what)   X-Ref
No description

_initCacheInfo($what)   X-Ref
Loads some info on the first call only


notify($eventName, $data)   X-Ref
A function to notify plugins that something has happened. Only the plugins
that are subscribed to the event will get notified.
Upon the first call, the list of subscriptions will be fetched from the
database. The plugins itsself will only get loaded when they are first needed

param: $eventName
param: $data

_loadSubscriptions()   X-Ref
Loads plugin subscriptions


addTicketToUrl($url)   X-Ref
GET requests: Adds ticket to URL (URL should NOT be html-encoded!, ticket is added at the end)


addTicketHidden()   X-Ref
POST requests: Adds ticket as hidden formvar


getNewTicket()   X-Ref
Get a new ticket
(xmlHTTPRequest AutoSaveDraft uses this to refresh the ticket)


checkTicket()   X-Ref
Checks the ticket that was passed along with the current request


_cleanUpExpiredTickets()   X-Ref
(internal method) Removes the expired tickets


_generateTicket()   X-Ref
(internal method) Generates/returns a ticket (one ticket per page request)




Generated: Mon May 2 16:14:08 2011 Cross-referenced by PHPXref 0.7.1