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
cacheCategories()
Caches all category items
public
cacheCategories([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cacheCommentCount()
Caches the comment counters
public
cacheCommentCount([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cacheComments()
Caches the comments
public
cacheComments([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cacheFields()
Cache custom fields for posts
public
cacheFields([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cacheMetas()
Cached posts meta
public
cacheMetas([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cachePosts()
Caches the post objects
public
cachePosts([mixed $items = array() ]) : mixed
Parameters
- $items : mixed = array()
Tags
cacheRatings()
Caches votes created for each posts
public
cacheRatings([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
cacheRevisions()
Caches revision items
public
cacheRevisions([mixed $revisionIds = array() ]) : mixed
Parameters
- $revisionIds : mixed = array()
Tags
cacheTags()
Caches all tag items
public
cacheTags(mixed $postIds) : mixed
Parameters
- $postIds : mixed
Tags
cacheTeams()
Cache teams for posts
public
cacheTeams([mixed $teamIds = array() ]) : mixed
Parameters
- $teamIds : mixed = array()
Tags
cacheVoted()
Cached voted items
public
cacheVoted([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
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
Return values
boolfallback()
Retrieves a fallback
public
fallback(mixed $id, mixed $type) : mixed
Parameters
- $id : mixed
- $type : mixed
Tags
get()
set cache for the object type
public
get(mixed $id[, mixed $type = 'post' ]) : object
Parameters
- $id : mixed
- $type : mixed = 'post'
Tags
Return values
objectgetError()
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
Return values
boolinsertBloggers()
Initializes the cache for all categories
public
insertBloggers(mixed $items[, mixed $options = array() ]) : bool
Parameters
- $items : mixed
- $options : mixed = array()
Tags
Return values
boolinsertCategories()
Initializes the cache for all categories
public
insertCategories(mixed $items[, mixed $options = array() ]) : mixed
Parameters
- $items : mixed
- $options : mixed = array()
Tags
insertTeams()
Initializes the cache for all teamblog items
public
insertTeams(mixed $items) : bool
Parameters
- $items : mixed
Tags
Return values
boolisMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
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
Return values
boolsetError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed