Extbase\Persistence
Class Tx_Extbase_Persistence_Query
All Implemented Interfaces:
public class Tx_Extbase_Persistence_Query
implements Tx_Extbase_Persistence_QueryInterface, Tx_Extbase_Persistence_QuerySettingsInterface
The Query class used to run queries against the database
Subpackage: Persistence
Version: $Id: Query.php 658 2009-05-16 13:54:16Z jocrau $
Scope: prototype
Method Summary
| Tx_Extbase_Persistence_QuerySettingsInterface | getQuerySettings() |
| execute() | |
| Tx_Extbase_Persistence_QueryInterface | setOrderings(array $orderings) |
| Tx_Extbase_Persistence_QueryInterface | setLimit(integer $limit) |
| Tx_Extbase_Persistence_QueryInterface | setOffset(integer $offset) |
| Tx_Extbase_Persistence_QueryInterface | matching($constraint) |
| logicalAnd(object $constraint1, object $constraint2) | |
| logicalOr(object $constraint1, object $constraint2) | |
| logicalNot(object $constraint) | |
| withUid(int $uid) | |
| equals(string $propertyName, mixed $operand, boolean $caseSensitive=TRUE) | |
| like(string $propertyName, mixed $operand) | |
| lessThan(string $propertyName, mixed $operand) | |
| lessThanOrEqual(string $propertyName, mixed $operand) | |
| greaterThan(string $propertyName, mixed $operand) | |
| greaterThanOrEqual(string $propertyName, mixed $operand) |
Method Detail
getQuerySettings
Returns the Query Settings.
execute
Executes the query against the database and returns the result
Description Copied From interface:
Specified By
setOrderings
Sets the property names to order the result by. Expected like this:
array( 'foo' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING, 'bar' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING )
Description Copied From interface:
array( 'foo' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING, 'bar' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING )
Specified By
Parameters
setLimit
Sets the maximum size of the result set to limit. Returns $this to allow for chaining (fluid interface)
Description Copied From interface:
Specified By
Parameters
setOffset
Sets the start offset of the result set to offset. Returns $this to allow for chaining (fluid interface)
Description Copied From interface:
Specified By
Parameters
matching
The constraint used to limit the result set. Returns $this to allow for chaining (fluid interface)
Description Copied From interface:
Specified By
Parameters
logicalAnd
Performs a logical conjunction of the two given constraints.
Description Copied From interface:
Specified By
Parameters
$constraint2 - Second constraint
logicalOr
Performs a logical disjunction of the two given constraints
Description Copied From interface:
Specified By
Parameters
$constraint2 - Second constraint
logicalNot
Performs a logical negation of the given constraint
Description Copied From interface:
Specified By
Parameters
withUid
Matches against the (internal) uid.
Description Copied From interface:
Specified By
Parameters
equals
Returns an equals criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with
$caseSensitive - Whether the equality test should be done case-sensitive
like
Returns a like criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with
lessThan
Returns a less than criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with
lessThanOrEqual
Returns a less or equal than criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with
greaterThan
Returns a greater than criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with
greaterThanOrEqual
Returns a greater than or equal criterion used for matching objects against a query
Description Copied From interface:
Specified By
Parameters
$operand - The value to compare with