bool addTag(
string
$tag, string
$destination, [int
$topicID = false], [string
$title = false], [string
$category = 'default']
)
|
|
adds a tag for a topic to tagcloud
Parameters:
|
string |
$tag: |
Name of the Tag |
|
string |
$destination: |
Define a destination. This could be a full qualified URL, a relative path or filename or just again the topic id. |
|
int |
$topicID: |
ID of the specific topic |
|
string |
$title: |
Define a title. This could be an alternative of retrieving title informations through the topic id |
|
string |
$category: |
Define a category to make handling with tags more efficient |
API Tags:
| Return: | true on success, otherwise false |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.0 |
| Sample: |
$ipbwi->tagCloud->addTag(66,'Another new tag','example.php','examples');
|
bool deleteTag(
int
$tagID
)
|
|
deletes a tag from tagcloud
Parameters:
|
int |
$tagID: |
ID of the tag which should be deleted |
API Tags:
| Return: | true on success, otherwise false |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.0 |
| Sample: |
|
gets array with all categories
API Tags:
| Return: | array with all categories |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.01 |
| Sample: |
|
string getTagData(
string
$tag
)
|
|
gets all data from a tag
Parameters:
|
string |
$tag: |
Name of the tag |
API Tags:
| Return: | Tag Cloud HTML |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.0 |
| Sample: |
|
array getTagList(
int
$topicID
)
|
|
gets array with all tags of a topic.
Parameters:
|
int |
$topicID: |
Get Tags of a specific topic |
API Tags:
| Return: | array with all tags |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.0 |
| Sample: |
|
string view(
[string
$category = false], [string
$link = '?tag=%key%']
)
|
|
Creates a tag cloud
Parameters:
|
string |
$category: |
Set a Category Name, if you want to get a tagcloud from one category only. |
|
string |
$link: |
define a custom link to the tags and insert %key% as var which will be replaced, default: ?tag=%key% |
API Tags:
| Return: | Tag Cloud HTML |
| Access: | public |
Information Tags:
| Author: | Matthias Reuter |
| Since: | 2.0 |
| Sample: |
$ipbwi->tagCloud->view('Category Name','/ipbwi_tagcloud_%key');
|