The following services are currently used:
path: src/AppBundle/Services/DataTableService.php
Used to populate data tables with information
- Use
paginateByColumn
function to retrieve data for a specific entity, pass search field and filter options.
path: src/AppBundle/Services/ImportService.php
Used to import information from different sources.
importProjects
function is used in inProjectImportCommand.php
to save project information based on an XML file. This function relies on:importCalendars
,importWorkPackages
,importWorkPackageProjectWorkCostTypes
,importAssignments
functions to populate the related entities
path: src/AppBundle/Services/MailerService.php
Service used to send all types of emails.
sendEmail
function is used to send an email. This function takes multiple parameters such as template name, from email, to email, attachments or cc emails. Usage:$mailerService->sendEmail('AppBundle:Email:user_register.html.twig', 'notification', '[email protected], $parameters);
path: src/AppBundle/Services/RequestParserService.php
Service used to parse the request parameters such as search string or filter options.
path: src/AppBundle/Services/UserService.php
This service is used for different operations on user entity.
path: src/AppBundle/Services/UserService.php
Service used to handle the projects filesystem.
createFileSystem(FileSystemEntity $fileSystem)
- creates a new filesystem based on settings saved in FileSystem entity.getFileSystemMap()
- returns the map with all existing filesystem.saveMediaFile(Media $media, File $file)
- saves a specific Media entity into a filesystem.removeMediaFile(Media $media)
- removes a specific Media entity from a filesystem.
path: src/AppBundle/Services/TeamService.php
Service used to handle operations on Team entity.
isEnabled($slug)
- checks if a Team object is enabled based on "slug" parameter in order to allow users to login on team website.
More information about functions and parameters of each services can be found in Sami Documentation -> Services.