PHP Класс GBExposedContent, gitblog

Наследование: extends GBContent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_rawBody # not serialized but only used during runtime
$body
$categories
$comments
$commentsOpen
$draft
$excerpt
$meta
$pingbackOpen
$slug
$tags
$title

Открытые методы

Метод Описание
__construct ( $name = null, $id = null, $slug = null, $meta = [], $body = null )
__sleep ( )
__toString ( )
_findByMetaIndex ( $tags, $index, $op = 'and' )
_findByMetaIndexAND ( $tags, $index )
body ( )
buildHeaderFields ( )
categoryLinks ( $prefix = '', $suffix = '', $template = '<a href="%u">%n</a>', $nglue = ', ', $endglue = ' and ' )
collLinks ( $what, $prefix = '', $suffix = '', $template = '<a href="%u">%n</a>', $nglue = ', ', $endglue = ' and ', $htmlescape = true )
commentsLink ( $prefix = '', $suffix = '', $template = '<a href="%u" class="numcomments" title="%t">%n</a>' )
commentsStageName ( )
condensedVersion ( ) Return a, possibly cloned, version of this post which contains a minimal set of information. Primarily used for paged posts pages.
domID ( )
exists ( )
find ( $slug, $subdir = '', $class = 'GBExposedContent', $version = null, $applyBodyFilters = true )
findByCacheName ( $cachename )
findByCategories ( $cats, $pageno )
findByMetaIndex ( $tags, $indexname, $pageno )
findByTags ( $tags, $pageno )
findHeaderTerminatorOffset ( $data )
fnext ( )
getCommentsDB ( )
isDirty ( ) True if there are local, uncommitted modifications
isTracked ( )
isWorkVersion ( )
loadWork ( $path, $post = false, $class = 'GBExposedContent', $id = null, $slug = null, $applyBodyFilters = true )
numberOfComments ( $topological = true, $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )
numberOfShadowedComments ( $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )
numberOfUnapprovedComments ( $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )
parseData ( $data )
parseHeader ( $lines, &$out )
parseHeaderFields ( )
parseVersion ( $version )
pathToCached ( $subdir, $slug ) * Get path to cached content where the slug is static.
pathToWork ( $subdir, $slug_fnpattern ) Find path to work content where the slug is static. Returns null if not found.
pathspecFromAbsPath ( $path )
rawBody ( $data = null )
recommendedFilenameExtension ( $default = '' )
recommendedName ( )
reload ( $data, $commits = null, $applyBodyFilters = true )
setRawBody ( $body )
tagLinks ( $prefix = '', $suffix = '', $template = '<a href="%u">%n</a>', $nglue = ', ', $endglue = ' and ' )
textBody ( )
toBlob ( )
url ( $include_version = false, $include_pathspec = false )
urlpath ( )

Описание методов

__construct() публичный Метод

public __construct ( $name = null, $id = null, $slug = null, $meta = [], $body = null )

__sleep() публичный Метод

public __sleep ( )

__toString() публичный Метод

public __toString ( )

_findByMetaIndex() статический публичный Метод

static public _findByMetaIndex ( $tags, $index, $op = 'and' )

_findByMetaIndexAND() статический публичный Метод

static public _findByMetaIndexAND ( $tags, $index )

body() публичный Метод

public body ( )

buildHeaderFields() публичный Метод

public buildHeaderFields ( )

commentsStageName() публичный Метод

public commentsStageName ( )

condensedVersion() публичный Метод

Return a, possibly cloned, version of this post which contains a minimal set of information. Primarily used for paged posts pages.
public condensedVersion ( )

domID() публичный Метод

public domID ( )

exists() публичный Метод

public exists ( )

find() статический публичный Метод

static public find ( $slug, $subdir = '', $class = 'GBExposedContent', $version = null, $applyBodyFilters = true )

findByCacheName() статический публичный Метод

static public findByCacheName ( $cachename )

findByCategories() статический публичный Метод

static public findByCategories ( $cats, $pageno )

findByMetaIndex() статический публичный Метод

static public findByMetaIndex ( $tags, $indexname, $pageno )

findByTags() статический публичный Метод

static public findByTags ( $tags, $pageno )

findHeaderTerminatorOffset() статический публичный Метод

static public findHeaderTerminatorOffset ( $data )

fnext() публичный Метод

public fnext ( )

getCommentsDB() публичный Метод

public getCommentsDB ( )

isDirty() публичный Метод

True if there are local, uncommitted modifications
public isDirty ( )

isTracked() публичный Метод

public isTracked ( )

isWorkVersion() публичный Метод

public isWorkVersion ( )

loadWork() статический публичный Метод

static public loadWork ( $path, $post = false, $class = 'GBExposedContent', $id = null, $slug = null, $applyBodyFilters = true )

numberOfComments() публичный Метод

public numberOfComments ( $topological = true, $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )

numberOfShadowedComments() публичный Метод

public numberOfShadowedComments ( $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )

numberOfUnapprovedComments() публичный Метод

public numberOfUnapprovedComments ( $sone = 'comment', $smany = 'comments', $zero = 'No', $one = 'One' )

parseData() публичный Метод

public parseData ( $data )

parseHeader() статический публичный Метод

static public parseHeader ( $lines, &$out )

parseHeaderFields() публичный Метод

public parseHeaderFields ( )

parseVersion() статический публичный Метод

static public parseVersion ( $version )

pathToCached() статический публичный Метод

* Get path to cached content where the slug is static.
static public pathToCached ( $subdir, $slug )

pathToWork() статический публичный Метод

Find path to work content where the slug is static. Returns null if not found.
static public pathToWork ( $subdir, $slug_fnpattern )

pathspecFromAbsPath() статический публичный Метод

static public pathspecFromAbsPath ( $path )

rawBody() публичный Метод

public rawBody ( $data = null )

recommendedFilenameExtension() публичный Метод

public recommendedFilenameExtension ( $default = '' )

recommendedName() публичный Метод

public recommendedName ( )

reload() публичный Метод

public reload ( $data, $commits = null, $applyBodyFilters = true )

setRawBody() публичный Метод

public setRawBody ( $body )

textBody() публичный Метод

public textBody ( )

toBlob() публичный Метод

public toBlob ( )

url() публичный Метод

public url ( $include_version = false, $include_pathspec = false )

urlpath() публичный Метод

public urlpath ( )

Описание свойств

$_rawBody публичное свойство

# not serialized but only used during runtime
public $_rawBody

$body публичное свойство

public $body

$categories публичное свойство

public $categories

$comments публичное свойство

public $comments

$commentsOpen публичное свойство

public $commentsOpen

$draft публичное свойство

public $draft

$excerpt публичное свойство

public $excerpt

$meta публичное свойство

public $meta

$pingbackOpen публичное свойство

public $pingbackOpen

$slug публичное свойство

public $slug

$tags публичное свойство

public $tags

$title публичное свойство

public $title