DB_DataObject::staticGet()

DB_DataObject::staticGet()

DB_DataObject::staticGet() -- Simple Get (Select) request, abbreviated and Autoload.

Description

Warning

This method is depreciated, it is recommended to use ::factory() and ->get()

The static method is a combination of factory and get(). staticGet() will cache the returned data in a global variable for quick access within the same request (any data modification query will clear the cache).

Parameter

  • string $class - class name

  • string $key - column (or value if only 2 paramaters are given)

  • mixed $value - value

Return value

object mixed - FALSE or the object

Note

This method must be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.