File
in package
Session class contains helpers functions.
Table of Contents
Properties
- $configFactory : ConfigFactory
- Configuration Factory.
- $database : Connection
- The database connection.
- $entityTypeManager : EntityTypeManagerInterface
- The entity type manager.
- $streamWrapperManager : StreamWrapperManager
- The Stream Wrapper Manager.
Methods
- __construct() : mixed
- Session helper Constructor.
- getAttachedMultimediaFilesToSession() : mixed
- Fetch attached multimedia files to specific session.
- getMultimediaFiles() : mixed
- Return uploaded files from multimedia center tab.
Properties
$configFactory
Configuration Factory.
protected
ConfigFactory
$configFactory
$database
The database connection.
protected
Connection
$database
$entityTypeManager
The entity type manager.
protected
EntityTypeManagerInterface
$entityTypeManager
$streamWrapperManager
The Stream Wrapper Manager.
protected
StreamWrapperManager
$streamWrapperManager
Methods
__construct()
Session helper Constructor.
public
__construct(Connection $database, EntityTypeManagerInterface $entity_type_manager, ConfigFactory $configFactory, StreamWrapperManager $stream_wrapper_manager) : mixed
Parameters
- $database : Connection
-
Database connection instance.
- $entity_type_manager : EntityTypeManagerInterface
-
EntityTypeManager instance.
- $configFactory : ConfigFactory
-
Config factory instance.
- $stream_wrapper_manager : StreamWrapperManager
-
The Stream Wrapper Manager.
getAttachedMultimediaFilesToSession()
Fetch attached multimedia files to specific session.
public
getAttachedMultimediaFilesToSession(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
getMultimediaFiles()
Return uploaded files from multimedia center tab.
public
getMultimediaFiles(mixed $sessionId[, mixed $type = NULL ]) : mixed
Parameters
- $sessionId : mixed
- $type : mixed = NULL