boolean add_tags(
string
$item, mixed
$tags
)
|
|
Add tags into an item
Parameters:
|
string |
$item: |
|
|
mixed |
$tags: |
string or array of tag(s) |
API Tags:
void display_items(
$tag, array
$items
)
|
|
Display items having a tag
Overwrite Me!
Parameters:
API Tags:
void display_tagcloud(
[int
$limit = null], [string
$relate_tag = null]
)
|
|
Display tagcloud
Overwrite Me!
Parameters:
|
int |
$limit: |
number of tags to be shown |
|
string |
$relate_tag: |
show only related tags to this |
Redefined in descendants as:
void display_tags(
string
$item
)
|
|
Display tags of an item
Overwrite Me!
Parameters:
API Tags:
Redefined in descendants as:
array get_existtags(
[boolean
$cache = true]
)
|
|
Get all existing tags in the sytem
Syntax Sugar for get_tags_in_system
Parameters:
|
boolean |
$cache: |
use memory cache |
API Tags:
array get_items(
string
$tag, [boolean
$cache = true]
)
|
|
Get items by a tag
Parameters:
|
string |
$tag: |
|
|
boolean |
$cache: |
use memory cache |
API Tags:
array get_items_by_tagtok(
string
$tagtok
)
|
|
Get items by a tag token
TagA^TagB => intersection TagA-TagB => subtraction
Parameters:
API Tags:
string get_items_filename(
string
$tag
)
|
|
Get filename which stores items by a tag
Overwrite Me! to define the filename
Parameters:
API Tags:
Redefined in descendants as:
array get_items_filenames(
)
|
|
Get all items_filename
Overwrite Me! if you changed get_items_filename
API Tags:
Redefined in descendants as:
array get_items_from_storage(
string
$tag, [string
$filename = null]
)
|
|
Get items by a tag from a storage (file or db)
Overwrite Me if you don't like the file format
Parameters:
|
string |
$tag: |
|
|
string |
$filename: |
|
API Tags:
array get_related_tags(
[string
$tag = null]
)
|
|
Get related tags
Parameters:
API Tags:
array get_tagcloud(
[integer
$limit = null], [string
$relate_tag = null], [boolean
$cache = true]
)
|
|
Get tagcloud
Parameters:
|
integer |
$limit: |
|
|
string |
$relate_tag: |
|
|
boolean |
$cache: |
use memory cache |
API Tags:
string get_tagcloud_filename(
)
|
|
Get filename which stores tagcloud
Overwrite Me! to define the filename
API Tags:
Redefined in descendants as:
array get_tagcloud_from_storage(
)
|
|
Get tagcloud from a storage (file or db)
Overwrite Me if you don't like the file format
API Tags:
array get_tags(
string
$item, [boolean
$cache = true]
)
|
|
Get tags of an item
Parameters:
|
string |
$item: |
|
|
boolean |
$cache: |
use memory cache |
API Tags:
string get_tags_filename(
string
$item
)
|
|
Get filename which stores tags of an item
Overwrite Me! to define the filename
Parameters:
API Tags:
Redefined in descendants as:
array get_tags_filenames(
)
|
|
Get all tags_filename
Overwrite Me! if you changed get_tags_filename
API Tags:
Redefined in descendants as:
array get_tags_from_storage(
string
$item, [string
$filename = null]
)
|
|
Get tags of an item from a storage (file or db)
Overwrite Me if you don't like the file format
Parameters:
|
string |
$item: |
|
|
string |
$filename: |
|
API Tags:
array get_tags_in_system(
[boolean
$cache = true]
)
|
|
Get all existing tags in the system
Parameters:
|
boolean |
$cache: |
use memory cache |
API Tags:
boolean has_tag(
$item, string
$tag
)
|
|
Check if a tag exists in a certain item
Parameters:
API Tags:
boolean has_tag_in_system(
string
$tag
)
|
|
Check if a tag exists in the system
Parameters:
API Tags:
string normalize_tags(
string
$tags
)
|
|
Normalize tags
Parameters:
|
string |
$tags: |
or array $tags |
API Tags:
boolean remove_tags(
string
$item, mixed
$tags
)
|
|
Remove tags from an item
Parameters:
|
string |
$item: |
|
|
mixed |
$tags: |
string or array of tag(s) |
API Tags:
boolean remove_tags_in_system(
mixed
$tags
)
|
|
Remove tags from the system (in all items)
Parameters:
|
mixed |
$tags: |
string or array of tag(s) |
API Tags:
boolean rename_item(
string
$old_item, string
$new_item
)
|
|
Rename an item
Parameters:
|
string |
$old_item: |
|
|
string |
$new_item: |
|
API Tags:
boolean rename_tag(
string
$old_tag, string
$new_tag
)
|
|
Rename a tag
Parameters:
|
string |
$old_tag: |
|
|
string |
$new_tag: |
|
API Tags:
boolean save_tags(
string
$item,
$new_tags, mixed
$tags
)
|
|
Save tags into an item (This does more than set_tags)
Parameters:
|
string |
$item: |
|
|
mixed |
$tags: |
string or array of tag(s) |
|
|
$new_tags: |
|
API Tags:
boolean set_items(
string
$tag, array
$items, [boolean
$storage = true]
)
|
|
Set items into a tag
Parameters:
|
string |
$tag: |
|
|
array |
$items: |
|
|
boolean |
$storage: |
write to storage |
API Tags:
boolean set_items_into_storage(
string
$tag, array
$items, [string
$filename = null]
)
|
|
Set items into a tag, and store into a storage (file or db)
Overwrite Me if you don't like the file format
Parameters:
|
string |
$tag: |
|
|
array |
$items: |
|
|
string |
$filename: |
|
API Tags:
boolean set_tagcloud_into_storage(
array
$tagcloud, [string
$filename = null]
)
|
|
Store tagcloud into a storage (file or db)
Overwrite Me if you don't like the file format
Parameters:
|
array |
$tagcloud: |
|
|
string |
$filename: |
filename |
API Tags:
boolean set_tags(
string
$item, array
$tags, [boolean
$storage = true]
)
|
|
Set tags into an item
Parameters:
|
string |
$item: |
|
|
array |
$tags: |
|
|
boolean |
$storage: |
write to storage |
API Tags:
boolean set_tags_into_storage(
string
$item, array
$tags, [string
$filename = null]
)
|
|
Set tags into an item, and store into a storage (file or db)
Overwrite Me if you don't like the file format
Parameters:
|
string |
$item: |
|
|
array |
$tags: |
|
|
string |
$filename: |
|
API Tags:
boolean tag_exists(
string
$tag
)
|
|
Check if a tag exists in the system
Syntax Sugar for has_tag_in_system
Parameters:
API Tags:
boolean update_tagcloud(
[boolean
$cache = true]
)
|
|
Update tagcloud
Excute after set_tags and set_items
Parameters:
|
boolean |
$cache: |
use memory cache |
API Tags: