Returns all the statuses as an array

@return array
354147
public function getStatuses()
    {
        return [
            self::STATUS_PENDING,
            self::STATUS_PROCESSING,
            self::STATUS_COMPLETE,
            self::STATUS_FAILED,
            self::STATUS_REFUNDED,
            self::STATUS_REFUNDED_PARTIAL,
        ];
    }
272273
public function toArray()
    {
        return [
            'Logging' => !empty($this->_logging) ? $this->_logging->toArray() : null,
            'Metrics' => !empty($this->_metrics) ? $this->_metrics->toArray() : null,
        ];
    }
950433
public function toArray()
    {
        $res = [];
        foreach ($this->locations as $location) {
            $res[] = $location->toArray();
        }

        return $res;
    }
834792
private function getTranslatedStatus()
    {
        if ($this->status === null) {
            $this->status = [t('Active'), t('Inactive')];
        }

        return $this->status;
    }
1078036
public static function getStatusList()
    {
        return [
            self::STATUS_OK => 'ok',
            self::STATUS_SENDING => 'sending',
            self::STATUS_PENDING => 'pending',
            self::STATUS_ERROR => 'error',
            self::STATUS_ENCODING => 'encoding',
        ];
    }
723226
public function getStatus()
    {
        $status = self::STATUS_OK;

        foreach ($this->getItems() as $item) {
            if ($item->getStatus() === self::STATUS_ERROR) {
                return self::STATUS_ERROR;
            }

            if ($item->getStatus() === self::STATUS_WARNING) {
                $status = self::STATUS_WARNING;
            }
        }

        return $status;
    }
296953
public function getStatus() : array
    {
        return [
            'status'        => [
                'entries-stored' => \count($this->store),
                'accessed'       => $this->readCount,
                'removed'        => $this->removeCount,
                'written'        => $this->writeCount,
            ],
        ];
    }
181640
public function toArray()
	{
		$list = parent::toArray();

		$list['locale.language.id'] = $this->getId();
		$list['locale.language.code'] = $this->getCode();
		$list['locale.language.label'] = $this->getLabel();
		$list['locale.language.status'] = $this->getStatus();

		return $list;
	}
1311546
public function getStatuses()
    {
        $statuses = &gplcart_static('order.statuses');

        if (isset($statuses)) {
            return $statuses;
        }

        $statuses = array(
            'pending' => $this->translation->text('Pending'),
            'canceled' => $this->translation->text('Canceled'),
            'delivered' => $this->translation->text('Delivered'),
            'completed' => $this->translation->text('Completed'),
            'processing' => $this->translation->text('Processing'),
            'dispatched' => $this->translation->text('Dispatched'),
            'pending_payment' => $this->translation->text('Awaiting payment')
        );

        $this->hook->attach('order.statuses', $statuses, $this);
        return $statuses;
    }
328552
public function getStatusInfo()
    {
        $int = $this->variant->statusInfo();

        $possible = [
            1 => 'Other',
            2 => 'Unknown',
            3 => 'Enabled',
            4 => 'Disabled',
            5 => 'Not Applicable',
        ];

        return $this->getFromPossibleValues($int, $possible);
    }
1149424
public function toArray()
    {
        return array(
            'e' => $this->entity,
            'r' => $this->reference,
            'v' => $this->value,
            'k' => $this->authorizationKey,
            's' => $this->status,
            't_key' => $this->key,
        );
    }
759424
public function asArray(): array
    {
        $theArray = [static::KEY_STATUS => $this->status];

        if ($this->data) {
            $theArray[static::KEY_DATA] = $this->data;
        }
        if (!$this->data && !$this->isError()) {
            // Data is optional for errors, so it should not be set
            // rather than be null.
            $theArray[static::KEY_DATA] = null;
        }

        if ($this->isError()) {
            $theArray[static::KEY_MESSAGE] = (string)$this->errorMessage;

            if (!empty($this->errorCode)) {
                $theArray[static::KEY_CODE] = (int)$this->errorCode;
            }
        }

        return $theArray;
    }
476735
public static function getStatusList()
    {
        return [
            self::STATUS_OPEN => 'status_open',
            self::STATUS_PENDING => 'status_pending',
            self::STATUS_VALIDATED => 'status_validated',
            self::STATUS_CANCELLED => 'status_cancelled',
            self::STATUS_ERROR => 'status_error',
            self::STATUS_STOPPED => 'status_stopped',
        ];
    }
