Class Laika_Database

Description

Laika_Database class.

Main wrapper class to abstract database transactions.

  • extends: Laika_Abstract_Socket_Service

Located in /library/core/Database.php (line 24)

Laika
   |
   --Laika_Singleton
      |
      --Laika_Abstract_Socket_Service
         |
         --Laika_Database
Variable Summary
static mixed $database
static mixed $driver
static mixed $instance
Method Summary
static void add (mixed $object)
static void alter (mixed $table, mixed $condition)
static void batch_update (mixed $table, mixed $records, mixed $condition)
static void count (mixed $table)
static void create (mixed $table, mixed $fields)
static void delete (mixed $table, mixed $id)
static void drop ()
static void find_with_offset ( $conditions, mixed $table, mixed $limit, mixed $offset, mixed $param, mixed $value)
static void find_with_offset_order_by (mixed $conditions, mixed $table, mixed $limit, mixed $offset, mixed $by, mixed $order)
static void first (mixed $table, mixed $limit, [ $conditions = NULL])
static void init ()
static void insert (mixed $table, array $columns, array $values)
static void last (mixed $table, mixed $limit, [ $conditions = NULL])
static void offset (mixed $table, mixed $column, mixed $limit, mixed $offset)
static void query (mixed $statement, mixed $return)
static void reset_auto_increment (mixed $table, mixed $id)
static void select (mixed $subject, mixed $table,  $condition)
static void select_all (mixed $table)
static void select_all_where (mixed $table, mixed $condition, mixed $subject)
static void select_by (mixed $id, mixed $table)
static void select_column (mixed $subject, mixed $table)
static void select_where ( $subject, mixed $table, mixed $condition, mixed $column)
static void show (mixed $table)
static void update (mixed $table, mixed $record, mixed $data, mixed $condition)
void connect (string $driver)
void disconnect ()
void load_database_driver (string $driver)
Variables
static mixed $database (line 30)
  • access: private
static mixed $driver (line 31)
  • access: private
static mixed $instance (line 29)
  • access: protected

Redefinition of:
Laika_Singleton::$instance
instance
Methods
static method add (line 260)

add function.

  • access: public
static void add (mixed $object)
  • mixed $object
static method alter (line 316)

alter function.

  • access: public
static void alter (mixed $table, mixed $condition)
  • mixed $table
  • mixed $condition
static method batch_update (line 246)

batch_update function.

  • access: public
static void batch_update (mixed $table, mixed $records, mixed $condition)
  • mixed $table
  • mixed $records
  • mixed $condition
static method count (line 358)

count function.

  • access: public
static void count (mixed $table)
  • mixed $table
static method create (line 431)

create function.

  • access: public
static void create (mixed $table, mixed $fields)
  • mixed $table
  • mixed $fields
static method delete (line 274)

delete function.

  • access: public
static void delete (mixed $table, mixed $id)
  • mixed $table
  • mixed $id
static method drop (line 437)
  • access: public
static void drop ()
static method find_with_offset (line 396)

find_with_offset function.

  • access: public
static void find_with_offset ( $conditions, mixed $table, mixed $limit, mixed $offset, mixed $param, mixed $value)
  • mixed $param
  • mixed $value
  • mixed $table
  • mixed $limit
  • mixed $offset
  • $conditions
static method find_with_offset_order_by (line 416)

find_with_offset_order_by function.

  • access: public
static void find_with_offset_order_by (mixed $conditions, mixed $table, mixed $limit, mixed $offset, mixed $by, mixed $order)
  • mixed $conditions
  • mixed $table
  • mixed $limit
  • mixed $offset
  • mixed $by
  • mixed $order
static method first (line 344)

first function.

  • access: public
static void first (mixed $table, mixed $limit, [ $conditions = NULL])
  • mixed $table
  • mixed $limit
  • $conditions
static method init (line 44)

init function.

  • access: public
static void init ()

Redefinition of:
Laika_Singleton::init()
init function.
static method insert (line 213)

insert function.

  • access: public
static void insert (mixed $table, array $columns, array $values)
  • mixed $table
  • array $columns
  • array $values
static method last (line 330)

last function.

  • access: public
static void last (mixed $table, mixed $limit, [ $conditions = NULL])
  • mixed $table
  • mixed $limit
  • $conditions
static method offset (line 378)

offset function.

  • access: public
static void offset (mixed $table, mixed $column, mixed $limit, mixed $offset)
  • mixed $table
  • mixed $column
  • mixed $offset
  • mixed $limit
static method query (line 197)

query function.

  • access: public
static void query (mixed $statement, mixed $return)
  • mixed $statement
  • mixed $return
static method reset_auto_increment (line 302)

reset_auto_increment function.

  • access: public
static void reset_auto_increment (mixed $table, mixed $id)
  • mixed $table
  • mixed $id
static method select (line 107)

select function.

  • access: public
static void select (mixed $subject, mixed $table,  $condition)
  • mixed $subject
  • mixed $table
  • $condition
static method select_all (line 150)

select_all function.

  • access: public
static void select_all (mixed $table)
  • mixed $table
static method select_all_where (line 166)

select_all_where function.

  • access: public
static void select_all_where (mixed $table, mixed $condition, mixed $subject)
  • mixed $subject
  • mixed $table
  • mixed $condition
static method select_by (line 137)

select_by function.

  • access: public
static void select_by (mixed $id, mixed $table)
  • mixed $id
  • mixed $table
static method select_column (line 122)

select_column function.

  • access: public
static void select_column (mixed $subject, mixed $table)
  • mixed $subject
  • mixed $table
static method select_where (line 182)

select_where function.

  • access: public
static void select_where ( $subject, mixed $table, mixed $condition, mixed $column)
  • mixed $column
  • mixed $table
  • mixed $condition
  • $subject
static method show (line 288)

show function.

  • access: public
static void show (mixed $table)
  • mixed $table
static method update (line 230)

update function.

  • access: public
static void update (mixed $table, mixed $record, mixed $data, mixed $condition)
  • mixed $table
  • mixed $record
  • mixed $data
  • mixed $condition
connect (line 73)

connect function.

  • access: public
void connect (string $driver)
  • string $driver

Redefinition of:
Laika_Abstract_Socket_Service::connect()
disconnect (line 93)

disconnect function.

  • access: public
void disconnect ()

Redefinition of:
Laika_Abstract_Socket_Service::disconnect()
load_database_driver (line 62)

load_database_driver function.

  • access: public
void load_database_driver (string $driver)
  • string $driver

Inherited Methods

Inherited From Laika_Abstract_Socket_Service

Laika_Abstract_Socket_Service::connect()
Laika_Abstract_Socket_Service::disconnect()

Inherited From Laika_Singleton

Laika_Singleton::__construct()
Laika_Singleton::from_array()
Laika_Singleton::get()
Laika_Singleton::init()
Laika_Singleton::serialize_me()
Laika_Singleton::set()
Laika_Singleton::switch_instance()
Laika_Singleton::to_array()
Laika_Singleton::unserialize_me()
Laika_Singleton::__call()
Laika_Singleton::__clone()

Inherited From Laika

Laika::__construct()
Laika::from_array()
Laika::img()
Laika::link_to()
Laika::pop_assoc()
Laika::pop_index()
Laika::redirect_to()
Laika::reflect()
Laika::release()
Laika::to_array()
Laika::version()
Laika::__call()
Laika::__get()
Laika::__set()
Class Constants

Inherited Constants

Inherited from Laika

Laika::LAIKA_RELEASE
Laika::LAIKA_VERSION

Documentation generated on Sat, 19 May 2012 02:16:58 -0400 by phpDocumentor 1.4.4