Метод |
Описание |
|
__construct ( integer $user_id ) |
|
|
addMenu ( ) |
WP Hook, Instantiate UI |
|
delete ( boolean $for_real = false ) : integer | false |
Delete an entire catalog. |
|
deleteBook ( integer $blog_id, boolean $for_real = false ) : integer | false |
Delete a book from a user catalog. |
|
deleteCache ( ) |
Delete the cache(s) |
|
deleteCacheByBookId ( integer $book_id ) |
Delete the cache(s) by Book ID |
|
deleteLogo ( ) |
WP_Ajax hook for pb_delete_catalog_logo |
|
deleteTag ( string $tag, integer $blog_id, integer $tag_group, boolean $for_real = false ) : integer | false |
Delete a tag. |
|
deleteTags ( $blog_id, $tag_group ) : integer | false |
Delete all tags from a user catalog |
|
formAddByUrl ( ) |
Add Book by URL |
|
formSubmit ( ) |
Catch me |
|
get ( ) : array |
Get an entire catalog. |
|
getAggregate ( ) : array |
Get all data for an entire catalog, cached |
|
getBook ( integer $blog_id ) : array |
Get a book from a user catalog. |
|
getBookIds ( ) : array |
Get only blog IDs. |
|
getByTagId ( integer $tag_group, integer $tag_id ) : array |
Get catalog by tag id |
|
getProfile ( ) : array |
Get catalog profile. |
|
getTags ( integer $tag_group, boolean $show_hidden_tags = true ) : array |
Get tags |
|
getTagsByBook ( integer $blog_id, integer $tag_group ) : array |
Get all tags for a book |
|
getUserId ( ) : integer |
Get User ID |
|
isCurrentAction ( $action ) : boolean |
Two actions are possible in a generic WP_List_Table form. The first takes precedence. |
|
isFormSubmission ( ) : boolean |
Check if a user submitted something to index.php?page=pb_catalog |
|
loadTemplate ( integer $userId ) |
Find and load our catalog template. |
|
purgeOrphanTags ( ) |
Find all IDs in dbTagsTable that have no matching ID in dbLinkTable and delete them. |
|
save ( array $items ) |
Save an entire catalog. |
|
saveBook ( $blog_id, array $item ) : integer | false |
Save a book to a user catalog. |
|
saveProfile ( array $item ) |
Save catalog profile |
|
saveTag ( string $tag, integer $blog_id, integer $tag_group ) : integer | false |
Save tag |
|
stringToTags ( string $tags ) : array |
Return an array of tags from a comma delimited string |
|
tagsToString ( array $tags ) : string |
Return a comma delimited string from an SQL array of tags, in alphabetical order. |
|
thumbnailFromUserId ( integer $user_id, string $size ) : string |
Catalog image is stored in user's active Media Library. |
|
upgrade ( integer $version ) |
Upgrade catalog. |
|
uploadLogo ( string $meta_key ) |
|
|