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

Class: PHPLinq_LinqToZendDb

Source Location: /PHPLinq/LinqToZendDb.php

Class Overview


PHPLinq_LinqToZendDb


Author(s):

Copyright:

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

Implements interfaces:

Variables

Constants

Methods



Class Details

[line 64]
PHPLinq_LinqToZendDb

PHPLinq_LinqToZendDb




Tags:

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


[ Top ]


Class Variables

static $_internalFunctions =  null

[line 205]

Static list of PHP internal functions used for generating queries

Static list of PHP internal functions used for generating queries




Tags:

access:  private

Type:   array


[ Top ]

static $_queryCallback =  null

[line 198]

Query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.

Query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.




Tags:

access:  private

Type:   mixed


[ Top ]

$_adapter =  null

[line 182]

PHPLinq_Adapter_Abstract instance

PHPLinq_Adapter_Abstract instance




Tags:

access:  private



[ Top ]

$_childProviders = array()

[line 161]

Child PHPLinq_ILinqProvider instances, used with join conditions

Child PHPLinq_ILinqProvider instances, used with join conditions




Tags:

access:  private

Type:   PHPLinq_ILinqProvider[]


[ Top ]

$_columns =  '*'

[line 189]

Columns to select

Columns to select




Tags:

access:  private

Type:   string


[ Top ]

$_data =  null

[line 91]

Data source

Data source




Tags:

access:  private

Type:   mixed


[ Top ]

$_distinct =  null

[line 140]

Distinct expression

Distinct expression




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]

$_from =  ''

[line 84]

Default variable name

Default variable name




Tags:

access:  private

Type:   string


[ Top ]

$_isDestructing =

[line 175]

Is object destructing?

Is object destructing?




Tags:

access:  private

Type:   bool


[ Top ]

$_joinCondition =  null

[line 168]

Join condition

Join condition




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]

$_ofType =  null

[line 147]

OfType expression

OfType expression




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]

$_orderBy = array()

[line 133]

OrderBy expressions

OrderBy expressions




Tags:

access:  private

Type:   PHPLinq_Expression[]


[ Top ]

$_parentProvider =  null

[line 154]

Parent PHPLinq_ILinqProvider instance, used with join conditions

Parent PHPLinq_ILinqProvider instance, used with join conditions




Tags:

access:  private



[ Top ]

$_skip =  null

[line 112]

Skip n elements

Skip n elements




Tags:

access:  private

Type:   int?


[ Top ]

$_skipWhile =  null

[line 126]

Skip while expression is true

Skip while expression is true




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]

$_take =  null

[line 105]

Take n elements

Take n elements




Tags:

access:  private

Type:   int?


[ Top ]

$_takeWhile =  null

[line 119]

Take while expression is true

Take while expression is true




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]

$_where =  null

[line 98]

Where expression

Where expression




Tags:

access:  private

Type:   PHPLinq_Expression


[ Top ]



Class Methods


static method getQueryCallback [line 1187]

static mixed getQueryCallback( )

Get query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.

Get query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.




Tags:

access:  public


[ Top ]

static method handles [line 213]

static bool handles( mixed $source)

Can this provider type handle data in $source?

Can this provider type handle data in $source?




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::handles()
Can this provider type handle data in $source?

Parameters:

mixed   $source  

[ Top ]

static method setQueryCallback [line 1198]

static void setQueryCallback( [mixed $value = null])

Set query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.

Set query callback (static for all PHPLinq_LinqToZendDb !) Function accepting a string to which query strings can be logged.




Tags:

access:  public


Parameters:

mixed   $value  

[ Top ]

constructor __construct [line 224]

PHPLinq_ILinqProvider __construct( string $name, [PHPLinq_ILinqProvider $parentProvider = null])

Create a new class instance

Create a new class instance




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::__construct()
Create a new class instance

Parameters:

string   $name  
PHPLinq_ILinqProvider   $parentProvider   Optional parent PHPLinq_ILinqProvider instance, used with join conditions

[ Top ]

destructor __destruct [line 244]

void __destruct( )

Class destructor

Class destructor




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::__destruct()
Class destructor
[ Top ]

method addChildProvider [line 287]

void addChildProvider( PHPLinq_ILinqProvider $provider)

Add child provider, used with joins

Add child provider, used with joins




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::addChildProvider()
Add child provider, used with joins

Parameters:

PHPLinq_ILinqProvider   $provider  

[ Top ]

method aggregate [line 1169]

mixed aggregate( [int $seed = 0], string $expression)

Aggregate

Aggregate Example: Equivalent of count(): $this->aggregate(0, '$s, $t => $s + 1');




Tags:

return:  aggregate
access:  public



Implementation of:
PHPLinq_ILinqProvider::aggregate()
Aggregate

Parameters:

int   $seed   Seed
string   $expression   Expression defining the aggregate

[ Top ]

method all [line 928]

boolean all( string $expression)

All

All




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::all()
All

Parameters:

