Overview

Namespaces

  • LeanMapperQuery
    • Exception
    • QueryTarget

Classes

  • Caller
  • Entity
  • Query

Interfaces

  • ICaster
  • IQuery
  • Overview
  • Namespace
  • Class

Class Query

LeanMapperQuery\Query implements LeanMapperQuery\IQuery, Iterator
Namespace: LeanMapperQuery
Author: Michal Bohuslávek
Located at Query.php
Methods summary
protected string
# parseStatement( string $statement, boolean $replacePlaceholders = NULL )

Parses given statement. Basically it replaces '@foo' to '[table_name].[foo]' and performs automatic joins.

Parses given statement. Basically it replaces '@foo' to '[table_name].[foo]' and performs automatic joins.

Parameters

$statement
$replacePlaceholders

Returns

string

Throws

LeanMapperQuery\Exception\InvalidArgumentException
LeanMapperQuery\Exception\MemberAccessException
LeanMapperQuery\Exception\InvalidStateException
protected LeanMapper\Fluent
# getFluent( )

Returns fluent if it is available. It is supposed to be used within own command methods.

Returns fluent if it is available. It is supposed to be used within own command methods.

Returns

LeanMapper\Fluent

Throws

LeanMapperQuery\Exception\InvalidStateException
public LeanMapperQuery\Query
# cast( string $entityClass )

Parameters

$entityClass

Returns

LeanMapperQuery\Query
public LeanMapper\Fluent
# applyQuery( LeanMapper\Fluent $fluent, LeanMapper\IMapper $mapper, LeanMapperQuery\QueryTarget\ITarget $target = NULL )

Parameters

$fluent
$mapper
$target

Returns

LeanMapper\Fluent

Throws

LeanMapperQuery\Exception\InvalidArgumentException

Inheritdoc

Implementation of

LeanMapperQuery\IQuery::applyQuery()
public string
# getStrategy( )

Returns

string

Implementation of

LeanMapperQuery\IQuery::getStrategy()
public LeanMapperQuery\Query
# __call( string $name, array $args )

Enqueues command.

Enqueues command.

Parameters

$name
Command name
$args

Returns

LeanMapperQuery\Query

Throws

LeanMapperQuery\Exception\NonExistingMethodException
public
# current( )

Implementation of

Iterator::current()
public
# next( )

Implementation of

Iterator::next()
public
# rewind( )

Implementation of

Iterator::rewind()
public
# key( )

Implementation of

Iterator::key()
public
# valid( )

Implementation of

Iterator::valid()
Magic methods summary
public LeanMapperQuery\Query
# where( $cond )

Parameters

$cond

Returns

LeanMapperQuery\Query
public LeanMapperQuery\Query
# orderBy( $field )

Parameters

$field

Returns

LeanMapperQuery\Query
public LeanMapperQuery\Query
# asc( boolean $asc = TRUE )

Parameters

$asc

Returns

LeanMapperQuery\Query
public LeanMapperQuery\Query
# desc( boolean $desc = TRUE )

Parameters

$desc

Returns

LeanMapperQuery\Query
public LeanMapperQuery\Query
# limit( integer $limit )

Parameters

$limit

Returns

LeanMapperQuery\Query
public LeanMapperQuery\Query
# offset( integer $offset )

Parameters

$offset

Returns

LeanMapperQuery\Query
Properties summary
protected string $sourceTableName
#
protected LeanMapper\IMapper $mapper
#
protected boolean $replacePlaceholders

Whether to use dumb replacing of placeholders globally.

Whether to use dumb replacing of placeholders globally.

# FALSE
mibk/leanmapperquery v1.1.0 API documentation API documentation generated by ApiGen