In-Portal Issue Tracker - Custom (Dev. Kit)
Viewing Issue Advanced Details
1007 [In-Portal CMS] Optimization refactoring always 2011-02-21 15:09 2011-03-30 09:58
Dmitry  
Dmitry  
normal  
closed 1.1.2-B1  
fixed  
 
none 1.1.2-RC1  
https://groups.google.com/d/topic/in-portal-dev/kEuR0sp95m4/discussion
Minimize number of extended Units in "sections" folder
0
0001007: Minimize number of Extended Units in Sections folder
We have recently came across the issue when in some projects we have too many PHP files in a single Units/Sections folder of Custom module. As you might know this folder contains Extended classes which are used to override default functionality of In-Portal. As a result it's getting very hard to quickly locate necessary files once you reach 20+ files in there, plus they all start with e_OriginalFileName.php

At this point, we should throughly discussion all options of making this simpler to work with. I ask everyone (including Intechnic employees) to participate in this critical decision making process.


Solution:

No CORE changes required here!

Under Units/Sections we create a sub-folders for each corresponding Unit name (that are extending) and put replacement files inside.

Example:
 - it was - /modules/custom/units/sections/e_order_eh.php
 - it will be - /modules/custom/units/sections/orders/e_order_eh.php

Do all Extended Units for Custom module like this.
Issue History
2011-03-30 09:58 Dmitry Note Added: 0003379
2011-03-30 09:58 Dmitry Status resolved => closed
2011-02-28 13:32 Dmitry Changeset attached 1.1.x r14239
2011-02-28 13:32 Dmitry Note Added: 0003282
2011-02-28 13:32 Dmitry Status active => resolved
2011-02-28 13:32 Dmitry Fixed in Version => 1.1.2-RC1
2011-02-28 13:32 Dmitry Resolution open => fixed
2011-02-28 13:32 Dmitry Assigned To => Dmitry
2011-02-21 15:11 Dmitry Type bug report => refactoring
2011-02-21 15:09 Dmitry Description Updated bug_revision_view_page.php?rev_id=691#r691
2011-02-21 15:09 Dmitry New Issue
2011-02-21 15:09 Dmitry Reference => https://groups.google.com/d/topic/in-portal-dev/kEuR0sp95m4/discussion
2011-02-21 15:09 Dmitry Change Log Message => Minimize number of extended Units in "sections" folder

Notes
(0003282)
Dmitry   
2011-02-28 13:32   
Fix committed to 1.1.x branch. Commit Message:

Fixes 0001007: Minimize number of Extended Units in Sections folder
(0003379)
Dmitry   
2011-03-30 09:58   
Closing, since 1.1.2 release has been released.