ITEMS_PER_PAGE
ITEMS_PER_PAGE = 50
Block Model
$table_name : string
$translators : array
$websiteModel : \App\Site\Models\Website
$is_first_save : bool
$loadedObjects : array
$rewrites : array
$codeBlockInstance : \App\Base\Abstracts\Blocks\BaseCodeBlock
$original_data : array|null
hydrateStatementResult(\Psr\Container\ContainerInterface $container, \LessQL\Result $stmt) : array
returns an array of models, starting from a statement Result
\Psr\Container\ContainerInterface | $container | |
\LessQL\Result | $stmt |
paginate(\Psr\Container\ContainerInterface $container, \Symfony\Component\HttpFoundation\Request $request, int $page_size = self::ITEMS_PER_PAGE, array $condition = [], array $order = []) : array
return subset of found items (useful for paginate)
\Psr\Container\ContainerInterface | $container | |
\Symfony\Component\HttpFoundation\Request | $request | |
int | $page_size | |
array | $condition | |
array | $order |
paginateByStatement(\Psr\Container\ContainerInterface $container, \Symfony\Component\HttpFoundation\Request $request, \LessQL\Result $stmt, int $page_size = self::ITEMS_PER_PAGE) : array
return subset of found items (useful for paginate)
\Psr\Container\ContainerInterface | $container | |
\Symfony\Component\HttpFoundation\Request | $request | |
\LessQL\Result | $stmt | |
int | $page_size |
loadByCondition(\Psr\Container\ContainerInterface $container, array $condition) : self|null
loads model by condition
\Psr\Container\ContainerInterface | $container | |
array | $condition |
loadMultipleByCondition(\Psr\Container\ContainerInterface $container, array $condition, bool $reset = false) : array
loads multiple models by condition
\Psr\Container\ContainerInterface | $container | |
array | $condition | |
bool | $reset |
loadBy(\Psr\Container\ContainerInterface $container, string $field, mixed $value) : self
loads model by field - value pair
\Psr\Container\ContainerInterface | $container | |
string | $field | |
mixed | $value |