class CKunenaTools


Located at : UKNOWVA_ROOT/components/com_kunena/class.kunena.php

Properties

$id

Methods

checkDatabaseError()

No description

showButton($name, $text)

No description

showIcon($name, $title = '')

No description

showModulePosition($position)

No description

parseText($txt)

No description

parseBBCode($txt)

No description

stripBBCode($txt, $len)

No description

reCountUserPosts()

No description

reCountBoardsRecursion($array, $current)

No description

reCountBoards()

No description

updateNameInfo()

No description

modifyCategoryStats($msg_id, $msg_parent, $msg_time, $msg_cat)

No description

decreaseCategoryStats($msg_id, $msg_cat)

No description

markTopicRead($thread, $userid)

No description

forumSelectList($name, $catid, $options = array(), $attr = '', $sections = false)

No description

KSelectList($name, $options = array(), $attr = '', $sections = false, $id = '', $selected)

No description

showBulkActionCats($disabled = 1)

No description

getTemplateImage($image)

No description

topicIcon($topic)

No description

isAdmin($uid = null)

No description

isModerator($uid = null, $catid)

No description

getEMailToList($catid, $thread, $subscriptions = false, $moderators = false, $admins = false, $excludeList = null)

No description

getAllowedForums($uid)

No description

KDeletePosts()

No description

KMovePosts($catid)

No description

KDeletePerm()

No description

KUndelete()

No description

formatLargeNumber(int $number, int $precision = 4)

This function formats a number to n significant digits when above 10,000. Starting at 10,0000 the out put changes to 10k, starting at 1,000,000 the output switches to 1m. Both k and m are defined in the language file. The significant digits are used to limit the number of digits displayed when in 10k or 1m mode.

shortenFileName($filename, $front = 10, $back = 8, $filler = '...')

This function shortens long filenames for display purposes.

displayMenu()

No description

displayLoginBox()

No description

loadTemplate(string $relpath, bool $once = false, string $template = null)

This function loads the appropriate template file It checks if the selected template contains an override and if so loads it. Fall back is the default template implementation

editTimeCheck(timestamp $messagemodifiedtime, timestamp $messagetime)

This function check the edit time for the author of the author of the post and return if the user is allwoed or not to edit her post

getRulesHelpDatas($id)

This function load datas for rules or help page

addStyleSheet($filename, $rtl = false)

Wrapper to addStyleSheet

addScript($filename)

Wrapper to addScript

Details

at line 153
checkDatabaseError()

at line 158
showButton($name, $text)

Parameters

$name
$text

at line 162
showIcon($name, $title = '')

Parameters

$name
$title

at line 166
showModulePosition($position)

Parameters

$position

at line 180
parseText($txt)

Parameters

$txt

at line 187
parseBBCode($txt)

Parameters

$txt

at line 194
stripBBCode($txt, $len)

Parameters

$txt
$len

at line 200
reCountUserPosts()

at line 220
reCountBoardsRecursion($array, $current)

Parameters

$array
$current

at line 236
reCountBoards()

at line 284
updateNameInfo()

at line 300
modifyCategoryStats($msg_id, $msg_parent, $msg_time, $msg_cat)

Parameters

$msg_id
$msg_parent
$msg_time
$msg_cat

at line 339
decreaseCategoryStats($msg_id, $msg_cat)

Parameters

$msg_id
$msg_cat

at line 395
markTopicRead($thread, $userid)

Parameters

$thread
$userid

at line 419
forumSelectList($name, $catid, $options = array(), $attr = '', $sections = false)

Parameters

$name
$catid
$options
$attr
$sections

at line 433
KSelectList($name, $options = array(), $attr = '', $sections = false, $id = '', $selected)

Parameters

$name
$options
$attr
$sections
$id
$selected

at line 450
showBulkActionCats($disabled = 1)

Parameters

$disabled

at line 462
getTemplateImage($image)

Parameters

$image

at line 468
topicIcon($topic)

Parameters

$topic

at line 473
isAdmin($uid = null)

Parameters

$uid

at line 478
isModerator($uid = null, $catid)

Parameters

$uid
$catid

at line 483
getEMailToList($catid, $thread, $subscriptions = false, $moderators = false, $admins = false, $excludeList = null)

Parameters

$catid
$thread
$subscriptions
$moderators
$admins
$excludeList

at line 488
getAllowedForums($uid)

Parameters

$uid

at line 493
KDeletePosts()

at line 524
KMovePosts($catid)

Parameters

$catid

at line 556
KDeletePerm()

at line 594
KUndelete()

at line 649
formatLargeNumber(int $number, int $precision = 4)

This function formats a number to n significant digits when above 10,000. Starting at 10,0000 the out put changes to 10k, starting at 1,000,000 the output switches to 1m. Both k and m are defined in the language file. The significant digits are used to limit the number of digits displayed when in 10k or 1m mode.

Parameters

int $number Number to be formated
int $precision Significant digits for output

at line 675
shortenFileName($filename, $front = 10, $back = 8, $filler = '...')

This function shortens long filenames for display purposes.

The first 8 characters of the filename, followed by three dots and the last 5 character of the filename.

Parameters

$filename
$front
$back
$filler

at line 685
displayMenu()

at line 721
displayLoginBox()

at line 742
loadTemplate(string $relpath, bool $once = false, string $template = null)

This function loads the appropriate template file It checks if the selected template contains an override and if so loads it. Fall back is the default template implementation

Parameters

string $relpath Relative path to template file
bool $once limit to single include default false
string $template Custom path to template (relative to Joomla)

at line 771
editTimeCheck(timestamp $messagemodifiedtime, timestamp $messagetime)

This function check the edit time for the author of the author of the post and return if the user is allwoed or not to edit her post

Parameters

timestamp $messagemodifiedtime Time when the message has been edited
timestamp $messagetime Actual message time

at line 792
getRulesHelpDatas($id)

This function load datas for rules or help page

Parameters

$id

at line 807
addStyleSheet($filename, $rtl = false)

Wrapper to addStyleSheet

Parameters

$filename
$rtl

at line 828
addScript($filename)

Wrapper to addScript

Parameters

$filename