PHP Class Pinq\Queryable

Author: Elliot Levin ([email protected])
Inheritance: extends QueryBuilder, implements pinq\IQueryable, implements Pinq\Interfaces\IOrderedQueryable
显示文件 Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$scheme Pinq\Iterators\IIteratorScheme
$sourceInfo Pinq\Queries\ISourceInfo

Public Methods

Method Description
__construct ( Pinq\Providers\IQueryProvider $provider, Pinq\Queries\ISourceInfo $sourceInfo, TraversalExpression $queryExpression = null, Pinq\Iterators\IIteratorScheme $scheme = null )
aggregate ( callable $function )
all ( callable $function = null )
any ( callable $function = null )
append ( $values )
asArray ( )
asCollection ( )
asTraversable ( )
average ( callable $function = null )
contains ( $value )
count ( )
difference ( $values )
except ( $values )
first ( )
getExpression ( )
getIterator ( )
getIteratorScheme ( )
getProvider ( )
getSource ( )
getSourceInfo ( )
getTrueIterator ( )
groupBy ( callable $function )
groupJoin ( $values )
implode ( $delimiter, callable $function = null )
indexBy ( callable $function )
intersect ( $values )
isEmpty ( )
isSource ( )
iterate ( callable $function )
join ( $values )
keys ( )
last ( )
maximum ( callable $function = null )
minimum ( callable $function = null )
offsetExists ( $index )
offsetGet ( $index )
offsetSet ( $index, $value )
offsetUnset ( $index )
orderBy ( callable $function, $direction )
orderByAscending ( callable $function )
orderByDescending ( callable $function )
reindex ( )
select ( callable $function )
selectMany ( callable $function )
skip ( $amount )
slice ( $start, $amount )
sum ( callable $function = null )
take ( $amount )
thenBy ( callable $function, $direction )
thenByAscending ( callable $function )
thenByDescending ( callable $function )
union ( $values )
unique ( )
where ( callable $predicate )
whereIn ( $values )

Protected Methods

Method Description
loadQuery ( Expression $expression ) : mixed Returns the requested query from the query provider.

Method Details

__construct() public method

public __construct ( Pinq\Providers\IQueryProvider $provider, Pinq\Queries\ISourceInfo $sourceInfo, TraversalExpression $queryExpression = null, Pinq\Iterators\IIteratorScheme $scheme = null )
$provider Pinq\Providers\IQueryProvider
$sourceInfo Pinq\Queries\ISourceInfo
$queryExpression Pinq\Expressions\TraversalExpression
$scheme Pinq\Iterators\IIteratorScheme

aggregate() public method

public aggregate ( callable $function )
$function callable

all() public method

public all ( callable $function = null )
$function callable

any() public method

public any ( callable $function = null )
$function callable

append() public method

public append ( $values )

asArray() final public method

final public asArray ( )

asCollection() public method

public asCollection ( )

asTraversable() public method

public asTraversable ( )

average() public method

public average ( callable $function = null )
$function callable

contains() public method

public contains ( $value )

count() public method

public count ( )

difference() public method

public difference ( $values )

except() public method

public except ( $values )

first() public method

public first ( )

getExpression() public method

public getExpression ( )

getIterator() final public method

final public getIterator ( )

getIteratorScheme() public method

public getIteratorScheme ( )

getProvider() final public method

final public getProvider ( )

getSource() public method

public getSource ( )

getSourceInfo() public method

public getSourceInfo ( )

getTrueIterator() public method

public getTrueIterator ( )

groupBy() public method

public groupBy ( callable $function )
$function callable

groupJoin() public method

public groupJoin ( $values )

implode() public method

public implode ( $delimiter, callable $function = null )
$function callable

indexBy() public method

public indexBy ( callable $function )
$function callable

intersect() public method

public intersect ( $values )

isEmpty() public method

public isEmpty ( )

isSource() public method

public isSource ( )

iterate() public method

public iterate ( callable $function )
$function callable

join() public method

public join ( $values )

keys() public method

public keys ( )

last() public method

public last ( )

loadQuery() final protected method

Returns the requested query from the query provider.
final protected loadQuery ( Expression $expression ) : mixed
$expression Pinq\Expressions\Expression
return mixed The result of the request query

maximum() public method

public maximum ( callable $function = null )
$function callable

minimum() public method

public minimum ( callable $function = null )
$function callable

offsetExists() public method

public offsetExists ( $index )

offsetGet() public method

public offsetGet ( $index )

offsetSet() public method

public offsetSet ( $index, $value )

offsetUnset() public method

public offsetUnset ( $index )

orderBy() public method

public orderBy ( callable $function, $direction )
$function callable

orderByAscending() public method

public orderByAscending ( callable $function )
$function callable

orderByDescending() public method

public orderByDescending ( callable $function )
$function callable

reindex() public method

public reindex ( )

select() public method

public select ( callable $function )
$function callable

selectMany() public method

public selectMany ( callable $function )
$function callable

skip() public method

public skip ( $amount )

slice() public method

public slice ( $start, $amount )

sum() public method

public sum ( callable $function = null )
$function callable

take() public method

public take ( $amount )

thenBy() public method

public thenBy ( callable $function, $direction )
$function callable

thenByAscending() public method

public thenByAscending ( callable $function )
$function callable

thenByDescending() public method

public thenByDescending ( callable $function )
$function callable

union() public method

public union ( $values )

unique() public method

public unique ( )

where() public method

public where ( callable $predicate )
$predicate callable

whereIn() public method

public whereIn ( $values )

Property Details

$scheme protected_oe property

protected IIteratorScheme,Pinq\Iterators $scheme
return Pinq\Iterators\IIteratorScheme

$sourceInfo protected_oe property

protected ISourceInfo,Pinq\Queries $sourceInfo
return Pinq\Queries\ISourceInfo