The following tables lists changes made in version 0.8.5 when
compared to version 0.8.4 (and earlier).
Please note that $this->control->
outside a method context can use
$romber_control->
Version 0.8.4 | Version 0.8.5 | Notes |
---|---|---|
/opt/romber/versions/0084/ | /opt/romber/versions/0085/ |
The only magic methods are in the |
__construct __destruct | _construct _destruct | |
$lcl_manage_options | $gbl_manage_options | |
romber_null | romber_object | |
$romber_control['debug']['xxxx'] romber_trace ( ... ) | $this->control->debug_flags $this->control->debug ( ROMBER_DEBUG_XXXX, ... ) |
Individual debug array elements have been replaced by a single debug bit mask.
Constants of the from ROMBER_DEBUG_XXXX define the bits.
Use of the romber_trace function is deprecated.
The $this->control->debug ( ... ) method should be used instead.
|
romber_cvt_to_sql ( ... ) | ronber_cvt_from_boolean ( ... ) | Use of the romber_cvt_to_sql function is deprecated. The romber_cvt_from_boolean function should be used instead. |
romber_database_or_not ( ... ) | $this->control->has_database_or_not $this->control->suspend_database_or_not $this->control->use_database_or_not |
Use of the romber_database_or_not function is deprecated.
The $this->control->xxxx_database_or_not flags should be used instead.
|
$romber_control['browser'] $romber_control['client'] $romber_control['logger'] $romber_control['meta_session'] $romber_control['meta_transaction'] $romber_control['preferences'] $romber_control['report'] $romber_control['server'] $romber_control['task'] | $this->control->browser $this->control->web_client $this->control->logger $this->control->session $this->control->transaction $this->control->preferences $this->control->report $this->control->server $this->control->task | |
$romber_control['email']['xxxx'] $romber_control['romber']['xxxx'] $romber_control['site']['xxxx'] $romber_control['subsite']['xxxx'] | $this->control->email->xxxx $this->control->romber->xxxx $this->control->site->xxxx $this->control->subsite->xxxx | |
$romber_control['context']['code'] $romber_control['context']['envr'] $romber_control['context']['zzzz'] | $this->control->context->application_code $this->control->context->environment_code $this->control->context->zzzz | |
$romber_control['page']['headers_sent'] $romber_control['page']['zzzz'] | $this->control->web_request->headers_sent $this->control->page->zzzz | |
$romber_control['output_calculate'] $romber_control['output_confirm'] $romber_control['output_email_confirmation_body'] $romber_control['output_email_details_body'] $romber_control['output_email_notification_body'] $romber_control['output_form_begin'] $romber_control['output_form_end'] $romber_control['output_form_middle'] $romber_control['output_javascipt'] $romber_control['output_onload'] $romber_control['output_onsubmit'] $romber_control['raw_errors'] $romber_control['output_reset'] $romber_control['output_rico'] $romber_control['output_validate'] | $this->control->buffers['calculate'] $this->control->buffers['confirm'] $this->control->buffers['email_confirmation_body'] $this->control->buffers['email_details_body'] $this->control->buffers['email_notification_body'] $this->control->buffers['form_begin'] $this->control->buffers['form_middle'] $this->control->buffers['form_end'] $this->control->buffers['javascript'] $this->control->buffers['onload'] $this->control->buffers['onsubmit'] $this->control->buffers['raw_errors'] $this->control->buffers['reset'] $this->control->buffers['rico'] $this->control->buffers['validate'] | |
$romber_base->statistics['xxxx'] | $this->control->statistics['xxxx'] | |
$romber_data['database'] $romber_data['page'] $romber_data['roles'] $romber_data['web_request'] $romber_data['web_site'] | $this->control->database $this->control->page $this->control->roles $this->control->web_request $this->control->web_request | |
$romber_data['form']['details'] $romber_data['form']['items'] $romber_data['form']['steps'] | $this->control->form->options $this->control->form->items $this->control->form->steps | |
$romber_data['arguments'] $romber_data['document_options'] $romber_data['import_file'] $romber_data['member_options'] $romber_data['page_options'] | $this->control->data['arguments'] $this->control->data['document_options'] $this->control->data['import_file'] $this->control->data['member_options'] $this->control->data['page_options'] |
These elements are candidates for being contained directly in
|
$romber_config['mastertitle'] $romber_config['xxxx'] $translations['xxxx'] | $romber_config['pre_title'] $romber_config['post_title'] $romber_config['xxxx'] $translations['xxxx'] |
The configuration and translations arrays remain largely the same for now. |
$romber_base-> $romber_data['xxxx'] $romber_modules['xxxx'] | $romber_control-> $romber_control->data['xxxx'] $romber_control->modules['xxxx'] |
The old 4 global containers have been replaced by a single container
In subclasses of |
$romber_control['xxxx'] $romber_control['xxxx']['yyyy'] | $romber_control->xxxx $romber_control->xxxx_yyyy |
Remaining elements of the |
$gbl_ports | romber_control::$_ports |
Only accessed via appropriate methods. |
'_login_username_code' '_login_username_password' | '_authentication_key' '_authentication_password' |
Typically used in |
Inside most methods, the following lines can be removed:
global $romber_control
global $romber_data
The romber_meta_class
no longer includes a $code
property.
As a consequence, any class which relied on inheriting the $code
property
from romber_meta_class
will need to explicitly declare the property.
Traits are now used for frontends. Generally this will lead to some reorganization of management tasks.
Class _destruct
methods are not required if they only call _unset
and/or parent::_destruct
.
Class _unset
methods do not need to declare, check or set
a _unsetted
property.
The logic to manage the above is now in romber_object::__destruct
and romber_unset
.
To find the parent meta object, use $this->_find_meta_object ()
rather than parent::find ();
.