Pending

User tests: Successful: Unsuccessful:

avatar dgasparri
dgasparri
19 Apr 2012

Added to JController the following methods:

  1. factory()
  2. createEnvironmentArray()
  3. setTask($task)

Changed execute($task) that if no task is passed, it executes the
$this->task (which is set also by the factory method)

See discussion https://groups.google.com/forum/?fromgroups#!topic/joomla-dev-cms/7tjVkzc08Ks (Object oriented components , any plan?)

2012-04-19 by Duccio Gasparri duccio.gasparri@gmail.com
Change-Id: I2a4ded062856670e364128f3cb74716b84b23eea

avatar dgasparri dgasparri - open - 19 Apr 2012
avatar dgasparri
dgasparri - comment - 19 Apr 2012

getInstance() should also be cleaned and simplified, as it does stuff proper of a factory pattern and factory method (choosing which class to load). Not knowing if there was backward compatibility issues, I left it like that.

Part of the "reasoning" in getInstance() about the environment variables ($_REQUEST task, controller, option, and so on) are left intact in the getInstance(), but were duplicated cleared and streamlined into the createEnvironmentArray() method.

avatar coolbung coolbung - reference | 2dcdb50 - 10 Sep 13
avatar phproberto phproberto - close - 3 Oct 2013
avatar phproberto
phproberto - comment - 3 Oct 2013

I'm closing this as it's not mergeable and 1 year old. Feel free to open if you update it and are still interested in get it merged.

Thanks for contributing.

Add a Comment

Login with GitHub to post a comment