PHP Class GBPost, gitblog

Inheritance: extends GBExposedContent
ファイルを表示 Open project: rsms/gitblog Class Usage Examples

Public Methods

Method Description
cachename ( )
cachenameFromURI ( $slug, &$strptime, $return_struct = false )
find ( $uri_path_or_slug, $version = null, $strptime = null, $applyBodyFilters = true )
findByDateAndSlug ( $published, $slug )
findByName ( $name, $version = null, $applyBodyFilters = true )
mkCachename ( $published, $slug )
pageByPageno ( $pageno )
parseData ( $data )
parsePathspec ( $pathspec, &$date, &$slug, &$fnext ) Parse a pathspec for a post into date, slug and file extension.
pathToCached ( $slug, $strptime = null )
pathToPage ( $pageno )
pathToWork ( $slug, $strptime = null ) Find path to work content of a post. Returns null if not found.
recommendedName ( )
urlpath ( )

Method Details

cachename() public method

public cachename ( )

cachenameFromURI() static public method

static public cachenameFromURI ( $slug, &$strptime, $return_struct = false )

find() static public method

static public find ( $uri_path_or_slug, $version = null, $strptime = null, $applyBodyFilters = true )

findByDateAndSlug() static public method

static public findByDateAndSlug ( $published, $slug )

findByName() static public method

static public findByName ( $name, $version = null, $applyBodyFilters = true )

mkCachename() static public method

static public mkCachename ( $published, $slug )

pageByPageno() static public method

static public pageByPageno ( $pageno )

parseData() public method

public parseData ( $data )

parsePathspec() static public method

Example: content/posts/2008-08/29-reading-a-book.html date: GBDateTime(2008-08-29T00:00:00Z) (resolution restricted by gb::$posts_cn_pattern) slug: "reading-a-book" fnext: "html"
static public parsePathspec ( $pathspec, &$date, &$slug, &$fnext )

pathToCached() static public method

static public pathToCached ( $slug, $strptime = null )

pathToPage() static public method

static public pathToPage ( $pageno )

pathToWork() static public method

Find path to work content of a post. Returns null if not found.
static public pathToWork ( $slug, $strptime = null )

recommendedName() public method

public recommendedName ( )

urlpath() public method

public urlpath ( )