Свойство | Тип | Описание | |
---|---|---|---|
$page | |||
$per_page |
Метод | Описание | |
---|---|---|
__call ( string $method, mixed $args ) : method | Call a method | |
__construct ( mixed $builder, mixed $vals, string $cls ) | Constructor | |
avg ( string $attr ) : mixed | Return collection attribute average | |
count ( ) : integer | Return collection row count | |
current ( ) : mixed | Return current value | |
destroy ( ) : destroyed | Destroy collection records | |
key ( ) : mixed | Return current key | |
limit ( integer $limit ) : mixed | Define row limit | |
max ( string $attr ) : mixed | Return collection attribute maximum value | |
min ( string $attr ) : mixed | Return collection attribute minimum value | |
next ( ) : mixed | Return the next collection object | |
order ( integer $order ) : mixed | Define row order | |
paginate ( integer $page, integer $per_page = 50 ) : mixed | Return collection pagination page | |
rewind ( ) : null | Rewind collection | |
sum ( string $attr ) : mixed | Return collection attribute sum | |
toArray ( string $limit ) : mixed | Convert collection to an array | |
updateAttributes ( string $attrs ) : updated | Update collection attributes | |
valid ( ) : boolean | Return if its valid |
Метод | Описание | |
---|---|---|
_executeAndReturnFirst ( mixed $builder, mixed $vals ) : mixed | Return the first value | |
_getCurrentData ( ) : mixed | Get the next result from collection | |
_makeBuilderForAggregations ( mixed $fields ) : mixed | Construct builder for aggregations |
public destroy ( ) : destroyed | ||
Результат | destroyed | or not |
public updateAttributes ( string $attrs ) : updated | ||
$attrs | string | attributes |
Результат | updated | or not |