Comments: on this page. Click to read or post your own.

Class DataObjectLog

Description

A DataObjectLog is a log of changes that have been made to the database in this session.

It was designed to help with updates to the CMS tree, and could be used wherever an Ajax call needs to update a complex on-screen representation of your data.

Located in /sapphire/core/model/DataObjectLog.php (line 9)

Object
   |
   --DataObjectLog
Variable Summary
static array $added
static mixed $changed
static array $deleted
static mixed $enabled
Method Summary
static void addedObject (DataObject $object)
static void changedObject (DataObject $object)
static void deletedObject (DataObject $object)
static array getAdded (string $className)
static array getByClass (string $className, array $set)
static array getChanged (string $className)
static array getDeleted (string $className)
Variables
static array $added = array() (line 20)

The DataObjects that have been added to the database in this session.

static mixed $changed = array() (line 31)

The DataObjects that have been changed in the database in this session.

static array $deleted = array() (line 26)

The DataObjects that have been deleted from the database in this session.

static mixed $enabled = false (line 13)

This must be set to true for the DataObjectLog to work

Inherited Variables

Inherited from Object

Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Methods
static method addedObject (line 37)

Add this DataObject as added in the log.

static void addedObject (DataObject $object)
static method changedObject (line 57)

Add this DataObject as changed in the log.

static void changedObject (DataObject $object)
static method deletedObject (line 47)

Add this DataObject as deleted in the log.

static void deletedObject (DataObject $object)
static method getAdded (line 69)

Get all DataObjects that have been added this session that are of the class or a subclass of the class provided.

static array getAdded (string $className)
  • string $className: The class name.
static method getByClass (line 100)

Get all DataObjects in the given set that are of the class or a subclass of the class provided.

static array getByClass (string $className, array $set)
  • string $className: The class name.
  • array $set: The set to search in.
static method getChanged (line 89)

Get all DataObjects that have been changed this session that are of the class or a subclass of the class provided.

static array getChanged (string $className)
  • string $className: The class name.
static method getDeleted (line 79)

Get all DataObjects that have been deleted this session that are of the class or a subclass of the class provided.

static array getDeleted (string $className)
  • string $className: The class name.

Inherited Methods

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:39:57 +1300 by phpDocumentor 1.3.2