|
Stud.IP
2.3 Revision 48548
|
Namespaces | |
| namespace | studip_core |
Functions | |
| forum_kill_edit ($description) | |
| forum_append_edit ($description) | |
| forum_parse_edit ($description, $anonymous) | |
| editarea ($forumposting) | |
| MakeUniqueID () | |
| move_topic ($topic_id, $sem_id, $root, &$verschoben) | |
| move_topic2 ($topic_id, $root, &$verschoben, $thema) | |
| lonely ($topic_id) | |
| suche_kinder ($topic_id) | |
| ForumOpenClose ($forumposting) | |
| ForumNewPosting ($forumposting) | |
| forum_lonely ($forumposting) | |
| ForumGetRoot ($id) | |
| ForumGetParent ($id) | |
| ForumFreshPosting ($id) | |
| ForumFolderOrPosting ($forumposting) | |
| ForumGetWriteStatus ($forumposting) | |
| ForumGetRights ($forumposting) | |
| ForumGetAnonymity ($forumposting) | |
| ForumIcon ($forumposting) | |
| quote ($zitat_id) | |
| ForumGetName ($id) | |
| forum_get_buttons ($forumposting) | |
| forum_get_buttons_authorized ($forumposting) | |
| forum_get_buttons_nobody ($forumposting) | |
| DebugForum ($debugvar) | |
| ForumEmpty () | |
| ForumNoPostings () | |
| forum_print_navi ($forum) | |
| CreateTopic ($name="[no name]", $author="[no author]", $description="", $parent_id="0", $root_id="0", $tmpSessionSeminar=0, $user_id=FALSE, $writeextern=TRUE, $anonymous=false) | |
| CreateNewTopic ($name, $description, $parent_id="0", $root_id="0", $anonymous=false) | |
| UpdateTopic ($name="[no name]", $topic_id, $description, $anonymous) | |
| ForumParseZusatz ($forumhead) | |
| ForumStriche ($forumposting) | |
| forum_print_toolbar ($id="") | |
| forum_get_index ($forumposting) | |
| ForumCheckShrink ($id) | |
| forum_check_edit ($forumposting) | |
| print_rating ($rate, $id, $username) | |
| printposting ($forumposting) | |
| flatview ($open=0, $show=0, $update="", $name="", $description="", $zitat="") | |
| DisplayFolders ($open=0, $update="", $zitat="") | |
| indentPosting (&$forumposting, $level) | |
| DisplayKids ($forumposting, $level=0) | |
| forum_search_field () | |
| forum_move_navi ($topic_id) | |
| forum_count ($parent_id, $seminar_id= '') | |
| CreateNewTopic | ( | $name, | |
| $description, | |||
$parent_id = "0", |
|||
$root_id = "0", |
|||
$anonymous = false |
|||
| ) |
Creates a new posting that is not yet stored in the DB
| string | name of the posting |
| string | description the content of the posting |
| string | parent_id of the posting (optional) |
| string | root_id of the posting (optional) |
| boolean | anonymous posting? |

| CreateTopic | ( | $name = "[no name]", |
|
$author = "[no author]", |
|||
$description = "", |
|||
$parent_id = "0", |
|||
$root_id = "0", |
|||
$tmpSessionSeminar = 0, |
|||
$user_id = FALSE, |
|||
$writeextern = TRUE, |
|||
$anonymous = false |
|||
| ) |
creates a new posting in the DB
| string | name of the posting |
| string | author of the posting (plaintext) |
| string | description the content of the posting |
| string | parent_id of the posting |
| string | root_id of the posting |
| string | tmpSessionSeminar |
| string | user_id of the author |
| boolean | writeextern |
| boolean | anonymous posting? |


| DebugForum | ( | $debugvar | ) |
Debug Code for var-output
| array | debugvar ($forum or $forumposting) |
| DisplayFolders | ( | $open = 0, |
|
$update = "", |
|||
$zitat = "" |
|||
| ) |
Builds the themeview of the board (shows all folders)
| string | open id of the opened posting |
| string | update the id of the posting to be updated |
| string | zitat id of the posting to be quoted |

| DisplayKids | ( | $forumposting, | |
$level = 0 |
|||
| ) |
Amazing engine to build the treeview incl. shrinking
| array | forumpostng contains several data of the curren posting |
| string | level contains the current level of the treeview |


| editarea | ( | $forumposting | ) |
Builds the edit-Area for created postings or postings being re-editet
| array | forumposting contains several data of the actual posting |

| flatview | ( | $open = 0, |
|
$show = 0, |
|||
$update = "", |
|||
$name = "", |
|||
$description = "", |
|||
$zitat = "" |
|||
| ) |
Builds the Flatview of a Board (for last Postings, New Postings, Search, Flatview)
| string | open id of the opened posting |
| string | show ? |
| string | update the id of the posting to be updated |
| string | name ? |
| string | description ? |
| string | zitat id of the posting to be quoted |

| forum_append_edit | ( | $description | ) |
adds the edit-string to a content
| string | description |

