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 useFile instead 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 isSubmitted may remove calls to loadPOST/GET as 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 $interface which defines which interface app the link goes to.

AF 244

  • Template::createSelfLink returns a link html element. For the original self url, use createSelfUrl
  • Template::createSelfLink now accepts a text argument in the first position.
  • Template::createEncodedUrl changed names to createXhtmlValidUrl.
  • Form::setDefault was renamed to setDefaultValue
  • Form::default_value was renamed to getDefaultValue
  • Form::setValue was renamed to setCurrentValue

AF 243

  • Model::insert changed names to insertForm.
  • Model::update changed names to updateForm.
  • Model::generateInsert no longer executes the query. Use executeInsert to generate and auto-execute. For just preparing the query, use generateInsert and then call results.
  • Model::generateUpdate no longer executes the query. Use executeUpdate to generate and auto-execute. For just preparing the query, use generateUpdate and then call results.

AF 240

  • Router::getFullUrlPath changed to getFullUrl

AF 237

  • Model::orderByPreference allows previous functionality of orderBy.
  • iCal class was removed and is no longer a standard package.

AF 236

  • Model::orderBy now accepts the preference key parameter last, not first. However, as of AF 237 you may replace all orderBy calls with orderByPreference.
  • Model::quickSelectSingle now returns the direct record rather than inside of the RECORDS array, since the nature of the result will always be a single record.
  • Router::getDomainUrl will now include the port number if anything besides 80 and 443.
  • Template::createLink no longer accepts an onclick argument.
  • Template::createUrl will now return the interface path as well.
  • Template::createFormAction is 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 through Security::clean_db_input will 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::isPhoneNumber changed 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_PATH constant.

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.