Functions


Functions Summary
bool

cot_forums_deletecat(string oldcat, string newcat, mixed cat)

Delete forums category

int

cot_forums_prunetopics(string mode, string section, int param)

Deletes outdated topics

void

cot_forums_resynctopic(int id)

Recounts posts in a given topic

void

cot_forums_sectionsetlast(string cat, string postcount, string topiccount, string viewcount)

Changes last message for the section

int

cot_forums_sync(string cat)

Recounts all counters for a given cat

bool

cot_forums_updatecat(string oldcat, string newcat)

Update forums category

array

cot_generate_sectiontags(string cat, string tag_prefix, array stat)

Returns all section tags for coTemplate

bool

cot_trash_forumpost_sync(array data)

Sync forumpost action

bool

cot_trash_forumtopic_sync(array data)

Sync forumtopic action

Function Detail

modules\forums\inc\forums.functions.php at line 310

cot_forums_deletecat

public bool cot_forums_deletecat(string oldcat, string newcat, mixed cat)
Delete forums category
Parameters:
oldcat - Old Cat code
newcat - New Cat code
Returns:
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 65

cot_forums_prunetopics

public int cot_forums_prunetopics(string mode, string section, int param)
Deletes outdated topics
Parameters:
mode - Selection criteria
section - Section
param - Selection parameter value
Returns:
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 124

cot_forums_resynctopic

public void cot_forums_resynctopic(int id)
Recounts posts in a given topic
Parameters:
id - Topic ID
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 155

cot_forums_sectionsetlast

public void cot_forums_sectionsetlast(string cat, string postcount, string topiccount, string viewcount)
Changes last message for the section
Parameters:
cat - Section cat
postcount - Post count
topiccount - Topic count
viewcount - View count
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 274

cot_forums_sync

public int cot_forums_sync(string cat)
Recounts all counters for a given cat
Parameters:
cat - Cat code
Returns:
topiccount
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 291

cot_forums_updatecat

public bool cot_forums_updatecat(string oldcat, string newcat)
Update forums category
Parameters:
oldcat - Old Cat code
newcat - New Cat code
Returns:
Global:
CotDB $db

modules\forums\inc\forums.functions.php at line 193

cot_generate_sectiontags

public array cot_generate_sectiontags(string cat, string tag_prefix, array stat)
Returns all section tags for coTemplate
Parameters:
cat - Forums structure cat code
tag_prefix - Prefix for tags
stat - Category statistics
Returns:

modules\forums\forums.trashcan.php at line 49

cot_trash_forumpost_sync

public bool cot_trash_forumpost_sync(array data)
Sync forumpost action
Parameters:
data - trashcan item data
Returns:
Global:
CotDB $db

modules\forums\forums.trashcan.php at line 65

cot_trash_forumtopic_sync

public bool cot_trash_forumtopic_sync(array data)
Sync forumtopic action
Parameters:
data - trashcan item data
Returns:
Global:
CotDB $db