ModelManager
in package
Uses
TNCLogger
Class ModelManager
Table of Contents
- $ALERT : mixed
- $CRITICAL : mixed
- $DEBUG : mixed
- $EMERGENCY : mixed
- $ERROR : mixed
- $INFO : mixed
- $NOTICE : mixed
- $WARNING : mixed
- $appManager : IAppManager
- $circleRequest : CircleRequest
- $configService : ConfigService
- $coreRequestBuilder : CoreQueryBuilder
- $fullDetails : bool
- $interfaceService : InterfaceService
- $memberRequest : MemberRequest
- $membershipRequest : MembershipRequest
- $membershipService : MembershipService
- $pathLinkGenerated : bool
- $pathLinkGeneration : string
- $remoteService : RemoteService
- $urlGenerator : IURLGenerator
- __construct() : mixed
- ModelManager constructor.
- alert() : void
- debug() : void
- e() : void
- emergency() : void
- exception() : void
- fixInstance() : string
- generateLinkToCircle() : string
- getConfigService() : ConfigService
- getInheritedMembers() : void
- getLink() : Membership
- getLocalInstance() : string
- getMembers() : void
- getMemberships() : void
- getRemoteInheritedMembers() : void
- isFullDetails() : bool
- isLocalInstance() : bool
- log() : void
- logger() : LoggerInterface
- manageImportFromDatabase() : void
- notice() : void
- setFullDetails() : void
- t() : void
- throwable() : void
- warning() : void
- importBasedOnPath() : mixed
- importIntoCircle() : void
- importIntoFederatedUser() : void
- importIntoMember() : void
- importIntoMount() : void
- importIntoShareWrapper() : void
Properties
$ALERT
public
static mixed
$ALERT
= 3
$CRITICAL
public
static mixed
$CRITICAL
= 3
$DEBUG
public
static mixed
$DEBUG
= 0
$EMERGENCY
public
static mixed
$EMERGENCY
= 4
$ERROR
public
static mixed
$ERROR
= 3
$INFO
public
static mixed
$INFO
= 1
$NOTICE
public
static mixed
$NOTICE
= 1
$WARNING
public
static mixed
$WARNING
= 2
$appManager
private
IAppManager
$appManager
$circleRequest
private
CircleRequest
$circleRequest
$configService
private
ConfigService
$configService
$coreRequestBuilder
private
CoreQueryBuilder
$coreRequestBuilder
$fullDetails
private
bool
$fullDetails
= false
$interfaceService
private
InterfaceService
$interfaceService
$memberRequest
private
MemberRequest
$memberRequest
$membershipRequest
private
MembershipRequest
$membershipRequest
$membershipService
private
MembershipService
$membershipService
$pathLinkGenerated
private
bool
$pathLinkGenerated
= false
$pathLinkGeneration
private
string
$pathLinkGeneration
= ''
$remoteService
private
RemoteService
$remoteService
$urlGenerator
private
IURLGenerator
$urlGenerator
Methods
__construct()
ModelManager constructor.
public
__construct(IURLGenerator $urlGenerator, IAppManager $appManager, CoreQueryBuilder $coreRequestBuilder, CircleRequest $circleRequest, MemberRequest $memberRequest, MembershipRequest $membershipRequest, InterfaceService $interfaceService, MembershipService $membershipService, RemoteService $remoteService, ConfigService $configService) : mixed
Parameters
- $urlGenerator : IURLGenerator
- $appManager : IAppManager
- $coreRequestBuilder : CoreQueryBuilder
- $circleRequest : CircleRequest
- $memberRequest : MemberRequest
- $membershipRequest : MembershipRequest
- $interfaceService : InterfaceService
- $membershipService : MembershipService
- $remoteService : RemoteService
- $configService : ConfigService
Return values
mixed —alert()
public
alert(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —debug()
public
debug(string $message[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $serializable : array<string|int, mixed> = []
Return values
void —e()
public
e(Exception $e[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $e : Exception
- $serializable : array<string|int, mixed> = []
Return values
void —emergency()
public
emergency(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —exception()
public
exception(Exception $e[, int|array<string|int, mixed> $level = 3 ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $e : Exception
- $level : int|array<string|int, mixed> = 3
- $serializable : array<string|int, mixed> = []
Return values
void —fixInstance()
public
fixInstance(string $instance) : string
Parameters
- $instance : string
Tags
Return values
string —generateLinkToCircle()
public
generateLinkToCircle(string $singleId) : string
Parameters
- $singleId : string
Return values
string —getConfigService()
public
getConfigService() : ConfigService
Return values
ConfigService —getInheritedMembers()
public
getInheritedMembers(Circle $circle[, bool $detailed = false ]) : void
Parameters
- $circle : Circle
- $detailed : bool = false
Return values
void —getLink()
public
getLink(IEntity $member, string $circleId[, bool $detailed = false ]) : Membership
Parameters
- $member : IEntity
- $circleId : string
- $detailed : bool = false
Tags
Return values
Membership —getLocalInstance()
public
getLocalInstance() : string
Return values
string —getMembers()
public
getMembers(Circle $circle) : void
Parameters
- $circle : Circle
Return values
void —getMemberships()
public
getMemberships(IEntity $member) : void
Parameters
- $member : IEntity
Return values
void —getRemoteInheritedMembers()
public
getRemoteInheritedMembers(Circle $circle[, bool $detailed = false ]) : void
Parameters
- $circle : Circle
- $detailed : bool = false
Tags
Return values
void —isFullDetails()
public
isFullDetails() : bool
Return values
bool —isLocalInstance()
public
isLocalInstance(string $instance) : bool
Parameters
- $instance : string
Return values
bool —log()
public
log(int $level, string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $level : int
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —logger()
public
logger() : LoggerInterface
Return values
LoggerInterface —manageImportFromDatabase()
public
manageImportFromDatabase(ManagedModel $model, array<string|int, mixed> $data, string $base) : void
Parameters
- $model : ManagedModel
- $data : array<string|int, mixed>
- $base : string
Return values
void —notice()
public
notice(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —setFullDetails()
public
setFullDetails(bool $full) : void
Parameters
- $full : bool
Return values
void —t()
public
t(Throwable $t[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $t : Throwable
- $serializable : array<string|int, mixed> = []
Return values
void —throwable()
public
throwable(Throwable $t[, int $level = 3 ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $t : Throwable
- $level : int = 3
- $serializable : array<string|int, mixed> = []
Return values
void —warning()
public
warning(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —importBasedOnPath()
private
importBasedOnPath(ManagedModel $model, array<string|int, mixed> $data, string $path, string $prefix) : mixed
Parameters
- $model : ManagedModel
- $data : array<string|int, mixed>
- $path : string
- $prefix : string
Return values
mixed —importIntoCircle()
private
importIntoCircle(Circle $circle, array<string|int, mixed> $data, string $path, string $prefix) : void
Parameters
- $circle : Circle
- $data : array<string|int, mixed>
- $path : string
- $prefix : string
Return values
void —importIntoFederatedUser()
private
importIntoFederatedUser(FederatedUser $federatedUser, array<string|int, mixed> $data, string $path, string $prefix) : void
Parameters
- $federatedUser : FederatedUser
- $data : array<string|int, mixed>
- $path : string
- $prefix : string
Return values
void —importIntoMember()
private
importIntoMember(Member $member, array<string|int, mixed> $data, string $path, string $prefix) : void
Parameters
- $member : Member
- $data : array<string|int, mixed>
- $path : string
- $prefix : string
Return values
void —importIntoMount()
private
importIntoMount(Mount $mount, array<string|int, mixed> $data, string $path, string $prefix) : void
Parameters
- $mount : Mount
- $data : array<string|int, mixed>
- $path : string
- $prefix : string
Return values
void —importIntoShareWrapper()
private
importIntoShareWrapper(ShareWrapper $shareWrapper, array<string|int, mixed> $data, string $path, string $prefix) : void
Parameters
- $shareWrapper : ShareWrapper
- $data : array<string|int, mixed>
- $path : string
- $prefix : string