Zeile 60 | Zeile 60 |
---|
/** * Constructor for the data handler. *
|
/** * Constructor for the data handler. *
|
* @param string The method we're performing with this object.
| * @param string $method The method we're performing with this object.
|
*/ function __construct($method="insert") {
| */ function __construct($method="insert") {
|
Zeile 74 | Zeile 74 |
---|
/** * Sets the data to be used for the data handler *
|
/** * Sets the data to be used for the data handler *
|
* @param array The data.
| * @param array $data The data. * @return bool
|
*/ function set_data($data) {
| */ function set_data($data) {
|
Zeile 89 | Zeile 90 |
---|
/** * Add an error to the error array. *
|
/** * Add an error to the error array. *
|
* @param string The error name.
| * @param string $error The error name. * @param string $data
|
*/ function set_error($error, $data='') {
| */ function set_error($error, $data='') {
|
Zeile 102 | Zeile 104 |
---|
/** * Returns the error(s) that occurred when handling data. *
|
/** * Returns the error(s) that occurred when handling data. *
|
* @return string|array An array of errors.
| * @return array An array of errors.
|
*/ function get_errors() {
| */ function get_errors() {
|
Zeile 113 | Zeile 115 |
---|
* Returns the error(s) that occurred when handling data * in a format that MyBB can handle. *
|
* 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.
| * @return array An array of errors in a MyBB format.
|
*/ function get_friendly_errors() { global $lang;
|
*/ function get_friendly_errors() { global $lang;
|
|
|
// Load the language pack we need if($this->language_file) {
| // Load the language pack we need if($this->language_file) {
|
Zeile 183 | Zeile 185 |
---|
/** * Verifies if yes/no options haven't been modified. *
|
/** * 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.
| * @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.
|
*/ function verify_yesno_option(&$options, $option, $default=1) {
| */ function verify_yesno_option(&$options, $option, $default=1) {
|