| forum_check_edit | ( | $forumposting | ) |
Replaces edit-comment
| array | forumposting contains several data of the actual posting |
| forum_count | ( | $parent_id, | |
$seminar_id = '' |
|||
| ) |
| forum_get_buttons | ( | $forumposting | ) |
builds the button-line for an opened posting
| array | forumposting contains several data of the actual posting |

| forum_get_buttons_authorized | ( | $forumposting | ) |


| forum_get_buttons_nobody | ( | $forumposting | ) |


| forum_get_index | ( | $forumposting | ) |
Builds the Indikator for printhead
| array | forumposting contains several data of the actual posting |

| forum_kill_edit | ( | $description | ) |
deletes the edit-string from content
| string | description |

| forum_lonely | ( | $forumposting | ) |
Ckeck whether a posting has childs or not
| array | forumposting contains several data of the actual posting |
| forum_move_navi | ( | $topic_id | ) |
Builds the HTML for the move-navigation
| string | topic_id the id of the original posting to be moved |

| forum_parse_edit | ( | $description, | |
| $anonymous | |||
| ) |
parses content for output with added edit-string
| string | description |
| boolean | anonymous |


| forum_print_navi | ( | $forum | ) |
builds the navigation element in page-view
| array | forum contains several data of the actual board-site |

| forum_print_toolbar | ( | $id = "" | ) |
Builds the toolbar for indikators an sort-options
| string | id |

| forum_search_field | ( | ) |
Builds the search-fields


| ForumCheckShrink | ( | $id | ) |
Builds a list of posting not to be shrinked
| string | id of the first non-shrink posting |

| ForumEmpty | ( | ) |
builds the output of an empty board


| ForumFolderOrPosting | ( | $forumposting | ) |
Check whether a posting is a folder (theme) or not
| array | forumposting contains several data of the actual posting |
| ForumFreshPosting | ( | $id | ) |
check whether a posting is fresh or not
| string | id of the posting |

| ForumGetAnonymity | ( | $forumposting | ) |
Checks whether a given posting was posted anonymously and overwrites the author if necessary.
| mixed | $forumposting |

| ForumGetName | ( | $id | ) |
Gets the title of a posting
| string | id of the posting |

| ForumGetParent | ( | $id | ) |
Gets the id of the parent-posting
| string | id of the child-posting |

| ForumGetRights | ( | $forumposting | ) |
Check whether user has rights on posting or not
| array | forumposting contains several data of the actual posting |
| ForumGetRoot | ( | $id | ) |
Gets the id of the root-posting (theme)
| string | id of the child-posting |

| ForumGetWriteStatus | ( | $forumposting | ) |
Check of the write-state of a posting
| array | forumposting contains several data of the actual posting |
| ForumIcon | ( | $forumposting | ) |
builds the icon for the printhead of a posting
| array | forumposting contains several data of the actual posting |

| ForumNewPosting | ( | $forumposting | ) |
Ckeck whether a posting is new or old
| array | forumposting contains several data of the actual posting |


| ForumNoPostings | ( | ) |
builds the output of an empty site (empty search for example)


| ForumOpenClose | ( | $forumposting | ) |
Ckeck whether a posting is opened or not
| array | forumposting contains several data of the actual posting |

| ForumParseZusatz | ( | $forumhead | ) |
builds right side of the printhead
| array | forumhead contains several GUI-Elements of the posting |
| ForumStriche | ( | $forumposting | ) |
engine to create the amazing HTML-Lines of child-postings
| array | forumposting contains several data of the actual posting |
| indentPosting | ( | & | $forumposting, |
| $level | |||
| ) |
Hier eine bezaubernde Routine um die Striche exakt wiederzugeben - keine Bange ich verstehe sie auch nicht mehr

| lonely | ( | $topic_id | ) |
Checks whether there can be ditet or not (seeks childs an rights)
| string | topic_id posting to be checked |

| MakeUniqueID | ( | ) |
Builds a unique topic_id in table px_topics

| move_topic | ( | $topic_id, | |
| $sem_id, | |||
| $root, | |||
| & | $verschoben | ||
| ) |
Moves postings into a different lecture
| string | topic_id posting to be moved (inc. childs) |
| string | sem_id id of the target |
| string | root |
| string | verschoben count of moved postings |
| move_topic2 | ( | $topic_id, | |
| $root, | |||
| & | $verschoben, | ||
| $thema | |||
| ) |
Moves postings into a different folder
| string | topic_id posting to be moved (inc. childs) |
| string | root |
| string | verschoben count of moved postings |
| string | thema id of the target |
| print_rating | ( | $rate, | |
| $id, | |||
| $username | |||
| ) |
prints the rating-bar

| printposting | ( | $forumposting | ) |
Checks the state of a posting an prints it with printhead and printcontent
| array | forumposting contains several data of the current posting |

| quote | ( | $zitat_id | ) |
quote engine for a quoted posting
| string | zitat_id id of the posting to be quoted |


| suche_kinder | ( | $topic_id | ) |
builds a string of opened postings, separated by ;
| string | the original posting |

| UpdateTopic | ( | $name = "[no name]", |
|
| $topic_id, | |||
| $description, | |||
| $anonymous | |||
| ) |
Updates an existing posting
| string | name of the posting |
| string | topic_id of the posting |
| string | description of the posting |
| boolean | anonymous |
