[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

/inc/ -> datahandler.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: 217 lines (4 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DataHandler:: (8 methods):
  __construct()
  set_data()
  set_error()
  get_errors()
  get_friendly_errors()
  set_validated()
  get_validated()
  verify_yesno_option()


Class: DataHandler  - X-Ref

Base data handler class.
__construct($method="insert")   X-Ref
Constructor for the data handler.
param: string $method The method we're performing with this object.

set_data($data)   X-Ref
Sets the data to be used for the data handler
return: bool
param: array $data The data.

set_error($error, $data='')   X-Ref
Add an error to the error array.
param: string $error The error name.
param: string $data

get_errors()   X-Ref
Returns the error(s) that occurred when handling data.
return: array An array of errors.

get_friendly_errors()   X-Ref
Returns the error(s) that occurred when handling data
in a format that MyBB can handle.

return: array An array of errors in a MyBB format.

set_validated($validated = true)   X-Ref
Sets whether or not we are done validating.
param: boolean True when done, false when not done.

get_validated()   X-Ref
Returns whether or not we are done validating.
return: boolean True when done, false when not done.

verify_yesno_option(&$options, $option, $default=1)   X-Ref
Verifies if yes/no options haven't been modified.
param: array $options The user options array.
param: string $option The specific option to check.
param: int|bool $default Optionally specify if the default should be used.



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