[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/data/includes/ -> DataHandler.inc (summary)

(no description)

File Size: 263 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

DataHandler:: (9 methods):
  __construct()
  instance()
  __get()
  load()
  insert()
  update()
  save()
  delete()
  truncate()

DataQuery:: (5 methods):
  __construct()
  addSubject()
  addJoin()
  addWhere()
  execute()


Class: DataHandler  - X-Ref

Simple access methods to table data. Can be used on any table, not just Data
managed tables.

__construct($table)   X-Ref
Constructor, call indirectly through DataHandler::instance();


instance($table)   X-Ref
Instantiate a DataHandler object.

param: $table

__get($name)   X-Ref
Getter.


load($keys)   X-Ref
Load a record.


insert(&$record)   X-Ref
Insert a record.

param: $record

update(&$record, $update)   X-Ref
Update a record.

param: $record
param: $update

save(&$record, $update = array()   X-Ref
Save one or more records to the table.

If $update is given, method will try to update before.

This method is more comfortable, but slower than using insert() or
update().

param: $record
param:

delete($clause)   X-Ref
Delete one or more records from the table.

param: $clause

truncate()   X-Ref
Empty data table.


Class: DataQuery  - X-Ref

Builds and executes a query, only delete queries are supported at the moment.

__construct($table)   X-Ref
Creates an empty query.

param: $table

addSubject($table)   X-Ref
Add a subject table.


addJoin($table, $join, $type = 'INNER JOIN')   X-Ref
Add a join.

param: $table
param: $join

addWhere($clause, $value = NULL)   X-Ref
Add a where clause.

param: $clause
param: $value

execute()   X-Ref
Build and execute a query.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7