Profile
extends Entity
in package
Uses
WithDatabase
Profile class
This class maps the profiles table.
The class also provides methods to handle and cache tags.
Table of Contents
Properties
- $fixedwidth : mixed
- $lastError : string
- $perso : Perso
- $text : string
- $updated : mixed
- $db : DatabaseEngine
Methods
- __construct() : mixed
- Initializes a new instance of the Profile class
- get_cached_tags() : string
- Gets the profile's cached tags
- get_tags() : string
- Gets the profile's tags
- getDatabase() : DatabaseEngine
- load_from_database() : bool
- Loads the object Profile (ie fill the properties) from the database
- load_from_form() : mixed
- Loads the object Profile (ie fill the properties) from the $_POST array
- save_to_database() : void
- Saves the object to the database
- setDatabase() : void
Properties
$fixedwidth
public
mixed
$fixedwidth
$lastError
public
string
$lastError
= ""
$perso
public
Perso
$perso
$text
public
string
$text
= ""
$updated
public
mixed
$updated
$db
private
DatabaseEngine
$db
Methods
__construct()
Initializes a new instance of the Profile class
public
__construct(DatabaseEngine $db, Perso $perso) : mixed
Parameters
- $db : DatabaseEngine
- $perso : Perso
get_cached_tags()
Gets the profile's cached tags
public
get_cached_tags() : string
Return values
string —The profile's tags
get_tags()
Gets the profile's tags
public
get_tags() : string
Return values
string —The profile's tags
getDatabase()
public
getDatabase() : DatabaseEngine
Return values
DatabaseEngineload_from_database()
Loads the object Profile (ie fill the properties) from the database
public
load_from_database() : bool
Return values
boolload_from_form()
Loads the object Profile (ie fill the properties) from the $_POST array
public
load_from_form([mixed $read_boolean = true ]) : mixed
Parameters
- $read_boolean : mixed = true
save_to_database()
Saves the object to the database
public
save_to_database() : void
setDatabase()
public
setDatabase(DatabaseEngine $db) : void
Parameters
- $db : DatabaseEngine