class OrderBy

Order by

Methods

static bool
setOrderBy(string $fieldName, string|null $type = null, string|null $namespace = null)

Set order by

static mixed
getOrderBy(string|null $namespace = null)

Return order by

static void
deleteOrderBy(string|null $namespace = null)

Delete order by column

static Builder
apply(Builder $builder, string|null $namespace = null)

Apply order by to model

Details

at line 28
static bool setOrderBy(string $fieldName, string|null $type = null, string|null $namespace = null)

Set order by

Parameters

string $fieldName
string|null $type (asc|desc)
string|null $namespace

Return Value

bool

at line 42
static mixed getOrderBy(string|null $namespace = null)

Return order by

Parameters

string|null $namespace

Return Value

mixed

at line 53
static void deleteOrderBy(string|null $namespace = null)

Delete order by column

Parameters

string|null $namespace

Return Value

void

at line 65
static Builder apply(Builder $builder, string|null $namespace = null)

Apply order by to model

Parameters

Builder $builder
string|null $namespace

Return Value

Builder