Logidav Docs

BeyableService extends TransactionalService
in package

Class BeyableService

Table of Contents

Properties

$beyableRepository  : BeyableDataRepository
$container  : ContainerInterface
$em  : EntityManager

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
connectToSftp()  : SFTP
Connecting to SFTP
getArrayFromCsv()  : array<string|int, mixed>|bool
Gets the array from csv.
getEntityManager()  : EntityManager
Getter of the Entity Manager
getRepo()  : BeyableDataRepository
Get Beyable Repository
save()  : BeyableData
Save a Beyable
setEntityManager()  : mixed
Setter of the Entity Manager

Properties

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

connectToSftp()

Connecting to SFTP

public connectToSftp() : SFTP
Return values
SFTP

getArrayFromCsv()

Gets the array from csv.

public static getArrayFromCsv(string $file[, string $delimiter = ',' ][, string $enclosure = '"' ][, bool $isFileContent = false ][, callable $headerFormatter = NULL ]) : array<string|int, mixed>|bool
Parameters
$file : string

The filename or the file content

$delimiter : string = ','

The values delimiter

$enclosure : string = '"'

The values enclosure

$isFileContent : bool = false

Indicates if $file is the content or the filename

$headerFormatter : callable = NULL

A callback that can be provided to format the header of the csv in order to set each line array keys // takes an array of actual headers as parameter // must return an array containing the desired keys

Return values
array<string|int, mixed>|bool

The array from csv or false if the file is not readable.

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager


        
On this page

Search results