Compatibility:Beta2
From Aspen Documentation
Contents |
AF 310
- Forms may now use printErrors function. Previous loop of getErrors will still work, so this update is not required. Framework-default forms have been changed and an upgrade is recommended.
print $this->APP->form->printErrors();
AF 307
- Permission table now supports interface names. Admin accounts have an asterisk by default. Run the following sql to update the database:
ALTER TABLE `permissions` ADD `interface` VARCHAR( 155 ) NOT NULL AFTER `group_id`;
Update all users interface access permissions appropriately.
AF 296
- Any calls to createUrl/Link and all related functions must remove the underscore+interface from any module names. Ie, Index_Admin should just be entered as "Index" as the module argument to your function.
AF 291
- File class now loaded by default. File method now activated by
useFileinstead of constructor. - Template::dirList has been moved to the File class.
- All functions and methods in file class have begun to change.
Form->save()has lost its first parameter, as the table declaration is now automatic.
AF 285
- System classes config index was changed to
load_core_class.
AF 272
- admin/index.php was updated. Added line 23.
AF 267
- Any forms using
isSubmittedmay remove calls toloadPOST/GETas it's now called automatically.
AF 266
- All module template folders need have "_interface-name" appended.
AF 247
createUrl,createLink,createXhtmlValidUrl, all accept an additional argument$interfacewhich defines which interface app the link goes to.
AF 244
Template::createSelfLinkreturns a link html element. For the original self url, usecreateSelfUrlTemplate::createSelfLinknow accepts a text argument in the first position.Template::createEncodedUrlchanged names tocreateXhtmlValidUrl.Form::setDefaultwas renamed tosetDefaultValueForm::default_valuewas renamed togetDefaultValueForm::setValuewas renamed tosetCurrentValue
AF 243
Model::insertchanged names toinsertForm.Model::updatechanged names toupdateForm.Model::generateInsertno longer executes the query. UseexecuteInsertto generate and auto-execute. For just preparing the query, usegenerateInsertand then callresults.Model::generateUpdateno longer executes the query. UseexecuteUpdateto generate and auto-execute. For just preparing the query, usegenerateUpdateand then callresults.
AF 240
Router::getFullUrlPathchanged togetFullUrl
AF 237
Model::orderByPreferenceallows previous functionality oforderBy.- iCal class was removed and is no longer a standard package.
AF 236
Model::orderBynow accepts the preference key parameter last, not first. However, as of AF 237 you may replace allorderBycalls withorderByPreference.
Model::quickSelectSinglenow returns the direct record rather than inside of the RECORDS array, since the nature of the result will always be a single record.
Router::getDomainUrlwill now include the port number if anything besides 80 and 443.
Template::createLinkno longer accepts an onclick argument.
Template::createUrlwill now return the interface path as well.
Template::createFormActionis now recommended for use in all form actions. It relies on an id in the url for passing unique ids. It simply returns an encoded to the current self url with id GET parameters included if available.
AF 232
- HTMLPurifier is now available through
$this->html. By default, any values passed throughSecurity::clean_db_inputwill be passed through HP if that field is allowed to have html. Currently, there is no integration with HP settings so whitelist functionality is not yet available.
AF 230
Due to new features implemented with rev229, the following code features have been removed:
- Removed
Security::clean_alphanumeric. - Removed
Security::clean_numeric. - Removed
Form::filter - Second argument to
Form::isPhoneNumberchanged to country.
AF 229
The Params class has been replaced by a much more secure class, Inspekt. As part of the efforts to ramp up security features, superglobals are now only accessible through the Inspekt class, which has been assigned to ->params for ease of use.
What was:
$this->APP->params->POST('arr_key');
Becomes:
$this->APP->params->post->getAlnum('arr_key');
Inspekt forces you to declare a type of value you expect to be returned so we can properly return expected values. Additional documentation is available at http://funkatron.com/inspekt/user_docs.
AF 211
- Modified admin/index.php
- Modified loader.inc.php
- Ensure any apps requiring authentication have their auth define in app.default.config.php:
DEFINE('USER_AUTH_ADMIN', true);
AF 210
- Your classes/code may no longer access the $this->config member variable directly. You must now use:
$this->APP->config('name');
-
$this->APP->getApplicationDir()was replaced by:APPLICATION_PATHconstant.
AF 171
- Updated loader.inc.php.
AF 168
- Removed deprecated code from admin/index.php
AF rev 155-161
- Global languages file was moved to /admin folder.
- Replace all instances of extends Admin with extends App.
- Replace all instances of getAdmin with getInterface.
- /admin/index.php was updated
AF rev 154
Required for minimum compatibility:
Language arrays must be updated with:
$lang['admin']['title']
Required for full compatibility:
- Add in user authentication disabling configurations. User authentication is enabled by default, so leaving these toggles out will still require logging in.
// require user authentication for admin subdirectory application DEFINE('USER_AUTH_ADMIN', true); // require user authentication for front-end application DEFINE('USER_AUTH_FRONT', false);
AF rev 153
Full compatibility work is required for any applications using front-end loading classes currently. Partial is acceptable for any apps only using admin folder classes.
Required for minimum compatibility:
- Module classes must change getTemplateDirectory() to getTemplateDir();
Required for full compatibility:
- All module template folders must be renamed from templates to templates_admin. Any front-end templates may be moved to the module folder, under template_front.
Module-specific templates may now be called from:
$this->APP->template->addView($this->APP->template->getModuleTemplateDir() . '/index.tpl.php');
AF rev 152
This release includes primary work for moving the front-end display logic, however, most of the work should not impact any applications currently using the backend (admin) features only.
Any applications using the front-end loader files must be updated to use the latest revision.