Methods |
public
|
__construct($sPath, string $sVersion = '1.0')
|
#
|
abstract
public
|
init(): void
|
#
|
public
static
|
createInstance(string $sPath, string $sVersion = '1.0'): AbstractModule
|
#
|
public
static
|
getInstance(): AbstractModule
|
#
|
public
static
|
Decorator(): Decorator
|
#
|
public
|
__invoke(): Decorator
|
#
|
public
static
|
__callStatic($name, $arguments)
|
#
|
public
|
RequireModule(string $sModule)
|
#
|
public
|
GetRequireModules(): array
|
#
|
public
|
isPermanent(): boolean
|
#
|
public
|
isValid(): boolean
|
#
|
public
|
initialize(): boolean
|
#
|
final
public
static
|
getNamespace(): string
|
#
|
public
|
loadModuleSettings(): Settings
|
#
|
public
|
saveModuleConfig()
Saves module settings to config.json file.
Saves module settings to config.json file.
returns bool
|
#
|
public
|
getConfig(string $sName, mixed $mDefaultValue = null): mixed
|
#
|
public
|
setConfig(string $sName, string $sValue = null): boolean
Sets new value of module setting.
Sets new value of module setting.
Parameters
$sName |
Name of module setting.
|
$sValue |
New value of module setting.
|
|
#
|
public
|
denyMethodsCallByWebApi(array $aMethods)
|
#
|
public
|
denyMethodCallByWebApi(string $sMethodName)
|
#
|
public
|
subscribeEvent(string $sEvent, callback $fCallback, int $iPriority = 100)
|
#
|
public
|
broadcastEvent(string $sEvent, array &$aArguments = [], &$mResult = null)
|
#
|
public
|
skipEvent(string $sEvent)
|
#
|
public
|
removeEventFromSkiped(string $sEvent)
|
#
|
public
|
includeTemplate(string $sParsedTemplateID, string $sParsedPlace, string $sTemplateFileName, string $sModuleName = '')
|
#
|
public
|
extendObject(string $sType, array $aMap)
|
#
|
public
|
getExtendedObject(string $sType): array
|
#
|
public
|
issetObject(string $sType): boolean
|
#
|
final
public
|
SetPath(string $sPath)
|
#
|
final
public
|
GetHash(): string
|
#
|
final
public
static
|
GetName(): string
|
#
|
final
public
|
GetPath(): string
|
#
|
public
|
GetVersion(): string
|
#
|
final
public
|
GetFullName(): string
|
#
|
final
public
|
AddEntry(string $sName, callback $mCallbak)
|
#
|
final
public
|
AddEntries(array $aEntries)
|
#
|
final
public
|
HasEntry(string $sName): boolean
|
#
|
final
public
|
RemoveEntry(string $sName)
|
#
|
final
public
|
RemoveEntries(array $aEntries)
|
#
|
final
public
|
GetEntryCallback(stranig $sName): mixed
|
#
|
final
public
|
DefaultResponse(string $sMethod, mixed $mResult = false): array
|
#
|
final
public
|
TrueResponse(string $sMethod): array
|
#
|
final
public
|
FalseResponse(
string $sMethod,
int $iErrorCode = null,
string $sErrorMessage = null,
array $aAdditionalParams = null,
$sModule = null,
): array
Parameters
$aAdditionalParams |
= null
|
|
#
|
final
public
|
ExceptionResponse(string $sActionName, Exception $oException, array $aAdditionalParams = null): array
Parameters
$aAdditionalParams |
= null
|
|
#
|
final
public
|
CallMethod(string $sMethod, array $aArguments = [], boolean $bWebApi = false): mixed
|
#
|
public
|
GetSettings(): array
Obtains list of module settings for authenticated user.
Obtains list of module settings for authenticated user.
Overriden by
|
#
|
public
|
i18N(string $sData, array $aParams = null, int $iPluralCount = null, string $sUUID = null): string
Parameters
$aParams |
= null
|
$iPluralCount |
= null
|
$sUUID |
= null
|
|
#
|
public
|
GetErrors(): array
|
#
|
public
|
GetErrorMessageByCode($iErrorCode): string
|
#
|
public
|
GetAdditionalEntityFieldsToEdit(): array
|
#
|