string   $expression   Expression checking if an all elements are contained

[ Top ]

method any [line 907]

boolean any( string $expression)

Any

Any




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::any()
Any

Parameters:

string   $expression   Expression checking if an element is contained

[ Top ]

method average [line 1156]

mixed average( )

Average of elements

Average of elements




Tags:

return:  Average of elements
access:  public



Implementation of:
PHPLinq_ILinqProvider::average()
Average of elements
[ Top ]

method concat [line 1006]

PHPLinq_ILinqProvider concat( mixed $source)

Concatenate data

Concatenate data




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::concat()
Concatenate data

Parameters:

mixed   $source  

[ Top ]

method contains [line 950]

boolean contains( mixed $element)

Contains - Not performed as query! (heavy)

Contains - Not performed as query! (heavy)




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::contains()
Contains

Parameters:

mixed   $element   Is the $element contained?

[ Top ]

method count [line 1120]

int count( )

Count elements

Count elements




Tags:

return:  Element count
access:  public



Implementation of:
PHPLinq_ILinqProvider::count()
Count elements
[ Top ]

method distinct [line 860]

PHPLinq_ILinqProvider distinct( string $expression)

Distinct

Distinct




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::distinct()
Distinct

Parameters:

string   $expression   Ignored.

[ Top ]

method elementAt [line 971]

mixed elementAt( [mixed $index = null])

Element at index

Element at index




Tags:

return:  Element at $index
access:  public



Implementation of:
PHPLinq_ILinqProvider::elementAt()
Element at index

Parameters:

mixed   $index   Index

[ Top ]

method elementAtOrDefault [line 991]

mixed elementAtOrDefault( [mixed $index = null], [mixed $defaultValue = null])

Element at index or default

Element at index or default




Tags:

return:  Element at $index
access:  public



Implementation of:
PHPLinq_ILinqProvider::elementAtOrDefault()
Element at index or default

Parameters:

mixed   $index   Index
mixed   $defaultValue   Default value to return if nothing is found

[ Top ]

method first [line 1017]

mixed first( [string $expression = null])

First

First




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::first()
First

Parameters:

string   $expression   Expression which creates a resulting element

[ Top ]

method firstOrDefault [line 1033]

mixed firstOrDefault( [string $expression = null], [mixed $defaultValue = null])

FirstOrDefault

FirstOrDefault




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::firstOrDefault()
FirstOrDefault

Parameters:

string   $expression   Expression which creates a resulting element
mixed   $defaultValue   Default value to return if nothing is found

[ Top ]

method getFromName [line 296]

string getFromName( )

Retrieve "from" name

Retrieve "from" name




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::getFromName()
Retrieve "from" name
[ Top ]

method getJoinCondition [line 278]

PHPLinq_Expression getJoinCondition( )

Get join condition

Get join condition




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::getJoinCondition()
Get join condition
[ Top ]

method getSource [line 305]

mixed getSource( )

Retrieve data in data source

Retrieve data in data source




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::getSource()
Retrieve data in data source
[ Top ]

method in [line 315]

PHPLinq_ILinqProvider in( mixed $source)

Set source of data

Set source of data




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::in()
Set source of data

Parameters:

mixed   $source  

[ Top ]

method join [line 1100]

PHPLinq_Initiator join( string $name)

Join

Join




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::join()
Join

Parameters:

string   $name  

[ Top ]

method last [line 1048]

mixed last( [string $expression = null])

Last

Last




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::last()
Last

Parameters:

string   $expression   Expression which creates a resulting element

[ Top ]

method lastOrDefault [line 1064]

mixed lastOrDefault( [string $expression = null], [mixed $defaultValue = null])

LastOrDefault

LastOrDefault




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::lastOrDefault()
LastOrDefault

Parameters:

string   $expression   Expression which creates a resulting element
mixed   $defaultValue   Default value to return if nothing is found

[ Top ]

method max [line 1147]

mixed max( )

Maximum of elements

Maximum of elements




Tags:

return:  Maximum of elements
access:  public



Implementation of:
PHPLinq_ILinqProvider::max()
Maximum of elements
[ Top ]

method min [line 1138]

mixed min( )

Minimum of elements

Minimum of elements




Tags:

return:  Minimum of elements
access:  public



Implementation of:
PHPLinq_ILinqProvider::min()
Minimum of elements
[ Top ]

method ofType [line 870]

void ofType( string $type)

Select the elements of a certain type

Select the elements of a certain type




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::ofType()
Select the elements of a certain type

Parameters:

string   $type   Type name

[ Top ]

method on [line 1110]

PHPLinq_ILinqProvider on( string $expression)

On

On




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::on()
On

Parameters:

string   $expression   Expression representing join condition

[ Top ]

method orderBy [line 813]

PHPLinq_ILinqProvider orderBy( string $expression, [string $comparer = null])

OrderBy

OrderBy




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::orderBy()
OrderBy

Parameters:

