public function getQueuedStateText()
    {
        switch ((int)$this->getAttribute('queue_state')) {
            case self::QUEUE_NA:
                return '';
            case self::QUEUE_DONE:
                return 'done';
            case self::QUEUE_WAITING:
                return 'waiting';
            case self::QUEUE_WORKING:
                return 'working';
            default:
                return 'unknown';
        }
    }