Documentation

EasyBlogCache extends EasyBlog
in package

Table of Contents

Properties

$app  : mixed
$bloggers  : mixed
$categories  : mixed
$cats  : mixed
$config  : mixed
$db  : mixed
$doc  : mixed
$input  : mixed
$jconfig  : mixed
$lang  : mixed
$my  : mixed
$posts  : mixed
$string  : mixed
$teamblogs  : mixed
$author  : mixed
$category  : mixed
$categoryfieldgroup  : mixed
$field  : mixed
$fieldgroup  : mixed
$fieldvalue  : mixed
$meta  : mixed
$post  : mixed
$revision  : mixed
$tag  : mixed
$team  : mixed
$types  : mixed

Methods

__construct()  : mixed
cacheAuthors()  : mixed
Caches all author items
cacheCategories()  : mixed
Caches all category items
cacheCommentCount()  : mixed
Caches the comment counters
cacheComments()  : mixed
Caches the comments
cacheFields()  : mixed
Cache custom fields for posts
cacheMetas()  : mixed
Cached posts meta
cachePosts()  : mixed
Caches the post objects
cacheRatings()  : mixed
Caches votes created for each posts
cacheRevisions()  : mixed
Caches revision items
cacheTags()  : mixed
Caches all tag items
cacheTeams()  : mixed
Cache teams for posts
cacheVoted()  : mixed
Cached voted items
exists()  : bool
check if the cache for the object type exists or not
fallback()  : mixed
Retrieves a fallback
get()  : object
set cache for the object type
getError()  : mixed
getErrors()  : mixed
hasError()  : mixed
hasErrors()  : mixed
insert()  : bool
Initializes the cache for all post items
insertBloggers()  : bool
Initializes the cache for all categories
insertCategories()  : mixed
Initializes the cache for all categories
insertTeams()  : bool
Initializes the cache for all teamblog items
isMobile()  : mixed
Determines if this is a mobile layout
isTablet()  : mixed
Determines if this is a tablet layout
loadLanguage()  : mixed
Helper method to load language
set()  : bool
Adds a cache for a specific item type
setError()  : mixed

Properties

$app

public mixed $app = \null

$bloggers

public mixed $bloggers = \null

$categories

public mixed $categories = \null

$cats

public mixed $cats = \null

$config

public mixed $config = \null

$db

public mixed $db = \null

$doc

public mixed $doc = \null

$input

public mixed $input = \null

$jconfig

public mixed $jconfig = \null

$lang

public mixed $lang = \null

$my

public mixed $my = \null

$posts

public mixed $posts = \null

$string

public mixed $string = \null

$teamblogs

public mixed $teamblogs = \null

$author

private mixed $author = array()

$category

private mixed $category = array()

$categoryfieldgroup

private mixed $categoryfieldgroup = array()

$field

private mixed $field = array()

$fieldgroup

private mixed $fieldgroup = array()

$fieldvalue

private mixed $fieldvalue = array()

$meta

private mixed $meta = array()

$post

private mixed $post = array()

$revision

private mixed $revision = array()

$tag

private mixed $tag = array()

$team

private mixed $team = array()

$types

private mixed $types = array('post', 'category', 'meta', 'tag', 'author', 'revision', 'team', 'fieldgroup', 'field', 'categoryfieldgroup', 'fieldvalue')

Methods

__construct()

public __construct() : mixed

cacheAuthors()

Caches all author items

public cacheAuthors([mixed $authorIds = array() ]) : mixed
Parameters
$authorIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheCategories()

Caches all category items

public cacheCategories([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheCommentCount()

Caches the comment counters

public cacheCommentCount([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheComments()

Caches the comments

public cacheComments([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheFields()

Cache custom fields for posts

public cacheFields([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheMetas()

Cached posts meta

public cacheMetas([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cachePosts()

Caches the post objects

public cachePosts([mixed $items = array() ]) : mixed
Parameters
$items : mixed = array()
Tags
since
5.0
access

public

cacheRatings()

Caches votes created for each posts

public cacheRatings([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheRevisions()

Caches revision items

public cacheRevisions([mixed $revisionIds = array() ]) : mixed
Parameters
$revisionIds : mixed = array()
Tags
since
5.0
access

public

cacheTags()

Caches all tag items

public cacheTags(mixed $postIds) : mixed
Parameters
$postIds : mixed
Tags
since
5.0
access

public

@return

cacheTeams()

Cache teams for posts

public cacheTeams([mixed $teamIds = array() ]) : mixed
Parameters
$teamIds : mixed = array()
Tags
since
5.0
access

public

@return

cacheVoted()

Cached voted items

public cacheVoted([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

exists()

check if the cache for the object type exists or not

public exists(mixed $id[, mixed $type = 'post' ]) : bool
Parameters
$id : mixed
$type : mixed = 'post'
Tags
since
5.0
access

public

type

'post', 'category', 'meta', 'tag', 'author', 'revision'

Return values
bool

fallback()

Retrieves a fallback

public fallback(mixed $id, mixed $type) : mixed
Parameters
$id : mixed
$type : mixed
Tags
since
5.0
access

public

@return

get()

set cache for the object type

public get(mixed $id[, mixed $type = 'post' ]) : object
Parameters
$id : mixed
$type : mixed = 'post'
Tags
since
5.0
access

public

type

'post', 'category', 'meta', 'tag', 'author', 'revision'

Return values
object

getError()

public getError() : mixed

getErrors()

public getErrors() : mixed

hasError()

public hasError() : mixed

hasErrors()

public hasErrors() : mixed

insert()

Initializes the cache for all post items

public insert(mixed $items[, mixed $options = array() ]) : bool
Parameters
$items : mixed
$options : mixed = array()
Tags
since
5.0
access

public

Return values
bool

insertBloggers()

Initializes the cache for all categories

public insertBloggers(mixed $items[, mixed $options = array() ]) : bool
Parameters
$items : mixed
$options : mixed = array()
Tags
since
5.0
access

public

Return values
bool

insertCategories()

Initializes the cache for all categories

public insertCategories(mixed $items[, mixed $options = array() ]) : mixed
Parameters
$items : mixed
$options : mixed = array()
Tags
since
5.0
access

public

insertTeams()

Initializes the cache for all teamblog items

public insertTeams(mixed $items) : bool
Parameters
$items : mixed
Tags
since
5.0
access

public

Return values
bool

isMobile()

Determines if this is a mobile layout

public isMobile() : mixed
Tags
since
5.1
access

public

isTablet()

Determines if this is a tablet layout

public isTablet() : mixed
Tags
since
5.3
access

public

loadLanguage()

Helper method to load language

public loadLanguage([mixed $admin = false ]) : mixed
Parameters
$admin : mixed = false
Tags
since
5.0
access

public

set()

Adds a cache for a specific item type

public set(mixed $item[, mixed $type = 'post' ][, mixed $uid = null ][, mixed $utype = null ]) : bool
Parameters
$item : mixed
$type : mixed = 'post'
$uid : mixed = null
$utype : mixed = null
Tags
since
5.0
access

public

type

'post', 'category', 'meta', 'tag', 'author', 'revision', 'team'

Return values
bool

setError()

public setError(mixed $msg) : mixed
Parameters
$msg : mixed

        
On this page

Search results