PHPLinq_Adapter
[ class tree: PHPLinq_Adapter ] [ index: PHPLinq_Adapter ] [ all elements ]

Class: PHPLinq_Adapter_Abstract

Source Location: /PHPLinq/Adapter/Abstract.php

Class Overview


PHPLinq_Adapter_Abstract


Author(s):

Copyright:

  • Copyright (c) 2008 - 2009 PHPLinq (http://www.codeplex.com/PHPLinq)

Variables

Methods


Child classes:

PHPLinq_Adapter_Mysqli
PHPLinq_Adapter_Mysqli
PHPLinq_Adapter_Pdo_Mssql
PHPLinq_Adapter_Pdo_Mssql
PHPLinq_Adapter_Pdo_Mysql
PHPLinq_Adapter_Pdo_Mysql
PHPLinq_Adapter_Pdo_Sqlite
PHPLinq_Adapter_Pdo_Sqlite

Class Details

[line 43]
PHPLinq_Adapter_Abstract

PHPLinq_Adapter_Abstract




Tags:

copyright:  Copyright (c) 2008 - 2009 PHPLinq (http://www.codeplex.com/PHPLinq)
abstract:  


[ Top ]


Class Variables

static $_functions = array(
      'custom',
      'ord',
      'chr',
      'substr',
      'strlen',
      'count',
      'max',
      'min',
      'abs',
      'strtolower',
      'strtoupper',
      'ltrim',
      'rand',
      'str_replace',
      'round',
      'rtrim',
      'trim',
      'strpos',
      'stripos',
      'lcfirst',
      'ucfirst',
      'md5',
      'sha1',
      'soundex',
      'addslashes',
      'str_repeat'
   )

[line 110]

List of functions

List of functions




Tags:

access:  protected

Type:   array


[ Top ]

$_adapter =  null

[line 52]

Zend_Db_Adapter_Abstract

Zend_Db_Adapter_Abstract




Tags:

access:  protected

Type:   Zend_Db_Adapter_Abstract


[ Top ]



Class Methods


static method getFunctions [line 144]

static array; getFunctions( )

Get list of functions

Get list of functions




Tags:

access:  public


[ Top ]

constructor __construct [line 59]

PHPLinq_Adapter_Abstract __construct( [ $adapter = null])

Constructor

Constructor




Tags:

access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::__construct()
Constructor
PHPLinq_Adapter_Pdo_Mssql::__construct()
Constructor
PHPLinq_Adapter_Pdo_Mysql::__construct()
Constructor
PHPLinq_Adapter_Pdo_Sqlite::__construct()
Constructor

Parameters:

Zend_Db_Adapter_Abstract   $adapter  

[ Top ]

method abs [line 263]

string abs( mixed $number)

Absolute value

Absolute value




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::abs()
Absolute value
PHPLinq_Adapter_Pdo_Mssql::abs()
Absolute value
PHPLinq_Adapter_Pdo_Mysql::abs()
Absolute value
PHPLinq_Adapter_Pdo_Sqlite::abs()
Absolute value

Parameters:

mixed   $number  

[ Top ]

method addslashes [line 399]

string addslashes( string $str)

Quote string with slashes

Quote string with slashes




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::addslashes()
Quote string with slashes
PHPLinq_Adapter_Pdo_Mssql::addslashes()
Quote string with slashes
PHPLinq_Adapter_Pdo_Mysql::addslashes()
Quote string with slashes
PHPLinq_Adapter_Pdo_Sqlite::addslashes()
Quote string with slashes

Parameters:

string   $str  

[ Top ]

method chr [line 213]

string chr( string $string)

Return a specific character

Return a specific character




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::chr()
Return a specific character
PHPLinq_Adapter_Pdo_Mssql::chr()
Return a specific character
PHPLinq_Adapter_Pdo_Mysql::chr()
Return a specific character
PHPLinq_Adapter_Pdo_Sqlite::chr()
Return a specific character

Parameters:

string   $string   The ascii code

[ Top ]

method count [line 239]

string count( mixed $var)

Count elements in an array, or properties in an object

Count elements in an array, or properties in an object




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::count()
Count elements in an array, or properties in an object
PHPLinq_Adapter_Pdo_Mssql::count()
Count elements in an array, or properties in an object
PHPLinq_Adapter_Pdo_Mysql::count()
Count elements in an array, or properties in an object
PHPLinq_Adapter_Pdo_Sqlite::count()
Count elements in an array, or properties in an object

Parameters:

mixed   $var  

[ Top ]

method custom [line 191]

void custom( array $function)

Execute a custom function (outside of PHPLinq_Adapter package).

Execute a custom function (outside of PHPLinq_Adapter package).




Tags:

access:  public


Parameters:

array   $function   Function to call

[ Top ]

method lcfirst [line 357]

string lcfirst( string $str)

Make a string's first character lowercase

Make a string's first character lowercase




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::lcfirst()
Make a string's first character lowercase
PHPLinq_Adapter_Pdo_Mssql::lcfirst()
Make a string's first character lowercase
PHPLinq_Adapter_Pdo_Mysql::lcfirst()
Make a string's first character lowercase
PHPLinq_Adapter_Pdo_Sqlite::lcfirst()
Make a string's first character lowercase

Parameters:

string   $str  

[ Top ]

method ltrim [line 287]

string ltrim( string $str)

Strip whitespace (or other characters) from the beginning of a string

Strip whitespace (or other characters) from the beginning of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::ltrim()
Strip whitespace (or other characters) from the beginning of a string
PHPLinq_Adapter_Pdo_Mssql::ltrim()
Strip whitespace (or other characters) from the beginning of a string
PHPLinq_Adapter_Pdo_Mysql::ltrim()
Strip whitespace (or other characters) from the beginning of a string
PHPLinq_Adapter_Pdo_Sqlite::ltrim()
Strip whitespace (or other characters) from the beginning of a string

Parameters:

string   $str  

[ Top ]

method max [line 247]

string max( mixed $values)

Find highest value

Find highest value




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::max()
Find highest value
PHPLinq_Adapter_Pdo_Mssql::max()
Find highest value
PHPLinq_Adapter_Pdo_Mysql::max()
Find highest value
PHPLinq_Adapter_Pdo_Sqlite::max()
Find highest value

Parameters:

mixed   $values  

[ Top ]

method md5 [line 374]

string md5( string $str, [boolean $raw_output = false])

Calculate the md5 hash of a string

Calculate the md5 hash of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::md5()
Calculate the md5 hash of a string
PHPLinq_Adapter_Pdo_Mssql::md5()
Calculate the md5 hash of a string
PHPLinq_Adapter_Pdo_Mysql::md5()
Calculate the md5 hash of a string
PHPLinq_Adapter_Pdo_Sqlite::md5()
Calculate the md5 hash of a string

Parameters:

string   $str  
boolean   $raw_output  

[ Top ]

method min [line 255]

string min( mixed $values)

Find lowest value

Find lowest value




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::min()
Find lowest value
PHPLinq_Adapter_Pdo_Mssql::min()
Find lowest value
PHPLinq_Adapter_Pdo_Mysql::min()
Find lowest value
PHPLinq_Adapter_Pdo_Sqlite::min()
Find lowest value

Parameters:

mixed   $values  

[ Top ]

method operand [line 178]

string operand( string $operand)

Convert operand

Convert operand




Tags:

access:  public


Parameters:

string   $operand  

[ Top ]

method operator [line 154]

string operator( string $operator)

Convert operator

Convert operator




Tags:

access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::operator()
Convert operator
PHPLinq_Adapter_Pdo_Mssql::operator()
Convert operator
PHPLinq_Adapter_Pdo_Mysql::operator()
Convert operator
PHPLinq_Adapter_Pdo_Sqlite::operator()
Convert operator

Parameters:

string   $operator  

[ Top ]

method ord [line 205]

string ord( string $string)

Return ASCII value of character

Return ASCII value of character




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::ord()
Return ASCII value of character
PHPLinq_Adapter_Pdo_Mssql::ord()
Return ASCII value of character
PHPLinq_Adapter_Pdo_Mysql::ord()
Return ASCII value of character
PHPLinq_Adapter_Pdo_Sqlite::ord()
Return ASCII value of character

Parameters:

string   $string   A character

[ Top ]

method quote [line 73]

mixed quote( mixed $value, [mixed $type = null])

Safely quotes a value for an SQL statement.

Safely quotes a value for an SQL statement. If an array is passed as the value, the array values are quoted and then returned as a comma-separated string.




Tags:

return:  An SQL-safe quoted value (or string of separated values).
access:  public


Parameters:

mixed   $value   The value to quote.
mixed   $type   OPTIONAL the SQL datatype name, or constant, or null.

[ Top ]

method quoteIdentifier [line 100]

string quoteIdentifier( string|array|Zend_Db_Expr $ident, [boolean $auto = false])

Quotes an identifier.

Quotes an identifier. Accepts a string representing a qualified indentifier. For Example:

  1.  $adapter->quoteIdentifier('myschema.mytable')
Returns: "myschema"."mytable" Or, an array of one or more identifiers that may form a qualified identifier:
  1.  $adapter->quoteIdentifier(array('myschema','my.table'))
Returns: "myschema"."my.table" The actual quote character surrounding the identifiers may vary depending on the adapter.




Tags:

return:  The quoted identifier.
access:  public


Parameters:

string|array|Zend_Db_Expr   $ident   The identifier.
boolean   $auto   If true, heed the AUTO_QUOTE_IDENTIFIERS config option.

[ Top ]

method rand [line 294]

string rand( )

Generate a random integer

Generate a random integer




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::rand()
Generate a random integer
PHPLinq_Adapter_Pdo_Mssql::rand()
Generate a random integer
PHPLinq_Adapter_Pdo_Mysql::rand()
Generate a random integer
PHPLinq_Adapter_Pdo_Sqlite::rand()
Generate a random integer

[ Top ]

method round [line 313]

string round( float $val, [int $precision = 0])

Rounds a float

Rounds a float




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::round()
Rounds a float
PHPLinq_Adapter_Pdo_Mssql::round()
Rounds a float
PHPLinq_Adapter_Pdo_Mysql::round()
Rounds a float
PHPLinq_Adapter_Pdo_Sqlite::round()
Rounds a float

Parameters:

float   $val  
int   $precision  

[ Top ]

method rtrim [line 321]

string rtrim( string $str)

Strip whitespace (or other characters) from the end of a string

Strip whitespace (or other characters) from the end of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::rtrim()
Strip whitespace (or other characters) from the end of a string
PHPLinq_Adapter_Pdo_Mssql::rtrim()
Strip whitespace (or other characters) from the end of a string
PHPLinq_Adapter_Pdo_Mysql::rtrim()
Strip whitespace (or other characters) from the end of a string
PHPLinq_Adapter_Pdo_Sqlite::rtrim()
Strip whitespace (or other characters) from the end of a string

Parameters:

string   $str  

[ Top ]

method sha1 [line 383]

string sha1( string $str, [boolean $raw_output = false])

Calculate the sha1 hash of a string

Calculate the sha1 hash of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::sha1()
Calculate the sha1 hash of a string
PHPLinq_Adapter_Pdo_Mssql::sha1()
Calculate the sha1 hash of a string
PHPLinq_Adapter_Pdo_Mysql::sha1()
Calculate the sha1 hash of a string
PHPLinq_Adapter_Pdo_Sqlite::sha1()
Calculate the sha1 hash of a string

Parameters:

string   $str  
boolean   $raw_output  

[ Top ]

method soundex [line 391]

string soundex( string $str)

Calculate the soundex key of a string

Calculate the soundex key of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::soundex()
Calculate the soundex key of a string
PHPLinq_Adapter_Pdo_Mssql::soundex()
Calculate the soundex key of a string
PHPLinq_Adapter_Pdo_Mysql::soundex()
Calculate the soundex key of a string
PHPLinq_Adapter_Pdo_Sqlite::soundex()
Calculate the soundex key of a string

Parameters:

string   $str  

[ Top ]

method stripos [line 349]

string stripos( string $haystack, mixed $needle, [int $offset = 0])

Find position of first occurrence of a case-insensitive string

Find position of first occurrence of a case-insensitive string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::stripos()
Find position of first occurrence of a case-insensitive string
PHPLinq_Adapter_Pdo_Mssql::stripos()
Find position of first occurrence of a case-insensitive string
PHPLinq_Adapter_Pdo_Mysql::stripos()
Find position of first occurrence of a case-insensitive string
PHPLinq_Adapter_Pdo_Sqlite::stripos()
Find position of first occurrence of a case-insensitive string

Parameters:

string   $haystack  
mixed   $needle  
int   $offset  

[ Top ]

method strlen [line 231]

string strlen( string $string)

Get string length

Get string length




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::strlen()
Get string length
PHPLinq_Adapter_Pdo_Mssql::strlen()
Get string length
PHPLinq_Adapter_Pdo_Mysql::strlen()
Get string length
PHPLinq_Adapter_Pdo_Sqlite::strlen()
Get string length

Parameters:

string   $string  

[ Top ]

method strpos [line 339]

string strpos( string $haystack, mixed $needle, [int $offset = 0])

Find position of first occurrence of a string

Find position of first occurrence of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::strpos()
Find position of first occurrence of a string
PHPLinq_Adapter_Pdo_Mssql::strpos()
Find position of first occurrence of a string
PHPLinq_Adapter_Pdo_Mysql::strpos()
Find position of first occurrence of a string
PHPLinq_Adapter_Pdo_Sqlite::strpos()
Find position of first occurrence of a string

Parameters:

string   $haystack  
mixed   $needle  
int   $offset  

[ Top ]

method strtolower [line 271]

string strtolower( string $str)

Make a string lowercase

Make a string lowercase




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::strtolower()
Make a string lowercase
PHPLinq_Adapter_Pdo_Mssql::strtolower()
Make a string lowercase
PHPLinq_Adapter_Pdo_Mysql::strtolower()
Make a string lowercase
PHPLinq_Adapter_Pdo_Sqlite::strtolower()
Make a string lowercase

Parameters:

string   $str  

[ Top ]

method strtoupper [line 279]

string strtoupper( string $str)

Make a string uppercase

Make a string uppercase




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::strtoupper()
Make a string uppercase
PHPLinq_Adapter_Pdo_Mssql::strtoupper()
Make a string uppercase
PHPLinq_Adapter_Pdo_Mysql::strtoupper()
Make a string uppercase
PHPLinq_Adapter_Pdo_Sqlite::strtoupper()
Make a string uppercase

Parameters:

string   $str  

[ Top ]

method str_repeat [line 408]

string str_repeat( string $input, int $multiplier)

Repeat a string

Repeat a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::str_repeat()
Repeat a string
PHPLinq_Adapter_Pdo_Mssql::str_repeat()
Repeat a string
PHPLinq_Adapter_Pdo_Mysql::str_repeat()
Repeat a string
PHPLinq_Adapter_Pdo_Sqlite::str_repeat()
Repeat a string

Parameters:

string   $input  
int   $multiplier  

[ Top ]

method str_replace [line 304]

string str_replace( mixed $search, mixed $replace, mixed $subject)

Replace all occurrences of the search string with the replacement string

Replace all occurrences of the search string with the replacement string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::str_replace()
Replace all occurrences of the search string with the replacement string
PHPLinq_Adapter_Pdo_Mssql::str_replace()
Replace all occurrences of the search string with the replacement string
PHPLinq_Adapter_Pdo_Mysql::str_replace()
Replace all occurrences of the search string with the replacement string
PHPLinq_Adapter_Pdo_Sqlite::str_replace()
Replace all occurrences of the search string with the replacement string

Parameters:

mixed   $search  
mixed   $replace  
mixed   $subject  

[ Top ]

method substr [line 223]

string substr( string $string, int $start, [int $length = ''])

Return part of a string

Return part of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::substr()
Return part of a string
PHPLinq_Adapter_Pdo_Mssql::substr()
Return part of a string
PHPLinq_Adapter_Pdo_Mysql::substr()
Return part of a string
PHPLinq_Adapter_Pdo_Sqlite::substr()
Return part of a string

Parameters:

string   $string  
int   $start  
int   $length  

[ Top ]

method trim [line 329]

string trim( string $str)

Strip whitespace (or other characters) from the beginning and end of a string

Strip whitespace (or other characters) from the beginning and end of a string




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::trim()
Strip whitespace (or other characters) from the beginning and end of a string
PHPLinq_Adapter_Pdo_Mssql::trim()
Strip whitespace (or other characters) from the beginning and end of a string
PHPLinq_Adapter_Pdo_Mysql::trim()
Strip whitespace (or other characters) from the beginning and end of a string
PHPLinq_Adapter_Pdo_Sqlite::trim()
Strip whitespace (or other characters) from the beginning and end of a string

Parameters:

string   $str  

[ Top ]

method ucfirst [line 365]

string ucfirst( string $str)

Make a string's first character uppercase

Make a string's first character uppercase




Tags:

abstract:  
access:  public


Overridden in child classes as:

PHPLinq_Adapter_Mysqli::ucfirst()
Make a string's first character uppercase
PHPLinq_Adapter_Pdo_Mssql::ucfirst()
Make a string's first character uppercase
PHPLinq_Adapter_Pdo_Mysql::ucfirst()
Make a string's first character uppercase
PHPLinq_Adapter_Pdo_Sqlite::ucfirst()
Make a string's first character uppercase

Parameters:

string   $str  

[ Top ]


Documentation generated on Tue, 27 Jan 2009 08:29:15 +0100 by phpDocumentor 1.4.1