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

Static Public Member Functions

static init ()
 
static process ()
 
static render ()
 

Static Protected Member Functions

static isContributionAllowed ($id, $dt, bool $com=true)
 
static showComments (dcRecord $rs, bool $has_action, bool $tb=false, bool $show_ip=true)
 

Member Function Documentation

◆ init()

◆ process()

◆ render()

◆ isContributionAllowed()

static isContributionAllowed (   $id,
  $dt,
bool  $com = true 
)
staticprotected

Controls comments or trakbacks capabilities

Parameters
mixed$idThe identifier
mixed$dtThe date
bool$comThe com
Returns
bool True if contribution allowed, False otherwise.

References dcCore\app().

◆ showComments()

static showComments ( dcRecord  $rs,
bool  $has_action,
bool  $tb = false,
bool  $show_ip = true 
)
staticprotected

Shows the comments or trackbacks.

Parameters
dcRecord$rsThe recordset
bool$has_actionIndicates if action is possible
bool$tbIs trackbacks?
bool$show_ipShow ip?

References dcCore\app(), form\checkbox(), dcBlog\COMMENT_PUBLISHED, dt\dt2str(), html\escapeHTML(), and dcRecord\fetch().

Referenced by render().


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