Dotclear 2.24
|
Dotclear comment record helpers. More...
Static Public Member Functions | |
static | getDate (dcRecord $rs, ?string $format, string $type='') |
static | getTime (dcRecord $rs, ?string $format, string $type='') |
static | getTS (dcRecord $rs, string $type='') |
static | getISO8601Date (dcRecord $rs, string $type='') |
static | getRFC822Date (dcRecord $rs, string $type='') |
static | getContent (dcRecord $rs, bool $absolute_urls=false) |
static | getAuthorURL (dcRecord $rs) |
static | getPostURL (dcRecord $rs) |
static | getAuthorLink (dcRecord $rs) |
static | getEmail (dcRecord $rs, bool $encoded=true) |
static | getTrackbackTitle (dcRecord $rs) |
static | getTrackbackContent (dcRecord $rs) |
static | getFeedID (dcRecord $rs) |
static | isMe (dcRecord $rs) |
Dotclear comment record helpers.
This class adds new methods to database comment results. You can call them on every record comming from dcBlog::getComments and similar methods.
|
static |
Returns comment date with $format as formatting pattern. If format is empty, uses date_format blog setting.
dcRecord | $rs | Invisible parameter |
string | $format | The date format pattern |
string | $type | The type, (dt|upddt) defaults to comment_dt |
References dcCore\app(), and dt\dt2str().
|
static |
Returns comment time with $format as formatting pattern. If format is empty, uses time_format blog setting.
dcRecord | $rs | Invisible parameter |
string | $format | The date format pattern |
string | $type | The type, (dt|upddt) defaults to comment_dt |
References dcCore\app(), and dt\dt2str().
|
static |
Returns comment timestamp.
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt) defaults to comment_dt |
|
static |
Returns comment date formating according to the ISO 8601 standard.
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt) defaults to comment_dt |
References dt\getTimeOffset(), and dt\iso8601().
|
static |
Returns comment date formating according to RFC 822.
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt) defaults to comment_dt |
References dt\getTimeOffset(), and dt\rfc822().
|
static |
Returns comment content. If $absolute_urls is true, appends full blog URL to each relative post URLs.
dcRecord | $rs | Invisible parameter |
bool | $absolute_urls | With absolute URLs |
References html\absoluteURLs(), dcCore\app(), and if.
|
static |
Returns comment author link to his website if he specified one.
dcRecord | $rs | Invisible parameter |
|
static |
Returns comment post full URL.
dcRecord | $rs | Invisible parameter |
References dcCore\app(), and html\sanitizeURL().
|
static |
Returns comment author name in a link to his website if he specified one.
dcRecord | $rs | Invisible parameter |
References dcCore\app(), and html\escapeHTML().
Returns comment author e-mail address. If $encoded is true, "@" sign is replaced by "%40" and "." by "%2e".
dcRecord | $rs | Invisible parameter |
bool | $encoded | Encode address |
|
static |
Returns trackback site title if comment is a trackback.
dcRecord | $rs | Invisible parameter |
References html\decodeEntities().
|
static |
Returns trackback content if comment is a trackback.
dcRecord | $rs | Invisible parameter |
|
static |
Returns comment feed unique ID.
dcRecord | $rs | Invisible parameter |
References dcCore\app().
|
static |
Determines whether the specified comment is from the post author.
dcRecord | $rs | Invisible parameter |