|
static | isEditable (dcRecord $rs) |
|
static | isDeletable (dcRecord $rs) |
|
static | firstPostOfDay (dcRecord $rs) |
|
static | lastPostOfDay (dcRecord $rs) |
|
static | commentsActive (dcRecord $rs) |
|
static | trackbacksActive (dcRecord $rs) |
|
static | hasComments (dcRecord $rs) |
|
static | hasTrackbacks (dcRecord $rs) |
|
static | isRepublished (dcRecord $rs) |
|
static | getURL (dcRecord $rs) |
|
static | getCategoryURL (dcRecord $rs) |
|
static | isExtended (dcRecord $rs) |
|
static | getTS (dcRecord $rs, string $type='') |
|
static | getISO8601Date (dcRecord $rs, string $type='') |
|
static | getRFC822Date (dcRecord $rs, string $type='') |
|
static | getDate (dcRecord $rs, ?string $format, string $type='') |
|
static | getTime (dcRecord $rs, ?string $format, string $type='') |
|
static | getAuthorCN (dcRecord $rs) |
|
static | getAuthorLink (dcRecord $rs) |
|
static | getAuthorEmail (dcRecord $rs, bool $encoded=true) |
|
static | getFeedID (dcRecord $rs) |
|
static | getTrackbackData (dcRecord $rs, string $format='html') |
|
static | getTrackbackLink (dcRecord $rs) |
|
static | getContent (dcRecord $rs, bool $absolute_urls=false) |
|
static | getExcerpt (dcRecord $rs, bool $absolute_urls=false) |
|
static | countMedia (dcRecord $rs, ?string $link_type=null) |
|
static | underCat (dcRecord $rs, string $cat_url) |
|
◆ isEditable()
◆ isDeletable()
◆ firstPostOfDay()
◆ lastPostOfDay()
◆ commentsActive()
Returns whether comments are enabled on post.
- Parameters
-
- Returns
- bool
References dcCore\app().
◆ trackbacksActive()
Returns whether trackbacks are enabled on post.
- Parameters
-
- Returns
- bool
References dcCore\app().
◆ hasComments()
Returns whether post has at least one comment.
- Parameters
-
- Returns
- bool
◆ hasTrackbacks()
Returns whether post has at least one trackbacks.
- Parameters
-
- Returns
- bool
◆ isRepublished()
Returns whether post has been updated since publication.
- Parameters
-
- Returns
- bool
References dt\getTimeOffset().
◆ getURL()
◆ getCategoryURL()
◆ isExtended()
Returns whether post has an excerpt.
- Parameters
-
- Returns
- bool
◆ getTS()
static getTS |
( |
dcRecord |
$rs, |
|
|
string |
$type = '' |
|
) |
| |
|
static |
Gets the post timestamp.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt|creadt) defaults to post_dt |
- Returns
- integer The ts.
◆ getISO8601Date()
static getISO8601Date |
( |
dcRecord |
$rs, |
|
|
string |
$type = '' |
|
) |
| |
|
static |
Returns post date formating according to the ISO 8601 standard.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt|creadt) defaults to post_dt |
- Returns
- string The iso 8601 date.
References dt\getTimeOffset(), and dt\iso8601().
◆ getRFC822Date()
static getRFC822Date |
( |
dcRecord |
$rs, |
|
|
string |
$type = '' |
|
) |
| |
|
static |
Returns post date formating according to RFC 822.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $type | The type, (dt|upddt|creadt) defaults to post_dt |
- Returns
- string The rfc 822 date.
References dt\getTimeOffset(), and dt\rfc822().
◆ getDate()
static getDate |
( |
dcRecord |
$rs, |
|
|
?string |
$format, |
|
|
string |
$type = '' |
|
) |
| |
|
static |
Returns post date with $format as formatting pattern. If format is empty, uses date_format blog setting.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $format | The date format pattern |
string | $type | The type, (dt|upddt|creadt) defaults to post_dt |
- Returns
- string The date.
References dcCore\app(), and dt\dt2str().
◆ getTime()
static getTime |
( |
dcRecord |
$rs, |
|
|
?string |
$format, |
|
|
string |
$type = '' |
|
) |
| |
|
static |
Returns post time with $format as formatting pattern. If format is empty, uses time_format blog setting.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $format | The time format pattern |
string | $type | The type, (dt|upddt|creadt) defaults to post_dt |
- Returns
- string The time.
References dcCore\app(), and dt\dt2str().
◆ getAuthorCN()
Returns author common name using user_id, user_name, user_firstname and user_displayname fields.
- Parameters
-
- Returns
- string The author common name.
References dcUtils\getUserCN().
◆ getAuthorLink()
Returns author common name with a link if he specified one in its preferences.
- Parameters
-
- Returns
- string
References html\escapeHTML().
◆ getAuthorEmail()
static getAuthorEmail |
( |
dcRecord |
$rs, |
|
|
bool |
$encoded = true |
|
) |
| |
|
static |
Returns author e-mail address. If $encoded is true, "@" sign is replaced by "%40" and "." by "%2e".
- Parameters
-
dcRecord | $rs | Invisible parameter |
bool | $encoded | Encode address |
- Returns
- string The author email.
◆ getFeedID()
Gets the post feed unique id.
- Parameters
-
- Returns
- string The feed id.
References dcCore\app().
◆ getTrackbackData()
static getTrackbackData |
( |
dcRecord |
$rs, |
|
|
string |
$format = 'html' |
|
) |
| |
|
static |
Returns trackback RDF information block in HTML comment.
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $format | The format (html|xml) |
- Returns
- string
◆ getTrackbackLink()
Gets the post trackback full URL.
- Parameters
-
- Returns
- string The trackback link.
References dcCore\app().
◆ getContent()
static getContent |
( |
dcRecord |
$rs, |
|
|
bool |
$absolute_urls = false |
|
) |
| |
|
static |
Returns post content. If $absolute_urls is true, appends full blog URL to each relative post URLs.
- Parameters
-
dcRecord | $rs | Invisible parameter |
bool | $absolute_urls | With absolute URLs |
- Returns
- string The content.
References html\absoluteURLs().
◆ getExcerpt()
static getExcerpt |
( |
dcRecord |
$rs, |
|
|
bool |
$absolute_urls = false |
|
) |
| |
|
static |
Returns post excerpt. If $absolute_urls is true, appends full blog URL to each relative post URLs.
- Parameters
-
dcRecord | $rs | Invisible parameter |
bool | $absolute_urls | With absolute URLs |
- Returns
- string The excerpt.
References html\absoluteURLs().
◆ countMedia()
static countMedia |
( |
dcRecord |
$rs, |
|
|
?string |
$link_type = null |
|
) |
| |
|
static |
◆ underCat()
static underCat |
( |
dcRecord |
$rs, |
|
|
string |
$cat_url |
|
) |
| |
|
static |
Returns true if current category if in given cat_url subtree
- Parameters
-
dcRecord | $rs | Invisible parameter |
string | $cat_url | The cat url |
- Returns
- bool true if current cat is in given cat subtree
References dcCore\app().
The documentation for this class was generated from the following file: