common/models/base/ActiveRecord.php
public function getMediumText( $text ) {

		if( strlen( $text ) > Yii::$app->core->mediumText ) {

			$text = substr( $text, 0, Yii::$app->core->mediumText );
		}

		return HtmlPurifier::process( $text );
	}
public function getMediumText( $text ) {

		if( strlen( $text ) > Yii::$app->core->mediumText ) {

			$text = substr( $text, 0, Yii::$app->core->mediumText );
		}

		return HtmlPurifier::process( $text );
	}
public function getMediumText ( $ text ) { if ( strlen ( $ text ) > Yii :: $ app -> core -> mediumText ) { $ text = substr ( $ text , 0 , Yii :: $ app -> core -> mediumText ) ; } return HtmlPurifier :: process ( $ text ) ; }
Returns cut down string having pre-defined medium length.

[[\cmsgears\core\common\config\CoreGlobal\CoreGlobal::TEXT_MEDIUM]] will be used by
default in case application property does not override it.

@param string $text to be cut down.
@return string the cut down text.
Returns cut down string having pre - defined medium length .