ClubsManager has API functions to handle Club object/s and delivers it through web application.
◆ __construct()
| ClubsManager::__construct |
( |
mysqli |
$mysqli | ) |
|
Initialize ClubsManager with live database connection.
- Parameters
-
◆ FindAllClubs()
| ClubsManager::FindAllClubs |
( |
| ) |
|
Retrieve list of all clubs.
- Returns
- array<Club>
◆ GetClubAffiliationToRegion()
| ClubsManager::GetClubAffiliationToRegion |
( |
|
$clubID | ) |
|
Get Region id based on Club id.
- Parameters
-
- Returns
- int
◆ GetClubByID()
| ClubsManager::GetClubByID |
( |
|
$clubID | ) |
|
Get Club based on id.
- Parameters
-
- Returns
- Club|null
◆ InsertNewClub()
| ClubsManager::InsertNewClub |
( |
|
$name, |
|
|
|
$abbreviation, |
|
|
|
$club_id, |
|
|
|
$img, |
|
|
|
$kraj |
|
) |
| |
Create new Club in the web applicaton.
- Parameters
-
| string | $name | |
| string | $abbreviation | |
| int | $club_id | |
| string | $img | |
| int | $kraj | |
- Returns
- bool
◆ UpdateClub()
| ClubsManager::UpdateClub |
( |
|
$id, |
|
|
|
$name, |
|
|
|
$abbreviation, |
|
|
|
$code, |
|
|
|
$img, |
|
|
|
$affiliation_region_id |
|
) |
| |
Update Club information.
- Parameters
-
| int | $id | |
| string | $name | |
| string | $abbreviation | |
| string | $code | |
| string | $img | |
| int | $affiliation_region_id | |
- Returns
- bool
The documentation for this class was generated from the following file: