Zed. The source code to build a world.

ProfileComment extends Entity
in package
Uses WithDatabase

Profile comments class

This class maps the profiles_comments table.

Table of Contents

Properties

$author  : mixed
$authorname  : mixed
$date  : mixed
$id  : mixed
$lastError  : string
$perso_id  : mixed
$text  : mixed
$db  : DatabaseEngine

Methods

__construct()  : mixed
Initializes a new instance of the ProfileComment class
get_comments()  : mixed
Gets comments
getDatabase()  : DatabaseEngine
load_from_database()  : bool
Loads the object comment (ie fill the properties) from the database
load_from_form()  : mixed
Loads the object comment (ie fill the properties) from the $_POST array
publish()  : mixed
Publishes the comment
save_to_database()  : void
Saves the object to the database
setDatabase()  : void

Properties

Methods

__construct()

Initializes a new instance of the ProfileComment class

public __construct(DatabaseEngine $db[, int $id = '' ]) : mixed
Parameters
$db : DatabaseEngine
$id : int = ''

the comment ID

get_comments()

Gets comments

public static get_comments(DatabaseEngine $db, int $perso_id) : mixed
Parameters
$db : DatabaseEngine
$perso_id : int

The Perso ID

getDatabase()

public getDatabase() : DatabaseEngine
Return values
DatabaseEngine

load_from_database()

Loads the object comment (ie fill the properties) from the database

public load_from_database() : bool
Return values
bool

load_from_form()

Loads the object comment (ie fill the properties) from the $_POST array

public load_from_form() : mixed

publish()

Publishes the comment

public publish() : mixed
Tags
todo

Add events on publish

save_to_database()

Saves the object to the database

public save_to_database() : void

setDatabase()

public setDatabase(DatabaseEngine $db) : void
Parameters
$db : DatabaseEngine

        
On this page

Search results