-
Notifications
You must be signed in to change notification settings - Fork 0
class Activities
www/includes/activities.inc.php
In dieser Klasse befinden sich alle Funktionen zur Steuerung der Activities
zorg\Activities
- IneX
- 13.09.2009
3.0
-
1.0
13.09.2009
initial release -
2.0
18.08.2012
added RSS-Feed for Activities -
3.0
16.05.2018
added Twitter-Notifications for new Activities
No public properties found
No constants found
addActivity() | checkAllowActivities() | countActivities() | getActivities() | getActivitiesDaily() | getActivitiesRSS() | getActivityOwner() | hasRated() | notify() | rate() | remove() | unrate() | update() |
Activity hinzufügen
- Inherited from \Activities
public
addActivity(int $fromUser, int $forUser, string $activity, string $activityArea = NULL, mixed $values = NULL) : bool
static
Uses \Activities::checkAllowActivities() Telegram::send::message()
- author: IneX
- date: 13.09.2009
-
version:
4.0
-
since:
1.0
13.09.2009
initial release -
since:
2.0
16.05.2018
added Telegram Notification for new Activities -
since:
2.1
16.05.2018
Changed to new Telegram Notification-Method -
since:
3.0
02.09.2018
Added exception handling & boolean return, changed Activities to support Placeholders from strings.array.php -
since:
4.0
30.10.2018
Enabled self::checkAllowActivities() for User-ID, if "activities_allowed" is set to "ON" - global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $telegram Globales Class-Object mit den Telegram-Methoden
Activity darf geloggt werden
Prüft ob der User in seinem Profil das loggen von Activities deaktiviert hat Wichtig: prüft auf passable $user_id, weil Activities nicht immer per se für den aktiven / auslösenden User sind! Deshalb nicht $user->id verwendet.
- Inherited from \Activities
public
checkAllowActivities(int $user_id) : bool
static
- author: IneX
- date: 13.09.2009
-
version:
2.0
-
since:
1.0
13.09.2009
initial release -
since:
2.0
30.10.2018
method updated - global: object $db Globales Class-Object mit allen MySQL-Methoden
Activities zählen
- Inherited from \Activities
public
countActivities(int $user_id) : int
static
- author: IneX
- date: 13.09.2009
-
version:
1.0
-
since:
1.0
initial release - global: object $db Globales Class-Object mit allen MySQL-Methoden
Activities Log
- Inherited from \Activities
public
getActivities(int $owner, int $start, int $limit = 23, \date $date = '') : array|bool
static
- author: IneX
- date: 13.09.2009
-
version:
2.1
-
since:
1.0
13.09.2009
initial release -
since:
2.0
04.09.2018
Added exception handling & boolean return, added support for Activity-Placeholders from strings.array.php -
since:
2.1
05.12.2018
fixed wrong usage of t() causing a lot of log errors and broken activity-stream - TODO: Activity-Area wurde entfernt... ev. doch nötig?
- global: object $db Globales Class-Object mit allen MySQL-Methoden
Daily Activities Summary Gibt alle Activities eines Tages zusammengefasst aus
- Inherited from \Activities
public
getActivitiesDaily(\date $date, int $num = 5, string $format = 'html') : string
static
- author: IneX
- date: 26.05.2018
-
version:
1.0
-
since:
1.0
initial release - FIXME: Not yet implemented, finish method
- global: object $db Globales Class-Object mit allen MySQL-Methoden
Activities als RSS ausgeben (kann mit RSS Readern abonniert werden)
- Inherited from \Activities
public
getActivitiesRSS(int $num) : string
static
- author: IneX
- date: 18.08.2012
-
version:
1.0
-
since:
1.0
18.08.2012
initial release - global: object $db Globales Class-Object mit allen MySQL-Methoden
Activity Owner (Gibt die User ID des Activity Owners zurück)
- Inherited from \Activities
public
getActivityOwner(int $activity_id) : int
static
- author: IneX
- date: 13.09.2009
-
version:
1.0
-
since:
1.0
initial release - global: object $db Globales Class-Object mit allen MySQL-Methoden
Activity durch User bereits bewertet
- Inherited from \Activities
public
hasRated(int $activity_id, int $user_id) : mixed
static
- author: IneX
- date: 13.09.2009
-
version:
1.0
-
since:
1.0
initial release - global: object $db Globales Class-Object mit allen MySQL-Methoden
Activity notifications Triggers Telegram-Messenger updates for an Activity
- Inherited from \Activities
public
notify(int $fromUser, int $forUser, string $activity, string $activityArea = NULL, mixed $values = NULL) : bool
static
See also
- author: IneX
- date: 18.09.2018
-
version:
1.0
-
since:
1.0
13.09.2009
method added - global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $telegram Globales Class-Object mit den Telegram-Methoden
Activity bewerten
- Inherited from \Activities
public
rate(int $activity_id, string $rating) : mixed
static
- author: IneX
- date: 13.09.2009
-
version:
1.0
-
since:
1.0
initial release - FIXME: Modifier addslahes() für $rating könnte zu Problemen führen wegen der 20 Zeichen Begrenzung!
- FIXME: Eventuell muss noch ein header("Location: URL") hinzugefügt werden, weil man sonst im Leeren landet?
- TODO: Kein Rating von 1-5, sondern nur ein Like / Disklike machen
- global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
Activity entfernen
- Inherited from \Activities
public
remove(int $activity_id) : bool
static
See also
- \Activities::getActivityOwner()
- AJAX-Action in delete-activity
- author: IneX
- date: 24.07.2018
-
version:
2.0
-
since:
1.0
13.09.2009
initial release -
since:
2.0
24.07.2018
minor update to work with AJAX-Request - global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $db Globales Class-Object mit allen MySQL-Methoden
Activity Bewertung entfernen
- Inherited from \Activities
public
unrate(int $activity_id) : mixed
static
- author: IneX
- date: 13.09.2009
-
version:
1.0
-
since:
1.0
initial release - TODO: Eventuell muss noch ein header("Location: URL") hinzugefügt werden, weil man sonst im Leeren landet?
- global: object $db Globales Class-Object mit allen MySQL-Methoden
- global: object $user Globales Class-Object mit den User-Methoden & Variablen
Activity aktualisieren
- Inherited from \Activities
public
update(int $activity_id, array $newValues) : bool
static
- author: IneX
- date: 16.05.2018
-
version:
2.0
-
since:
1.0
16.05.2018
initial release -
since:
2.0
04.09.2018
enhanced method to work with updating new values - global: object $user Globales Class-Object mit den User-Methoden & Variablen
- global: object $db Globales Class-Object mit allen MySQL-Methoden
\ » Classes » Activities
Documentation generated on April 26th, 2020 at 15:54.
Powered by phpDocumentor with template GitHub-wiki.