ItemTypeCache ItemTypeCache(
table
0
)
|
|
Constructor
Parameters:
void get_col_default_type_ID(
integer
$col_ID
)
|
|
Return the default item type ID for a given collection
fp> will be used in b2evo 2.0
Parameters:
|
integer |
$col_ID: |
collection ID |
string get_option_list_by_col_ID(
integer
$default, integer
$col_ID
)
|
|
Returns form option list with cache contents restricted to a collection
Load the item types collection cache if necessary
fp> will be used in b2evo 2.0
Parameters:
|
integer |
$default: |
selected ID |
|
integer |
$col_ID: |
collection ID |
string get_option_list_usable_only(
[integer
$default = 0], [boolean
$allow_none = false], [string
$method = 'get_name']
)
|
|
Returns a form option list which only contains post types that can be used by the current user (and in the current blog's context).
The user cannot use any post type IDs listed in the {@see $posttypes_reserved_IDs} array; to use the "Page", "Intro-*", "Podcast" and "Sidebar link" post types, the current blog must grant the blog_page, blog_intro, blog_podcast and blog_sidebar permission, respectively (see blog user/group permissions).
Parameters:
|
integer |
$default: |
The selected ID. |
|
boolean |
$allow_none: |
Provide a choice for "none" with ID '' |
|
string |
$method: |
Callback method name. |
Load a list of item types for a given collection and store them into the collection cache
Note: object will also get stored into the global cache.
Parameters: