[Akelos PHP Framework] #93: Implementation of Observer pattern for ActiveRecord is unclear

2 views
Skip to first unread message

Akelos PHP Framework

unread,
Nov 4, 2007, 1:42:01 PM11/4/07
to
#93: Implementation of Observer pattern for ActiveRecord is unclear
-------------------+--------------------------------------------------------
Reporter: Kaste | Type: defect
Status: new | Priority: major
Milestone: 0.9 | Component: Action Controller
Keywords: |
-------------------+--------------------------------------------------------
- A Model should "know" his observers. (Right now it asks all known
observers what they actually observe.

- The Model should call "update". The Observe handles these messages and
delegates to approriate methods. (before-/after*)

- The singleton pattern is unclear. There is no Observer::getInstance
method.

- Who knows what? Who stores the singl.-obj-references? Should someone use
Observer::observe(new Model) or Model::addObserver(new Observer)? I prefer
the latter.

- Correct the Observer-documentation.

--
Ticket URL: <http://trac.akelos.org/ticket/93>
Akelos PHP Framework <http://www.akelos.org/>
Akelos PHP Framework

Akelos PHP Framework

unread,
Nov 4, 2007, 1:50:16 PM11/4/07
to
#93: Implementation of Observer pattern for ActiveRecord is unclear
-------------------------------+--------------------------------------------
Reporter: Kaste | Owner:
Type: defect | Status: new
Priority: major | Milestone: 0.9
Component: Action Controller | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Comment (by Kaste):

sorry, move to ActiveRecord

--
Ticket URL: <http://trac.akelos.org/ticket/93#comment:1>

Akelos PHP Framework

unread,
Jan 10, 2010, 3:55:48 PM1/10/10
to
#93: Implementation of Observer pattern for ActiveRecord is unclear
---------------------------+------------------------------------------------
Reporter: Kaste | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.0.1
Component: Active Record | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Comment (by DurfWerzel):

[http://www.merchantservces.com/ Credit Card Processing]

--
Ticket URL: <http://trac.akelos.org/ticket/93#comment:3>

Akelos PHP Framework

unread,
Jan 10, 2010, 3:56:01 PM1/10/10
to
#93: Implementation of Observer pattern for ActiveRecord is unclear
---------------------------+------------------------------------------------
Reporter: Kaste | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.0.1
Component: Active Record | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Reply all
Reply to author
Forward
0 new messages