boolean add(
Blog
&$Blog
)
|
|
Add object to cache, handling our own indices.
Parameters:
API Tags:
| Return: | True on add, false if already existing. |
Redefinition of:
- DataObjectCache::add()
- Add a dataobject to the cache
Blog &get_by_url(
string
$req_url, [boolean
$halt_on_error = true]
)
|
|
Get an object from cache by its url ("siteurl")
Load the cache if necessary
This gets used in /index_multi.php to detect blogs according to the requested HostWithPath
Parameters:
|
string |
$req_url: |
URL of blog to load (should be the whole requested URL/path, e.g. "http://mr.example.com/permalink") |
|
boolean |
$halt_on_error: |
false if you want to return false on error |
API Tags:
| Return: | A Blog object on success, false on failure (may also halt!) |
Information Tags:
| Todo: | fp> de-factorize. cleanup. make efficient. split access types. |
Blog|false &get_by_urlname(
string
$req_urlname, [boolean
$halt_on_error = true]
)
|
|
Get a blog from cache by its URL name.
Load the object into cache, if necessary.
Parameters:
|
string |
$req_urlname: |
URL name of object to load |
|
boolean |
$halt_on_error: |
false if you want to return false on error |
API Tags:
| Return: | A Blog object on success, false on failure (may also halt!) |
void get_option_list(
[integer
$default = 0], [boolean
$allow_none = false], [
$method = 'get_name']
)
|
|
Returns form option list with cache contents
Loads the whole cache!
Parameters:
|
integer |
$default: |
selected ID |
|
boolean |
$allow_none: |
provide a choice for "none" with ID 0 |
|
|
$method: |
|
Redefinition of:
- DataObjectCache::get_option_list()
- Returns form option list with cache contents
array load_owner_blogs(
integer
$owner_ID, [string
$order_by = 'ID']
)
|
|
Load a list of blogs owner by specific ID into the cache
Parameters:
|
integer |
$owner_ID: |
|
|
string |
$order_by: |
|
API Tags:
array load_public(
[string
$order_by = 'ID']
)
|
|
Load a list of public blogs into the cache
Parameters:
API Tags:
array load_user_blogs(
[string
$permname = 'blog_ismember'], [string
$permlevel = 'view'], [integer
$user_ID = NULL], [
$order_by = 'ID'], [
$limit = NULL]
)
|
|
Load blogs a user has permissions for.
Parameters:
|
string |
$permname: |
permission: 'member' (default), 'browse' (files) |
|
string |
$permlevel: |
|
|
integer |
$user_ID: |
user ID |
|
|
$order_by: |
|
|
|
$limit: |
|
API Tags: