Class Socialveo\Core\helpers\MessagesHelper

InheritanceSocialveo\Core\helpers\MessagesHelper » Socialveo\Core\helpers\MediaUploaderHelper
Uses TraitsSocialveo\Core\Translatable

Class MessagesHelper

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$target_type string Socialveo\Core\helpers\MessagesHelper

Property Details

$target_type public static property
public static string $target_type 'message'

Method Details

create() public static method

Message creation

public static Socialveo\Core\models\Messages|null create ( Socialveo\Core\models\MessagesDialogs $dialog, $data = [], $language 'en-US' )
$dialog Socialveo\Core\models\MessagesDialogs
$data array
$language string
throws Socialveo\Core\exceptions\ValidateException
throws Exception
searchMessagesPagination() public static method

Messages scroll pagination

public static array searchMessagesPagination ( Socialveo\Core\models\MessagesDialogs $dialog )
$dialog Socialveo\Core\models\MessagesDialogs
uniqueNewLines() public static method

Remove extra new lines

public static string uniqueNewLines ( $str )
$str string