wiki | forum | trac | otrs | joomla | tech blog | mailman | bewelcome Branches: test.bw | alpha.bw | www.bw Participate: download | get involved

Ticket #436 (closed new feature: fixed)

Opened 9 months ago

Last modified 5 months ago

new architecture for View classes

Reported by: lemon-head Assigned to: lemon-head
Priority: major Milestone: Rox Framework
Component: FrameWork Version:
Keywords: Cc:
Follow up needed: none Frequently reported: 1
Announce on BW: 0

Description

We can make it a lot easier to code view classes, by using inheritance and polymorphism.

Have a look at the new application 'about' - it uses the new mechanism.

Change History

02/29/08 01:21:35 changed by lemon-head

  • owner set to lemon-head.
  • status changed from new to assigned.

[4224] - all View classes can now inherit from RoxPageView, and redefine the protected methods.

02/29/08 01:28:46 changed by lemon-head

  • follow_up changed from none to review code.

[4225] - a new 'about' application, to prove that it works.

03/02/08 17:02:44 changed by lemon-head

[4240] - first steps towards a template switcher.

A new way to include template files, to constrain the power of template files.

A later step will be to use an exchangeable $template_factory, that will allow template switching.

Advantages:

  1. Template files included with the new mechanism can't use methods or private fields of the $view object. All dependencies have to be injected explicitly into the template, using the $args argument.
  2. Some dependencies (currently only $words) are injected by RoxPageView, so the application writer doesn't need to care about it.
  3. In the future we can use an exchangeable $template_factory object. Instead of the usual templates, it could return
    • mock templates for testing (which don't include a file, but only echo the template name.
    • templates in a different directory - this would have the effect of skinning.

03/20/08 01:29:33 changed by lemon-head

04/15/08 18:04:58 changed by lemon-head

In the meantime everything needed for RoxPageView is in /tools/ folder, and depends on other things in /roxlauncher/ (especially, to parse the "autoload.ini").

04/16/08 09:18:40 changed by micha

  • follow_up changed from review code to move to alpha.
  • milestone changed from unassigned to 0.2 - community.

Will try to move it to alpha

04/21/08 21:29:13 changed by lemon-head

  • milestone changed from 0.2 - community to Rox Framework.

06/14/08 19:24:21 changed by lemon-head

  • follow_up changed from move to alpha to none.
  • status changed from assigned to closed.
  • resolution set to fixed.

This is released some time ago.

Trac Customization: trac stylesheet
SourceForge.net Logo