973166
public static function getStatusList()
    {
        return [
            TransactionInterface::STATUS_ORDER_UNKNOWN => 'order_unknown',
            TransactionInterface::STATUS_OPEN => 'open',
            TransactionInterface::STATUS_PENDING => 'pending',
            TransactionInterface::STATUS_VALIDATED => 'validated',
            TransactionInterface::STATUS_CANCELLED => 'cancelled',
            TransactionInterface::STATUS_UNKNOWN => 'status_unknown',
            TransactionInterface::STATUS_ERROR_VALIDATION => 'error_validation',
            TransactionInterface::STATUS_WRONG_CALLBACK => 'wrong_callback',
            TransactionInterface::STATUS_WRONG_REQUEST => 'wrong_request',
            TransactionInterface::STATUS_ORDER_NOT_OPEN => 'order_to_open',
        ];
    }
526410
public function getStatus()
    {
        $statuses = array();

        $statuses['core_version'] = array(
            'title' => $this->translation->text('Core version'),
            'description' => '',
            'severity' => 'info',
            'status' => gplcart_version(),
            'weight' => 0,
        );

        $statuses['database_version'] = array(
            'title' => $this->translation->text('Database version'),
            'description' => '',
            'severity' => 'info',
            'status' => $this->db->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION),
            'weight' => 1,
        );

        $statuses['php_version'] = array(
            'title' => $this->translation->text('PHP version'),
            'description' => '',
            'severity' => 'info',
            'status' => PHP_VERSION,
            'weight' => 2,
        );

        $statuses['php_os'] = array(
            'title' => $this->translation->text('PHP operating system'),
            'description' => '',
            'severity' => 'info',
            'status' => PHP_OS,
            'weight' => 3,
        );

        $statuses['php_memory_limit'] = array(
            'title' => $this->translation->text('PHP Memory Limit'),
            'description' => '',
            'severity' => 'info',
            'status' => ini_get('memory_limit'),
            'weight' => 4,
        );

        $statuses['php_apc_enabled'] = array(
            'title' => $this->translation->text('PHP APC cache enabled'),
            'description' => '',
            'severity' => 'info',
            'status' => ini_get('apc.enabled') ? $this->translation->text('Yes') : $this->translation->text('No'),
            'weight' => 5,
        );

        $statuses['server_software'] = array(
            'title' => $this->translation->text('Server software'),
            'description' => '',
            'severity' => 'info',
            'status' => filter_input(INPUT_SERVER, 'SERVER_SOFTWARE', FILTER_SANITIZE_STRING),
            'weight' => 6
        );

        $date_format = $this->config->get('date_full_format', 'd.m.Y H:i');

        $statuses['cron'] = array(
            'title' => $this->translation->text('Cron last run'),
            'description' => '',
            'severity' => 'info',
            'status' => date($date_format, $this->config->get('cron_last_run')),
            'weight' => 7,
        );

        $filesystem = $this->checkFilesystem();

        $statuses['filesystem'] = array(
            'title' => $this->translation->text('Filesystem is protected'),
            'description' => '',
            'severity' => 'danger',
            'status' => $filesystem === true ? $this->translation->text('Yes') : $this->translation->text('No'),
            'details' => $filesystem === true ? array() : $filesystem,
            'weight' => 8,
        );

        $statuses['search_index'] = array(
            'title' => $this->translation->text('Search index'),
            'description' => '',
            'severity' => 'info',
            'status' => $this->translation->text('@num rows', array('@num' => $this->countSearchIndex())),
            'weight' => 9,
        );

        $this->hook->attach('report.statuses', $statuses, $this);

        gplcart_array_sort($statuses);
        return $statuses;
    }
571030
public function status()
    {
        $auth       = $this->getAuthenticationService();
        $loggedIn   = $auth->hasIdentity();
        $identity   = $loggedIn ? $auth->getIdentity() : null;

        return (object) array(
            'loggedIn'      => $loggedIn,
            'id'            => $loggedIn ? $identity->id            : null,
            'email'         => $loggedIn ? $identity->email         : null,
            'displayName'   => $loggedIn ? $identity->displayName   : null,
        );
    }
1280779
public function getArray()
  {
    $errors = empty($this->errors) ? null : $this->errors;

    $response = array(
        'status' => $this->getStatus(),
        'data'   => $this->data,
        'errors' => $errors,
    );

    if (!is_null($this->code)) {
      $response['code'] = $this->code;
    }

    if (!is_null($this->message)) {
      $response['message'] = $this->message;
    }

    return $response;
  }