Dotclear 2.24
Loading...
Searching...
No Matches
dcNotices Class Reference

Public Member Functions

 __construct ()
 
 getTable ()
 
 getNotices (array $params=[], bool $count_only=false)
 
 addNotice (cursor $cur)
 
 delNotices (?int $id, bool $all=false)
 

Protected Attributes

const NOTICE_TABLE_NAME = 'notice'
 
 $table
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Class constructor

References dcCore\app(), and NOTICE_TABLE_NAME.

Member Function Documentation

◆ getTable()

getTable ( )

Gets the table name

Returns
string

References NOTICE_TABLE_NAME.

◆ getNotices()

getNotices ( array  $params = [],
bool  $count_only = false 
)

Gets the notices.

Parameters
array$paramsThe parameters
bool$count_onlyThe count only
Returns
dcRecord The notices.

◆ addNotice()

addNotice ( cursor  $cur)

Adds a notice.

Parameters
cursor$curThe cursor
Returns
int The notice id

References dcCore\app(), and cursor\insert().

◆ delNotices()

delNotices ( ?int  $id,
bool  $all = false 
)

Delete notice(s)

Parameters
int | null$idThe identifier
bool$allAll

Field Documentation

◆ NOTICE_TABLE_NAME

const NOTICE_TABLE_NAME = 'notice'
protected

Referenced by __construct(), and getTable().

◆ $table

$table
protected

The documentation for this class was generated from the following file: