docs
This commit is contained in:
@@ -34,6 +34,8 @@ use Espo\Core\Select\SearchParams;
|
||||
use InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* Order parameters.
|
||||
*
|
||||
* @immutable
|
||||
*/
|
||||
class Params
|
||||
@@ -85,11 +87,17 @@ class Params
|
||||
return $this->forbidComplexExpressions;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Force default order.
|
||||
*/
|
||||
public function forceDefault(): bool
|
||||
{
|
||||
return $this->forceDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* An order-By field.
|
||||
*/
|
||||
public function getOrderBy(): ?string
|
||||
{
|
||||
/** @var ?string */
|
||||
@@ -97,6 +105,8 @@ class Params
|
||||
}
|
||||
|
||||
/**
|
||||
* An order direction.
|
||||
*
|
||||
* @return SearchParams::ORDER_ASC|SearchParams::ORDER_DESC|null
|
||||
*/
|
||||
public function getOrder(): ?string
|
||||
|
||||
@@ -36,6 +36,8 @@ use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* A where item.
|
||||
*
|
||||
* @immutable
|
||||
*/
|
||||
class Item
|
||||
|
||||
@@ -31,6 +31,9 @@ namespace Espo\Core\Select\Where;
|
||||
|
||||
use Espo\Core\Select\Where\Item\Data;
|
||||
|
||||
/**
|
||||
* A where-item builder.
|
||||
*/
|
||||
class ItemBuilder
|
||||
{
|
||||
private ?string $type = null;
|
||||
|
||||
@@ -32,6 +32,8 @@ namespace Espo\Core\Select\Where;
|
||||
use InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* Where parameters.
|
||||
*
|
||||
* @immutable
|
||||
*/
|
||||
class Params
|
||||
@@ -43,7 +45,7 @@ class Params
|
||||
{}
|
||||
|
||||
/**
|
||||
* @param array<string,mixed> $params
|
||||
* @param array<string, mixed> $params
|
||||
*/
|
||||
public static function fromArray(array $params): self
|
||||
{
|
||||
@@ -61,11 +63,17 @@ class Params
|
||||
return $object;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply permission check.
|
||||
*/
|
||||
public function applyPermissionCheck(): bool
|
||||
{
|
||||
return $this->applyPermissionCheck;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forbid complex expressions.
|
||||
*/
|
||||
public function forbidComplexExpressions(): bool
|
||||
{
|
||||
return $this->forbidComplexExpressions;
|
||||
|
||||
Reference in New Issue
Block a user