Private Method Details |
_get_meta_css |
private string _get_meta_css(array $data)
|
|
Examines the data passed and returns an appropriate CSS category -- e.g. 'default' or 'error'. You will want to override this method if you want to create widgets that use new CSS categories.
|
Parameter |
|
array |
$data |
|
|
Hash of widget properties. |
|
Returns |
string The category of CSS (e.g. 'error', 'default'). |
|
_get_css_attribute |
private string _get_css_attribute(array $data)
|
|
Examines the data passed and returns an appropriate CSS attribute -- by default $default_css_attribute; if there's an error, $error_css_attribute, etc.
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string The CSS tag to use. |
|
_get_css_style |
private string _get_css_style(array $data)
|
|
Examines the data passed and returns an appropriate CSS tag -- by default $default_css; if there's an error, $error_css, etc.
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string The CSS to use. |
|
_get_css_type |
private string _get_css_type(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string The CSS tag type to use. |
|
_get_id_attribute |
private string _get_id_attribute(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
Associative array of widget properties |
|
Returns |
string id attribute prepended with space |
|
_clean_output |
private string _clean_output(string $value)
|
|
This function strips slashes from values in a smart way and returns html entities.
|
Parameter |
|
string |
$value |
|
|
The value to clean. |
|
Returns |
string The cleaned value. |
|
_widget |
private string _widget(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget |
private string _ro_widget(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_num |
private string _widget_num(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_num |
private string _ro_widget_num(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_txt |
private string _widget_txt(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_txt |
private string _ro_widget_txt(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_amount |
private string _widget_amount(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_amount |
private string _ro_widget_amount(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_ltxt |
private string _widget_ltxt(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_ltxt |
private string _ro_widget_ltxt(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_email |
private string _widget_email(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_email |
private string _ro_widget_email(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_password |
private string _widget_password(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_password |
private string _ro_widget_password(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_pass2 |
private string _widget_pass2(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_pass2 |
private string _ro_widget_pass2(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_phone |
private string _widget_phone(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_phone |
private string _ro_widget_phone(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_currency |
private string _widget_currency(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_currency |
private string _ro_widget_currency(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_date |
private string _widget_date(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_date |
private string _ro_widget_date(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_url |
private string _widget_url(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_url |
private string _ro_widget_url(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_boolean_radio |
private string _widget_boolean_radio(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_boolean_radio |
private string _ro_widget_boolean_radio(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_boolean_check |
private string _widget_boolean_check(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_boolean_check |
private string _ro_widget_boolean_check(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_boolean |
private string _widget_boolean(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_boolean |
private string _ro_widget_boolean(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_primaryrel |
private string _widget_primaryrel(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_primaryrel |
private string _ro_widget_primaryrel(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_pickid |
private string _widget_pickid(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_pickid |
private string _ro_widget_pickid(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_pick |
private string _widget_pick(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_pick |
private string _ro_widget_pick(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_upload |
private string _widget_upload(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string input widget |
|
_ro_widget_upload |
private string _ro_widget_upload(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
string read only widget |
|
_widget_plugin_exists |
private boolean _widget_plugin_exists(array $data)
|
|
Upload widget
|
Parameter |
|
array |
$data |
|
|
The hash of widget properties. |
|
Returns |
boolean |
|
_include_widget |
private string _include_widget(string $plugin_data, array &$data)
|
|
If no widget is found at the specified path, the appropriate class method will be called instead. You PHP script will be included inside a function & therefore will have only local scope. Of course you can use references to methods of this object with $this->methodname() calls, however, some variables are copied so that you should not need to do this. In particular your PHP script may use the following variables $data -- the Hash of widget properties (e.g. 'name', 'label', 'error', etc.) $params -- params passed to widgets, from pxdb[widgets] array $db -- the ADOdb connection $css_tag -- the CSS tag (i.e. "style = 'color: red'" or "class = 'widgetclass'") for this widget $css_style -- the CSS style text or class name for this widget $css_type -- the CSS tag type (i.e. "style" or "class") for this widget In addition it is expected that your code will set a variable named $widget with the actual HTML that is to be displayed.
|
Parameter |
|
string |
$plugin_data |
|
|
The name of widget plugin to include AND params. |
|
|
array |
&$data |
|
|
Hash of widget properties. |
|
Returns |
string The widget returned by included file. |
|
_invoke_class_method |
private string _invoke_class_method(array $data)
|
|
|
Parameter |
|
array |
$data |
|
|
Hash of widget properties. |
|
Returns |
string The widget returned by class method. |
|
updateDatetime |
private void updateDatetime()
|
|
Warning: documentation is missing.
|
Returns |
void |
|