Gets text as plain text (virtual field)
@return string|null
776794
protected function _getPlainText()
    {
        if (empty($this->_properties['text'])) {
            return null;
        }

        //Loads the `BBCode` helper
        $BBCode = (new HelperRegistry(new View))->load('MeTools.BBCode');

        return trim(strip_tags($BBCode->remove($this->_properties['text'])));
    }
994046
protected function rawText() {
        if (is_null($this->untilTag)) {
            return $this->text();
        }
        $sequence = '</' . $this->untilTag . '>';
        $txt = $this->readUntilSequence($sequence);
        $this->events->text($txt);
        $this->setTextMode(0);
        return $this->endTag();
    }
1052524
public function getText()
    {
        $text = $this->message[0];
        if (!is_string($text)) {
            if ($text instanceof \Throwable || $text instanceof \Exception) {
                $text = (string) $text;
            } else {
                $text = VarDumper::export($text);
            }
        }
        return $text;
    }
663450
public function getStatusText()
    {
        switch ($this->getStatus()) {
            case self::Status_Success:
                return $this->t('message_response_success');
            case self::Status_Notices:
                return $this->t('message_response_notices');
            case self::Status_Warnings:
                return $this->t('message_response_warnings');
            case self::Status_Errors:
                return $this->t('message_response_errors');
            case self::Status_Exception:
                return $this->t('message_response_exception');
            case null:
                return $this->t('message_response_not_set');
            default:
                return sprintf($this->t('message_response_unknown'), $this->getStatus());
        }
    }
555629
public function getMessage() : ?string 
    {
        if ( ! $this->hasMessage()) {
            $this->setMessage($this->getDefaultMessage());
        }
        return $this->message;
    }
661254
public function getText() {
		$args	= $this->args;
		$msg	= $this->getMessage();
// 		$msg	= $this->field.'_'.$this->getMessage();
// 		if( !hasTranslation($msg, $this->domain) ) {
// 			if( hasTranslation($this->getMessage().'_field', $this->domain) ) {
// 				$msg	= $this->getMessage().'_field';
// 				$args	= array_merge(array('FIELD'=>t($this->getField(), $this->domain)), $args);
// 			} else
// 			if( hasTranslation($this->getMessage(), $this->domain) ) {
// 				$msg	= $this->getMessage();
// 			}
// 		}
		return t($msg, $this->domain, $args);
	}
667055
public function getTitleContentType()
    {
        $title_content_type = 'text/plain';

        if (isset($this->parent->title_content_type)) {
            $title_content_type = $this->parent->title_content_type;
        }

        return $title_content_type;
    }
762690
public function getText()
    {
        $text = trim($this->text);
        $lines = explode("\n", $text);

        return implode("\n", array_map('trim', $lines));
    }
502573
public function getCopyText()
    {
        $content = $this->getContent();
        $copy = array_shift($content);

        if (!is_array($copy)) {
            return null;
        }

        if ($copy['element'] !== 'copy') {
            return null;
        }

        return $copy['content'];
    }
920086
public function text_or_binary()
	{
		if (substr($this->file->body, 0, 2) === "\xFE\xFF"
			|| substr($this->file->body, 0, 2) === "\xFF\xFE"
			|| substr($this->file->body, 0, 4) === "\x00\x00\xFE\xFF"
			|| substr($this->file->body, 0, 3) === "\xEF\xBB\xBF")
		{
			return 'text/plain';
		}
		elseif (preg_match('/[\x00-\x08\x0E-\x1A\x1C-\x1F]/', $this->file->body))
		{
			return 'application/octect-stream';
		}
		else
		{
			return 'text/plain';
		}
	}
1321893
protected function buildTextPart()
    {
        if ($this->body === false) {
            $result = null;
        } else {
            $result = new MimePart($this->body);
            $result->setType(Mime::TYPE_TEXT);
            $result->setCharset(APP_CHARSET);
        }

        return $result;
    }
1269294
public function text($newTextContent = null)
    {
        if (isset($newTextContent)) {
            $this->textContent = $this->nodeValue = $newTextContent;
        }

        return $this->textContent;
    }
1114533
private static function extractFieldContent()
    {
        if (in_array(self::$line, self::FIELD_BREAKS, true)) {
            self::$line = false;

            return null;
        }

        list($content, self::$line) = explode(self::$delimiter, self::$line, 2) + [1 => false];
        if (false === self::$line) {
            return rtrim($content, "\r\n");
        }

        return $content;
    }
1234470
public function asText() : string
    {
        static $wktWriter;

        if ($wktWriter === null) {
            $wktWriter = new WKTWriter();
        }

        return $wktWriter->write($this);
    }
123844
public function toText()
	{
		$text = '';
		
		// if this group is not a destination
		if ( ! $this->isDestination()) {
			foreach ($this->children as $child) {
				$text .= $child->format('text');
			}
		}
		
		return $text;
	}
628260
public function getTypeText()
    {
        switch ($this->type) {
            case 'follow_user':
                return Yii::t('notification', 'follow on you');
                break;
            case 'answer_question':
                return Yii::t('notification', 'answered the question');
                break;
            case 'follow_question':
                return Yii::t('notification', 'is concerned about the problem');
                break;
            case 'comment_question':
                return Yii::t('notification', 'commented on the question');
                break;
            case 'invite_answer':
                return Yii::t('notification', 'invited you to answer');
                break;
            case 'adopt_answer':
                return Yii::t('notification', 'accepted your answer');
                break;
            default:
                return null;
                break;
        }
    }
1159216
public function getFullMessage(): string {
        $paras = [];

        if (!empty($this->getMainMessage())) {
            $paras[] = $this->getMainMessage();
        } elseif ($this->getErrorCount() === 0) {
            return '';
        }

        if (isset($this->errors[''])) {
            $paras[] = $this->formatErrorList('', $this->errors['']);
        }

        foreach ($this->errors as $field => $errors) {
            if ($field === '') {
                continue;
            }
            $paras[] = $this->formatErrorList($field, $errors);
        }

        $result = implode("\n\n", $paras);
        return $result;
    }