Documentation

Shifter
in package
implements IteratorAggregate

Shifter class

Table of Contents

Interfaces

IteratorAggregate

Constants

ERR_EMPTY_ARRAY  = -2
ERR_EMPTY_RESULT  = -1

Properties

$authUrl  : string
$searchUrl  : string
$shifter  : Shifter|null
$shifters  : array<string|int, mixed>

Methods

__construct()  : mixed
__destruct()  : mixed
filterActiveUsrByDivision()  : int
Search all active users by division
filterAllUsrByDivision()  : int
Search all users by division
filterByActive()  : int
Search all active users (not layoff)
filterByEmail()  : int
Search usr by email
filterByFiscalCode()  : int
Search usr by fiscal code
filterByLayOff()  : int
Search all layoff users
filterByZucchettiID()  : int
Search usr by Zucchetti ID
filterLayoffUsrByDivision()  : int
Search all layoff users by division
getIterator()  : array<string|int, mixed>
Iterate over shifters found
shifter()  : array<string|int, mixed>
Get the unique elem found
fetch()  : int
Connect to CollettoreUnico and do searchs

Constants

ERR_EMPTY_ARRAY

public mixed ERR_EMPTY_ARRAY = -2

ERR_EMPTY_RESULT

public mixed ERR_EMPTY_RESULT = -1

Properties

$authUrl

private string $authUrl = ''

$searchUrl

private string $searchUrl = ''

$shifters

private array<string|int, mixed> $shifters

Methods

__construct()

public __construct(string $proto, string $fqdn, int $port, string $auth) : mixed
Parameters
$proto : string
$fqdn : string
$port : int
$auth : string

__destruct()

public __destruct() : mixed

filterActiveUsrByDivision()

Search all active users by division

public filterActiveUsrByDivision(int $idDivision) : int
Parameters
$idDivision : int
Return values
int

Number of elems found

filterAllUsrByDivision()

Search all users by division

public filterAllUsrByDivision(int $idDivision) : int
Parameters
$idDivision : int
Return values
int

Number of elems found

filterByActive()

Search all active users (not layoff)

public filterByActive() : int
Return values
int

Number of elems found

filterByEmail()

Search usr by email

public filterByEmail(string $email) : int
Parameters
$email : string
Return values
int

Number of elems found

filterByFiscalCode()

Search usr by fiscal code

public filterByFiscalCode(string $fiscalCode) : int
Parameters
$fiscalCode : string
Return values
int

Number of elems found

filterByLayOff()

Search all layoff users

public filterByLayOff() : int
Return values
int

Number of elems found

filterByZucchettiID()

Search usr by Zucchetti ID

public filterByZucchettiID(string $zucchettiID) : int
Parameters
$zucchettiID : string
Return values
int

Number of elems found

filterLayoffUsrByDivision()

Search all layoff users by division

public filterLayoffUsrByDivision(int $idDivision) : int
Parameters
$idDivision : int
Return values
int

Number of elems found

getIterator()

Iterate over shifters found

public getIterator() : array<string|int, mixed>
Return values
array<string|int, mixed>

array of \CollettoreUnico\DataStructure\Shifter

shifter()

Get the unique elem found

public shifter() : array<string|int, mixed>
Return values
array<string|int, mixed>

array of \CollettoreUnico\DataStructure\Shifter

fetch()

Connect to CollettoreUnico and do searchs

private fetch() : int
Return values
int

Number of elems found


        
On this page

Search results