PHP Class Pinq\Queryable

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

Protected Properties

Свойство Type Description
$scheme Pinq\Iterators\IIteratorScheme
$sourceInfo Pinq\Queries\ISourceInfo

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Method Details

__construct() public méthode

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 méthode

public aggregate ( callable $function )
$function callable

all() public méthode

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

any() public méthode

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

append() public méthode

public append ( $values )

asArray() final public méthode

final public asArray ( )

asCollection() public méthode

public asCollection ( )

asTraversable() public méthode

public asTraversable ( )

average() public méthode

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

contains() public méthode

public contains ( $value )

count() public méthode

public count ( )

difference() public méthode

public difference ( $values )

except() public méthode

public except ( $values )

first() public méthode

public first ( )

getExpression() public méthode

public getExpression ( )

getIterator() final public méthode

final public getIterator ( )

getIteratorScheme() public méthode

public getIteratorScheme ( )

getProvider() final public méthode

final public getProvider ( )

getSource() public méthode

public getSource ( )

getSourceInfo() public méthode

public getSourceInfo ( )

getTrueIterator() public méthode

public getTrueIterator ( )

groupBy() public méthode

public groupBy ( callable $function )
$function callable

groupJoin() public méthode

public groupJoin ( $values )

implode() public méthode

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

indexBy() public méthode

public indexBy ( callable $function )
$function callable

intersect() public méthode

public intersect ( $values )

isEmpty() public méthode

public isEmpty ( )

isSource() public méthode

public isSource ( )

iterate() public méthode

public iterate ( callable $function )
$function callable

join() public méthode

public join ( $values )

keys() public méthode

public keys ( )

last() public méthode

public last ( )

loadQuery() final protected méthode

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

maximum() public méthode

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

minimum() public méthode

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

offsetExists() public méthode

public offsetExists ( $index )

offsetGet() public méthode

public offsetGet ( $index )

offsetSet() public méthode

public offsetSet ( $index, $value )

offsetUnset() public méthode

public offsetUnset ( $index )

orderBy() public méthode

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

orderByAscending() public méthode

public orderByAscending ( callable $function )
$function callable

orderByDescending() public méthode

public orderByDescending ( callable $function )
$function callable

reindex() public méthode

public reindex ( )

select() public méthode

public select ( callable $function )
$function callable

selectMany() public méthode

public selectMany ( callable $function )
$function callable

skip() public méthode

public skip ( $amount )

slice() public méthode

public slice ( $start, $amount )

sum() public méthode

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

take() public méthode

public take ( $amount )

thenBy() public méthode

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

thenByAscending() public méthode

public thenByAscending ( callable $function )
$function callable

thenByDescending() public méthode

public thenByDescending ( callable $function )
$function callable

union() public méthode

public union ( $values )

unique() public méthode

public unique ( )

where() public méthode

public where ( callable $predicate )
$predicate callable

whereIn() public méthode

public whereIn ( $values )

Property Details

$scheme protected_oe property

protected IIteratorScheme,Pinq\Iterators $scheme
Résultat Pinq\Iterators\IIteratorScheme

$sourceInfo protected_oe property

protected ISourceInfo,Pinq\Queries $sourceInfo
Résultat Pinq\Queries\ISourceInfo