POT
POT
POT
Main menu

Download

Forum

SVN

Class: OTS_Base_DAO

Source Location: /classes/OTS_Base_DAO.php

Class OTS_Base_DAO

Class Overview

Implements interfaces:

Basic data access object routines.

Basic data access object routines. This class defines basic mechanisms for all classes that will represent database accessors. However no coding logic is defined here - only connection handling and PHP core-related stuff to enable variouse operations with objects.

This class is mostly usefull when you create own extensions for POT code.

Located in /classes/OTS_Base_DAO.php [line 30]



		
				Author(s):
		
API Tags:
Abstract:  

Information Tags:
Version:  0.1.0
Version:  0.0.5
Since:  0.0.5

Properties

Methods

[ Top ]
Descendants
Child Class Description
OTS_Row_DAO Base class for all single-row classes.
OTS_House Wrapper for house information.
OTS_SQLFilter SQL WHERE clause object.

[ Top ]
Property Summary
PDO   $db   Database connection.

[ Top ]
Method Summary
static void   __set_state()   Magic PHP5 method.
OTS_Base_DAO   __construct()   Sets database connection handler.
void   __clone()   Creates clone of object.
array   __sleep()   Magic PHP5 method.
void   __wakeup()   Magic PHP5 method.

[ Top ]
Properties
PDO   $db [line 37]

Database connection.

Database connection.

API Tags:
Access:  protected

Information Tags:
Version:  0.0.5
Since:  0.0.5

[ Top ]
Methods
static method __set_state  [line 97]

  static void __set_state( array $properties  )

Magic PHP5 method.

Magic PHP5 method. Allows object importing from var_export().

Parameters:
array   $properties:  List of object properties.

API Tags:
Access:  public

Information Tags:
Version:  0.1.0
Version:  0.0.5
Since:  0.0.5

[ Top ]
Constructor __construct  [line 44]

  OTS_Base_DAO __construct( )

Sets database connection handler.

Sets database connection handler.


API Tags:
Access:  public

Information Tags:
Version:  0.1.0
Version:  0.0.5
Since:  0.0.5

Redefined in descendants as:

[ Top ]
__clone  [line 82]

  void __clone( )

Creates clone of object.

Creates clone of object. Copy of object needs to have different ID.


API Tags:
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

Redefined in descendants as:

[ Top ]
__sleep  [line 58]

  array __sleep( )

Magic PHP5 method.

Magic PHP5 method. Allows object serialisation.


API Tags:
Return:  List of properties that should be saved.
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

Redefined in descendants as:

[ Top ]
__wakeup  [line 70]

  void __wakeup( )

Magic PHP5 method.

Magic PHP5 method. Allows object unserialisation.


API Tags:
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

[ Top ]