Documentation

Base
in package

Abstract Social media class.

Table of Contents

ALLOWED_TYPE_OF_LOG  = ['info', 'warning', 'error']
Allowed type of log.
$socialMediaType  : string
__construct()  : mixed
Base constructor.
isActive()  : bool
Is configured.
isExists()  : bool
Check if the current user exists.
log()  : mixed
Log to db.
logError()  : mixed
Log error.
logInfo()  : mixed
Log info.
logWarning()  : mixed
Log warning.
remove()  : mixed
Remove social media account from database.
removeMass()  : mixed
Remove mass social media records from DB.
retrieveDataFromApi()  : mixed
Retrieve data from Api.

Constants

ALLOWED_TYPE_OF_LOG

Allowed type of log.

public mixed ALLOWED_TYPE_OF_LOG = ['info', 'warning', 'error']

Properties

$socialMediaType

protected static string $socialMediaType

Methods

__construct()

Base constructor.

public abstract __construct(string $userName) : mixed
Parameters
$userName : string
Return values
mixed

isActive()

Is configured.

public abstract static isActive() : bool
Return values
bool

isExists()

Check if the current user exists.

public abstract isExists() : bool
Return values
bool

log()

Log to db.

public static log(string $typeOfLog, string $message) : mixed
Parameters
$typeOfLog : string
$message : string
Tags
throws
AppException
throws
Exception
Return values
mixed

logError()

Log error.

public static logError(string $message) : mixed
Parameters
$message : string
Tags
throws
AppException
throws
Exception
Return values
mixed

logInfo()

Log info.

public static logInfo(string $message) : mixed
Parameters
$message : string
Tags
throws
AppException
throws
Exception
Return values
mixed

logWarning()

Log warning.

public static logWarning(string $message) : mixed
Parameters
$message : string
Tags
throws
AppException
throws
Exception
Return values
mixed

remove()

Remove social media account from database.

public abstract remove() : mixed
Return values
mixed

removeMass()

Remove mass social media records from DB.

public abstract static removeMass(array<string|int, string> $logins) : mixed
Parameters
$logins : array<string|int, string>
Return values
mixed

retrieveDataFromApi()

Retrieve data from Api.

public abstract retrieveDataFromApi() : mixed
Return values
mixed

Search results