[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/datahandlers/ -> warnings.php (summary)

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license

File Size: 741 lines (19 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WarningsHandler:: (11 methods):
  validate_user()
  validate_post()
  validate_notes()
  validate_maximum()
  validate_type()
  validate_warning()
  get()
  expire_warnings()
  update_user()
  insert_warning()
  update_warning()


Class: WarningsHandler  - X-Ref

Login handling class, provides common structure to handle login events.
validate_user()   X-Ref
Validate a warning user assets.
return: boolean True when valid, false when invalid.

validate_post()   X-Ref
Validate a warning post.
return: boolean True when valid, false when invalid.

validate_notes()   X-Ref
Validate a warning notes.
return: boolean True when valid, false when invalid.

validate_maximum()   X-Ref
Validate maximum warnings per day for current user.
return: boolean True when valid, false when invalid.

validate_type()   X-Ref
Validate warnings type.
return: boolean True when valid, false when invalid.

validate_warning()   X-Ref
Validate a warning.
return: boolean True when valid, false when invalid.

get($wid)   X-Ref
Gets a valid warning from the DB engine.
return: array|bool array when valid, boolean false when invalid.
param: int $wid

expire_warnings()   X-Ref
Expire old warnings in the database.
return: boolean True when finished.

update_user($method='insert')   X-Ref
Updates an user warning details.
return: array Updated user details.

insert_warning()   X-Ref
Inserts a warning into the database
return: array Warning database details.

update_warning()   X-Ref
Updates a warning in the database
return: array Warning database details.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref