PHP Class Pinq\Repository

Author: Elliot Levin ([email protected])
Inheritance: extends Queryable, implements pinq\IRepository, implements Pinq\Interfaces\IOrderedRepository
显示文件 Open project: timetoogo/pinq

Protected Properties

Property Type Description
$repositoryProvider Pinq\Providers\IRepositoryProvider The repository provider for the current instance

Public Methods

Method Description
__construct ( Pinq\Providers\IRepositoryProvider $provider, Pinq\Queries\ISourceInfo $sourceInfo, TraversalExpression $queryExpression = null, Pinq\Iterators\IIteratorScheme $scheme = null )
addRange ( $values )
apply ( callable $function )
clear ( )
groupJoin ( $values )
join ( $values )
offsetSet ( $index, $value )
offsetUnset ( $index )
remove ( $value )
removeRange ( $values )
removeWhere ( callable $predicate )

Protected Methods

Method Description
newMethodSegment ( $name, array $arguments = [] ) : pinq\IRepository {@inheritDoc}

Private Methods

Method Description
executeQuery ( Expression $expression ) : void Executes the supplied operation query expression on the underlying repository provider.

Method Details

__construct() public method

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

addRange() public method

public addRange ( $values )

apply() public method

public apply ( callable $function )
$function callable

clear() public method

public clear ( )

groupJoin() public method

public groupJoin ( $values )

join() public method

public join ( $values )

newMethodSegment() protected method

{@inheritDoc}
protected newMethodSegment ( $name, array $arguments = [] ) : pinq\IRepository
$arguments array
return pinq\IRepository

offsetSet() public method

public offsetSet ( $index, $value )

offsetUnset() public method

public offsetUnset ( $index )

remove() public method

public remove ( $value )

removeRange() public method

public removeRange ( $values )

removeWhere() public method

public removeWhere ( callable $predicate )
$predicate callable

Property Details

$repositoryProvider protected_oe property

The repository provider for the current instance
protected IRepositoryProvider,Pinq\Providers $repositoryProvider
return Pinq\Providers\IRepositoryProvider