Ticket #1312 (new enhancement)
Singleton Template
| Reported by: | quocbao | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | Unknown |
| Component: | Attributes | Version: | 0.11.0 |
| Severity: | Keywords: | singleton template | |
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description (last modified by romanb) (diff)
Each record has its own template instances. It is wasteful of memory and each template instance should be created one and use for all records.
We can implement this feature as below :
- implement singleton pattern for Doctrine_Template
- record holds templates options and template will get options from records
- change API Document of Template, Template will then use getInvoker()->hasColumn() instead of $this->hasColumn() and so on
- change magic call and it will work :)
In short : the record will hold the template options and template will use Invoker method to interact with record / table.
Change History
Note: See
TracTickets for help on using
tickets.