EntryLite
戻る
EntryLite クラス - EntryLite Class
- EntryLite クラス
- ジャーナルエントリとコメント、両方の親クラス。
Base class for both journal entries and comments.
継承関係 - Derived Classes
メンバ - Members
- int depth
- エントリの視覚深度。トップレベルのジャーナルエントリは常に深度ゼロです。コメントでは、スレッドがルートをどこにしているかによって 1 以上の深度を持ちます。
Visual depth of entry. Top-level journal entries are always depth zero. Comments have a depth greater than or equal to one, depending on where the thread is rooted at.
- string{} metadata
- (Read-only) メタデータ。キー: 'music', 'mood'
(Read-only) Post metadata. Keys: 'music', 'mood'
- string permalink_url
- (Read-only) リンクするためのこのエントリだけを表示させるコトが出来る URL。
(Read-only) A URL at which this specific entry can be viewed, for linking purposes.
- string subject
- (Read-only) 件名。HTML を含むかもしれません。これの部分文字列(substring)を切り取ることはしないでください。
(Read-only) Subject. May contain HTML. Don't do substring chops on this.
- string text
- (Read-only) テキスト ('month' ビューやスレッド畳み表示などのいくつかのビュータイプではブランクになります。)
(Read-only) Text (will be blank on some viewtypes, like 'month' view, or with collapsed threads)
- DateTime? time
- ユーザによって指定された投稿時刻か、コメントの場合はグリニッジ標準時。
The user-specified time of the post, or the GMT time if it's a comment.
Methods
- get_plain_subject() : string
- エントリーは HTML を含む件名(subject)を持つことが出来るが、これは HTML を含まない件名を返す。コメントの場合は件名に HTML を含むことは出来ないので、これは $.subject を使用したのと同じ結果を返します。戻り値は HTML エンティティを持っているかもしれないので、戻り値の部分文字列(substring)を切り取ることはしないでください。
For Entries that can contain HTML subjects, this returns the subjeft without HTML. Comments can't have HTML in subjects, so this is equivalent to just using $.subject. The returned 'plain' subject may still contain HTML entities, so don't do substring chops on it either.
2006年09月17日(日) 03:28:27 Modified by gay_shinshi