Packageindex Classtrees Modulegroups Elementlist Report XML Files

pxdb.content.input

pxdb_confront

pxdb_data
   |
  +-- pxdb_confront

public class pxdb_confront extends pxdb_data

AuthorsHans Lellelid <hans@velum.net>
Version1.0.1

 
Direct known subclasses: pxdb_commit, pxdb_input, pxdb_validator, pxdb_widgets

Methods inherited from pxdb_data

pxdb_data, set_show_unapproved, get_datatype, get_datatype_list, get_datatype_array, set_datatype, bind_tpl, bind_auth, lookup_colname, lookup_tfid, get_column_identifiers, get_identifiers, set_user_minimal_columns, sql_minimal_columns, sql_aliased_columns

Public Method Summary

void pxdb_confront()
Calls parent constructor.
void import([ array $source ])
Function that imports data from global namespace into class.
boolean bind_validator(object [unknown] &$validator)
This function is for adding a form validating class to the input form / commit class.

Private Method Summary

string _get_form_element_name(string $type, string $name)
Builds parameter form element name based on passed varname.
string _invoke_user_method(mixed $function, mixed $data, object [unknown] &$object)
Invoke a user-registered method.
boolean _import_uploaded_files()
Imports special exception data related to file uploads.

Fields inherited from pxdb_data

$debug, $errors, $datatype, $auth, $tpl, $show_unapproved, $db, $user_minimal_columns

Public Field Summary

unknown $validator
Validator instance.
string $data_name_structure
The template for form element names.
string $param_name_structure
The template for form parameters.
string $widget_param_name_structure
The template for widget form element names.

Private Field Summary

array $_imported
Vars imported from global / $_REQUEST scope.
array $_upload_fields
Stores the form fields that are of "upload" type.
array $_params
pxdb parameters
array $_widget_params
Paramters for widgets (from pxdb[widget] array).
array $_data
pxdb data

Public Method Details

pxdb_confront

public void pxdb_confront()

 

Returns void


import

public void import([ array $source ])

 

Parameter
array $source = >>null<<
The location of source data to use. (for upward compatibility with pxdb::import())
Returns void


bind_validator

public boolean bind_validator(object [unknown] &$validator)

  The class must have been instantiated, and must conform to a standard pxdb_validator interface. This interface can be seen in the pxdb_validator class, which you may wish to extend / override.

Parameter
object [unknown] &$validator
The class used to validate data (must conform to interface used above);
Returns boolean


Private Method Details

_get_form_element_name

private string _get_form_element_name(string $type, string $name)

 

Parameter
string $type
The type of element this is: e.g. data, param, widget_param
string $name
The name to insert into the template.
Returns string


_invoke_user_method

private string _invoke_user_method(mixed $function, mixed $data, object [unknown] &$object)

  Currently simply a wrapper for PHP's call_user_func() function.

Parameter
mixed $function
The function name or array of object reference and method name.
mixed $data
The data that needs to be passed to the function.
object [unknown] &$object
Some Hans idea of something to pass.
Returns string

The widget created by function call.


_import_uploaded_files

private boolean _import_uploaded_files()

  This function is used both by pxdb_commit and pxdb_input (on page reload any specified files are sent to the server).

Returns boolean

Success or failure


Public Field Details

$validator

public unknown $validator

>><<


$data_name_structure

public string $data_name_structure

>><<


$param_name_structure

public string $param_name_structure

>><<


$widget_param_name_structure

public string $widget_param_name_structure

>><<


Private Field Details

$_imported

private array $_imported

>><<


$_upload_fields

private array $_upload_fields

>><<


$_params

private array $_params

>><<


$_widget_params

private array $_widget_params

>><<


$_data

private array $_data

>><<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de