Documentation

ReferenceType
in package

Handles operations related to reference types.

Table of Contents

Properties

$mySql  : MySql

Methods

__construct()  : mixed
createByAdmin()  : void
Create a new reference type (admin).
getAll()  : array<int, array<string, mixed>>
Get all reference types filtered by status.
getByCode()  : array<string, mixed>
Get a single reference type by its code.
updateByCode()  : void
Update a reference type by its code (admin).

Properties

Methods

createByAdmin()

Create a new reference type (admin).

public createByAdmin(array<string, mixed> $data) : void

Expects in $data:

  • reference_type_code (string, required)
  • reference_type_name (string, required)
  • sort_order (int|null)
  • status (int, required)
  • createdby (string, required)
  • modifiedby (string, required)
Parameters
$data : array<string, mixed>

getAll()

Get all reference types filtered by status.

public getAll(array<string|int, int> $statuses) : array<int, array<string, mixed>>
Parameters
$statuses : array<string|int, int>
Return values
array<int, array<string, mixed>>

getByCode()

Get a single reference type by its code.

public getByCode(string $code) : array<string, mixed>
Parameters
$code : string
Return values
array<string, mixed>

updateByCode()

Update a reference type by its code (admin).

public updateByCode(array<string, mixed> $data) : void

Expects in $data:

  • reference_type_code (string, required)
  • reference_type_name (string|null)
  • sort_order (int|null)
  • status (int|null)
  • modifiedby (string, required)
Parameters
$data : array<string, mixed>

        
On this page

Search results