MIDDAG for Moodle

has_status

Trait has_status.

Provides helper methods to check status state against the Enum. Removes hardcoded constants in favor of local_middag\framework\shared\enum\status.

Table of Contents

Properties

$status  : string

Methods

is_active()  : bool
Check if the item is active.
is_approved()  : bool
Check if the item is approved.
is_archived()  : bool
Determine if the item is archived.
is_canceled()  : bool
Check if the item is canceled.
is_completed()  : bool
Check if the item is completed.
is_deleted()  : bool
Determine if the item is marked as deleted.
is_disabled()  : bool
Check if the item is disabled.
is_draft()  : bool
Determine if the item is in draft state.
is_enabled()  : bool
Check if the item is enabled.
is_error()  : bool
Check if the item is in an error state.
is_expired()  : bool
Check if the item is expired.
is_failed()  : bool
Check if the item has failed.
is_in_progress()  : bool
Check if the item is in progress.
is_inactive()  : bool
Check if the item is inactive.
is_not_started()  : bool
Check if the item has not started.
is_paused()  : bool
Check if the item is paused.
is_pending()  : bool
Check if the item awaits processing.
is_published()  : bool
Determine if the item is published.
is_queued()  : bool
Check if the item is queued.
is_rejected()  : bool
Check if the item was rejected.
is_running()  : bool
Check if the item is running.
is_status()  : bool
Check if the current status matches a specific value or Enum case.
is_synced()  : bool
Check if the item finished syncing.
is_syncing()  : bool
Check if the item is syncing.

Properties

$status

public string $status

Expected property on the using class.

Methods

is_active()

Check if the item is active.

public is_active() : bool
Return values
bool

is_approved()

Check if the item is approved.

public is_approved() : bool
Return values
bool

is_archived()

Determine if the item is archived.

public is_archived() : bool
Return values
bool

is_canceled()

Check if the item is canceled.

public is_canceled() : bool
Return values
bool

is_completed()

Check if the item is completed.

public is_completed() : bool
Return values
bool

is_deleted()

Determine if the item is marked as deleted.

public is_deleted() : bool
Return values
bool

is_disabled()

Check if the item is disabled.

public is_disabled() : bool
Return values
bool

is_draft()

Determine if the item is in draft state.

public is_draft() : bool
Return values
bool

is_enabled()

Check if the item is enabled.

public is_enabled() : bool
Return values
bool

is_error()

Check if the item is in an error state.

public is_error() : bool
Return values
bool

is_expired()

Check if the item is expired.

public is_expired() : bool
Return values
bool

is_failed()

Check if the item has failed.

public is_failed() : bool
Return values
bool

is_in_progress()

Check if the item is in progress.

public is_in_progress() : bool
Return values
bool

is_inactive()

Check if the item is inactive.

public is_inactive() : bool
Return values
bool

is_not_started()

Check if the item has not started.

public is_not_started() : bool
Return values
bool

is_paused()

Check if the item is paused.

public is_paused() : bool
Return values
bool

is_pending()

Check if the item awaits processing.

public is_pending() : bool
Return values
bool

is_published()

Determine if the item is published.

public is_published() : bool
Return values
bool

is_queued()

Check if the item is queued.

public is_queued() : bool
Return values
bool

is_rejected()

Check if the item was rejected.

public is_rejected() : bool
Return values
bool

is_running()

Check if the item is running.

public is_running() : bool
Return values
bool

is_status()

Check if the current status matches a specific value or Enum case.

public is_status(item_status|string $value) : bool
Parameters
$value : item_status|string
Return values
bool

is_synced()

Check if the item finished syncing.

public is_synced() : bool
Return values
bool

is_syncing()

Check if the item is syncing.

public is_syncing() : bool
Return values
bool

        
On this page

Search results