string   $expression   Expression to order elements by
string   $comparer   Comparer function (taking 2 arguments, returning -1, 0, 1)

[ Top ]

method orderByDescending [line 825]

PHPLinq_ILinqProvider orderByDescending( string $expression, [string $comparer = null])

OrderByDescending

OrderByDescending




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::orderByDescending()
OrderByDescending

Parameters:

string   $expression   Expression to order elements by
string   $comparer   Comparer function (taking 2 arguments, returning -1, 0, 1)

[ Top ]

method reverse [line 960]

PHPLinq_ILinqProvider reverse( [bool $preserveKeys = null])

Reverse elements - Not performed as query! (heavy)

Reverse elements - Not performed as query! (heavy)




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::reverse()
Reverse elements

Parameters:

bool   $preserveKeys   Preserve keys?

[ Top ]

method select [line 333]

mixed select( [string $expression = null])

Select

Select




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::select()
Select

Parameters:

string   $expression   Expression which creates a resulting element

[ Top ]

method single [line 1079]

mixed single( [string $expression = null])

Single

Single




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::single()
Single

Parameters:

string   $expression   Expression which creates a resulting element

[ Top ]

method singleOrDefault [line 1090]

mixed singleOrDefault( [string $expression = null], [mixed $defaultValue = null])

SingleOrDefault

SingleOrDefault




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::singleOrDefault()
SingleOrDefault

Parameters:

string   $expression   Expression which creates a resulting element
mixed   $defaultValue   Default value to return if nothing is found

[ Top ]

method skip [line 779]

PHPLinq_ILinqProvider skip( int $n)

Skip $n elements

Skip $n elements




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::skip()
Skip $n elements

Parameters:

int   $n  

[ Top ]

method skipWhile [line 801]

PHPLinq_ILinqProvider skipWhile( string $expression)

Skip elements while $expression evaluates to true

Skip elements while $expression evaluates to true




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::skipWhile()
Skip elements while $expression evaluates to true

Parameters:

string   $expression   Expression to evaluate

[ Top ]

method sum [line 1129]

mixed sum( )

Sum elements

Sum elements




Tags:

return:  Sum of elements
access:  public



Implementation of:
PHPLinq_ILinqProvider::sum()
Sum elements
[ Top ]

method take [line 768]

PHPLinq_ILinqProvider take( int $n)

Take $n elements

Take $n elements




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::take()
Take $n elements

Parameters:

int   $n  

[ Top ]

method takeWhile [line 790]

PHPLinq_ILinqProvider takeWhile( string $expression)

Take elements while $expression evaluates to true

Take elements while $expression evaluates to true




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::takeWhile()
Take elements while $expression evaluates to true

Parameters:

string   $expression   Expression to evaluate

[ Top ]

method thenBy [line 837]

PHPLinq_ILinqProvider thenBy( string $expression, [string $comparer = null])

ThenBy

ThenBy




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::thenBy()
ThenBy

Parameters:

string   $expression   Expression to order elements by
string   $comparer   Comparer function (taking 2 arguments, returning -1, 0, 1)

[ Top ]

method thenByDescending [line 849]

PHPLinq_ILinqProvider thenByDescending( string $expression, [string $comparer = null])

ThenByDescending

ThenByDescending




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::thenByDescending()
ThenByDescending

Parameters:

string   $expression   Expression to order elements by
string   $comparer   Comparer function (taking 2 arguments, returning -1, 0, 1)

[ Top ]

method where [line 757]

PHPLinq_ILinqProvider where( string $expression)

Where

Where




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::where()
Where

Parameters:

string   $expression   Expression checking if an element should be contained

[ Top ]

method _convertToSql [line 529]

string _convertToSql( string $phpCode)

Converts PHP code into SQL code

Converts PHP code into SQL code




Tags:

access:  private


Parameters:

string   $phpCode   Code to convert

[ Top ]

method __isDestructing [line 269]

bool __isDestructing( )

Is object destructing?

Is object destructing?




Tags:

access:  public



Implementation of:
PHPLinq_ILinqProvider::__isDestructing()
Is object destructing?
[ Top ]


Class Constants

T_ARGUMENT =  1001011

[line 76]


[ Top ]

T_ARITHMETIC =  1001012

[line 77]


[ Top ]

T_CONSTANT =  1001003

[line 68]


[ Top ]

T_DEFAULT =  1001008

[line 73]


[ Top ]

T_FUNCTION =  1001001

[line 66]

Constants

Constants



[ Top ]

T_OBJECT_OPERATOR =  1001005

[line 70]


[ Top ]

T_OPERAND =  1001007

[line 72]


[ Top ]

T_OPERATOR =  1001006

[line 71]


[ Top ]

T_PROPERTY =  1001002

[line 67]


[ Top ]

T_SIMPLE =  1001010

[line 75]


[ Top ]

T_START_STOP =  1001009

[line 74]


[ Top ]

T_VARIABLE =  1001004

[line 69]


[ Top ]



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