[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> datahandler.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 216 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 The method we're performing with this object.

set_data($data)   X-Ref
Sets the data to be used for the data handler

param: array The data.

set_error($error, $data='')   X-Ref
Add an error to the error array.

param: string The error name.

get_errors()   X-Ref
Returns the error(s) that occurred when handling data.

return: string|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: 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 The user options array.
param: string The specific option to check.
param: string Optionally specify if the default should be used.



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1