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;
    }
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;
    }
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 ; }
Returns an array of order statuses
@return array
Returns an array of order statuses