Class Laika_Pdo_Driver

Description

Implements interfaces:

Laika_Pdo_Driver class.

Wrapping PDO in another layer of abstraction may seem silly, but this allows for a failsafe if PDO may be misconfigured on the Server as is the case with standard MySQL + php install on OSX.

  • implements: Laika_Interface_DB_Driver
  • extends: Laika_Singleton

Located in /library/util/Pdo_Driver.php (line 27)

Laika
   |
   --Laika_Singleton
      |
      --Laika_Pdo_Driver
Variable Summary
static mixed $instance
mixed $connection
Method Summary
static void connect ()
static void disconnect ()
static void find_with_offset_order_by ( $cond, mixed $table, mixed $limit, mixed $offset, mixed $by, mixed $order, mixed $conditions)
static void select_all_where (mixed $table, mixed $condition, mixed $column)
static void select_where ( $subject, mixed $table, mixed $condition, mixed $column)
void add (mixed $object)
void alter (mixed $table, mixed $condition)
void batch_update (mixed $table, mixed $records, mixed $condition)
void count (mixed $table)
void create (mixed $table, mixed $params)
void delete (mixed $table, mixed $id)
void drop ()
void find_with_offset ( $cond, mixed $table, mixed $limit, mixed $offset, mixed $param, mixed $value)
void first ( $table,  $limit, [ $conditions = NULL])
void insert ( $table,  $cols,  $vals, mixed $statement)
void last ( $table,  $limit, [ $conditions = NULL])
void offset (mixed $table, mixed $column, mixed $limit, mixed $offset)
void query (mixed $statement,  $return)
void reset_auto_increment (mixed $table, mixed $id)
void select (mixed $subject, mixed $table,  $condition)
void select_all (mixed $table)
void select_by (mixed $id,  $table)
void show (mixed $table)
void update (mixed $table, mixed $record, mixed $data, mixed $condition)
Variables
static mixed $instance (line 29)
  • access: protected

Redefinition of:
Laika_Singleton::$instance
instance
mixed $connection = NULL (line 30)
  • access: private
Methods
static method connect (line 39)

connect function.

  • access: public
static void connect ()

Implementation of:
Laika_Interface_DB_Driver::connect()
static method disconnect (line 53)

disconnect function.

  • access: public
static void disconnect ()

Implementation of:
Laika_Interface_DB_Driver::disconnect()
static method find_with_offset_order_by (line 380)

find_with_offset_order_by function.

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

select function.

  • access: public
static void select_all_where (mixed $table, mixed $condition, mixed $column)
  • mixed $column
  • mixed $table
  • mixed $condition
static method select_where (line 124)

select function.

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

Implementation of:
Laika_Interface_DB_Driver::select_where()
add (line 208)

add function.

  • access: public
void add (mixed $object)
  • mixed $object

Implementation of:
Laika_Interface_DB_Driver::add()
alter (line 280)

alter function.

  • access: public
void alter (mixed $table, mixed $condition)
  • mixed $table
  • mixed $condition
batch_update (line 190)

batch_update function.

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

count function.

  • access: public
void count (mixed $table)
  • mixed $table
create (line 393)

create function.

  • access: public
void create (mixed $table, mixed $params)
  • mixed $table
  • mixed $params

Implementation of:
Laika_Interface_DB_Driver::create()
delete (line 240)

delete function.

  • access: public
void delete (mixed $table, mixed $id)
  • mixed $table
  • mixed $id

Implementation of:
Laika_Interface_DB_Driver::delete()
drop (line 403)
  • access: public
void drop ()
find_with_offset (line 362)

find_with_offset function.

  • access: public
void find_with_offset ( $cond, mixed $table, mixed $limit, mixed $offset, mixed $param, mixed $value)
  • mixed $param
  • mixed $value
  • mixed $table
  • mixed $limit
  • mixed $offset
  • $cond
first (line 307)

first function.

  • access: public
void first ( $table,  $limit, [ $conditions = NULL])
  • $table
  • $limit
  • $conditions
insert (line 159)

insert function.

  • access: public
void insert ( $table,  $cols,  $vals, mixed $statement)
  • mixed $statement
  • $table
  • $cols
  • $vals

Implementation of:
Laika_Interface_DB_Driver::insert()
last (line 291)

last function.

  • access: public
void last ( $table,  $limit, [ $conditions = NULL])
  • $table
  • $limit
  • $conditions
offset (line 346)

offset function.

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

query function.

  • access: public
void query (mixed $statement,  $return)
  • mixed $statement
  • $return

Implementation of:
Laika_Interface_DB_Driver::query()
reset_auto_increment (line 266)

reset_auto_increment function.

  • access: public
void reset_auto_increment (mixed $table, mixed $id)
  • mixed $table
  • mixed $id
select (line 66)

select function.

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

select_all function.

  • access: public
void select_all (mixed $table)
  • mixed $table

Implementation of:
Laika_Interface_DB_Driver::select_all()
select_by (line 79)

select_by function.

  • access: public
void select_by (mixed $id,  $table)
  • mixed $id
  • $table

Implementation of:
Laika_Interface_DB_Driver::select_by()
show (line 253)

show function.

  • access: public
void show (mixed $table)
  • mixed $table

Implementation of:
Laika_Interface_DB_Driver::show()
update (line 176)

update function.

  • access: public
void update (mixed $table, mixed $record, mixed $data, mixed $condition)
  • mixed $table
  • mixed $record
  • mixed $data
  • mixed $condition

Implementation of:
Laika_Interface_DB_Driver::update()

Inherited Methods

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:17:02 -0400 by phpDocumentor 1.4.4