-
Notifications
You must be signed in to change notification settings - Fork 0
class Comment
www/includes/forum.inc.php
In dieser Klasse befinden sich alle Funktionen zum Commenting-System
zorg\Forum
- [z]biko
1.0
No public properties found
No constants found
compile_template() | formatPost() | getBoardlink() | getChildPostsFormFields() | getHTMLadditional() deprecated
| getLink() | getLinkComment() | getLinkThread() | getNumChildposts() | getParentid() | getRecordset() | getSummary() | getThreadid() | getTitle() | highliteKeyword() | isThread() | markasread() | markasunread() | post() | update() |
Kompiliert ein Comment als Smarty-Template Resource
- Inherited from \Comment
public
compile_template(int $thread_id, int $comment_id, string $board = 'f') : bool
static
See also
- author: [z]biko
-
version:
2.0
-
since:
1.0
method added -
since:
2.0
05.11.2018
method ehnaced with code & query optimizations - global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $smarty Globales Class-Object mit allen Smarty-Methoden
Macht Textformatierungen fürs Forum
- Inherited from \Comment
public
formatPost(string $text) : string
static
- author: [z]biko
-
version:
1.0
-
since:
1.0
method added - global: object $user Globales Class-Object mit den User-Methoden & Variablen
Get link for a Board
- Inherited from \Comment
public
getBoardlink(string $board) : object
static
- author: [z]biko
-
version:
1.0
-
since:
1.0
method added
- Inherited from \Comment
public
getChildPostsFormFields(mixed $id, mixed $parent_id, mixed $comment_id, mixed $depth) : mixed
static
HTML der "Additional Posts" Teile
- Inherited from \Comment
public
getHTMLadditional(object $rs, array $himages) : string
deprecated
see smartyresource_comments_get_childposts()??? (26.10.2018)static
- author: [z]biko
-
version:
1.0
-
since:
1.0
method added
Link to a Comment
- Inherited from \Comment
public
getLink(string $board, int $parent_id, int $comment_id, int $thread_id) : string
static
See also
- author: [z]biko
- author: IneX
-
version:
2.0
-
since:
1.0
method added -
since:
2.0
26.10.2018
added $addUrlParameters to make Link work with routes (e.g. /thread/23/?parent_id=5 vs. /gallery.php?show=pic&picID=23)
Get link for a Comment
- Inherited from \Comment
public
getLinkComment(int $comment_id) : string
static
- author: [z]biko
-
version:
1.0
-
since:
1.0
method added
Link to a Thread
- Inherited from \Comment
public
getLinkThread(mixed $board, mixed $thread_id, string $output_html = true) : string
static
- author: [z]biko
- author: IneX
-
version:
2.0
-
since:
1.0
method added -
since:
2.0
26.10.2018
added $output_html-Parameter & return only for Thread-URL
Anzahl Kinder-Objekte zu beliebigem Post ermitteln
- Inherited from \Comment
public
getNumChildposts(string $board, int $comment_id) : int
static
- author: [z]biko
-
version:
1.0
-
since:
1.0
method added - FIXME: switch Reihenfolge der params (so wie sonst auch überall): $board <--> $comment_id
- global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
Get a Comment's Parent-Comment-ID
- Inherited from \Comment
public
getParentid(int $comment_id, int $height = null) : int
static
- author: [z]biko
-
version:
2.0
-
since:
1.0
method added -
since:
2.0
27.11.2018
Fixed passing any $height integer to this method caused an eternal loop
Fetches a Post and returns its Recordset
- Inherited from \Comment
public
getRecordset(int $id) : \arr|bool
static
- author: [z]biko
-
version:
2.0
-
since:
1.0
method added -
since:
2.0
06.11.2018
added parameter validation - global: object $db Globales Class-Object mit allen MySQL-Methoden
Schnipsel/Auszug eines Kommentars holen.
- Inherited from \Comment
public
getSummary(string $text, int $length = 20) : string
static
Uses \remove_html() \text_width() \t()
-
version:
1.1
-
since:
1.0
19.08.2019
IneX
method added -
since:
1.1
15.01.2019
IneX
enhanced to also remove Smarty curly brackets { and }
Holt den Thread-Id eines Posts oder Threads.
WICHTIG! UNBEDINGT SO LASSEN!
- Inherited from \Comment
public
getThreadid(mixed $board, int $id) : int
static
Den Titel eines Kommentars holen.
- Inherited from \Comment
public
getTitle(string $text, int $length = 20, string $if_empty_use_this = null) : string
static
Uses \remove_html() \text_width()
- author: [z]biko
- author: IneX
-
version:
2.1
-
since:
1.0
[z]biko
method added -
since:
2.0
24.09.2018
IneX
method uses now text_width() util-function -
since:
2.1
15.01.2019
IneX
enhanced to also remove Smarty curly brackets { and }
- Inherited from \Comment
public
highliteKeyword(mixed $keyword, mixed $text) : mixed
static
Prüft ob der Comment ein Thread ist
Prüft, ob der Comment im therads-table eingetragen ist (= thread start)
- Inherited from \Comment
public
isThread(string $board, int $id) : bool
static
- author: IneX
- date: 16.03.2008
Mark Comment as 'read'
- Inherited from \Comment
public
markasread(mixed $comment_id, mixed $user_id) : mixed
static
- Inherited from \Comment
public
markasunread(mixed $comment_id) : mixed
static
Post Comment to Board
- Inherited from \Comment
public
post(mixed $parent_id, mixed $board, mixed $user_id, mixed $text, mixed $msg_users = NULL) : mixed
static
-
version:
3.2
-
since:
1.0
[z]biko
method added -
since:
2.0
IneX
added Activities -
since:
3.0
IneX
various code optimizations, new notification class used -
since:
3.1
IneX
minor code optimizations, changed Forum Activity-Notification only if new Forum-Thread -
since:
3.2
27.09.2019
IneX
changed INSERT to use $db->insert() - global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $notification Globales Class-Object mit allen Notification-Methoden
Comment update
Update contents of an existing Comment (e.g. via Comment Edit Form)
- Inherited from \Comment
public
update(int $comment_id, array $comment_data_updated) : mixed
static
See also
- author: IneX
-
version:
2.0
-
since:
1.0
26.11.2018
method moved to Comment-Class from /actions/comment_edit.php -
since:
2.0
27.11.2018
updated to use new $notifcation Class & some code and query optimizations - global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $notification Globales Class-Object mit allen Notification-Methoden
\ » Classes » Comment
Documentation generated on April 26th, 2020 at 15:54.
Powered by phpDocumentor with template GitHub-wiki.