Index: branches/1.2.x/units/sections/custom_eh.php =================================================================== diff -u -N -r13849 -r14086 --- branches/1.2.x/units/sections/custom_eh.php (.../custom_eh.php) (revision 13849) +++ branches/1.2.x/units/sections/custom_eh.php (.../custom_eh.php) (revision 14086) @@ -23,6 +23,17 @@ } /** + * [HOOK] Override cloned sub-items (ie. register extended classes for clones from Reviews, Images) + * + * @param kEvent $event + */ + function OnOverrideClonedSubItems(&$event) + { + # register EReviewEventHandler class as extented from cloned ReviewEventHandler for article reviews ("n" prefix) +// $this->Application->registerClass('EReviewEventHandler', dirname(__FILE__) . '/e_review_eh.php', 'n-rev_EventHandler'); + } + + /** * [HOOK] Modify config stored in "categories_config.php" without extending CategoriesEventHandler class * * @param kEvent $event Index: branches/1.2.x/install/upgrades.sql =================================================================== diff -u -N -r13849 -r14086 --- branches/1.2.x/install/upgrades.sql (.../upgrades.sql) (revision 13849) +++ branches/1.2.x/install/upgrades.sql (.../upgrades.sql) (revision 14086) @@ -30,4 +30,10 @@ # ===== v 1.1.0-RC1 ===== -# ===== v 1.1.0 ===== \ No newline at end of file +# ===== v 1.1.0 ===== + +# ===== v 1.1.1-B1 ===== + +# ===== v 1.1.1-RC1 ===== + +# ===== v 1.1.1 ===== \ No newline at end of file Index: branches/1.2.x/units/sections/sections_config.php =================================================================== diff -u -N -r13849 -r14086 --- branches/1.2.x/units/sections/sections_config.php (.../sections_config.php) (revision 13849) +++ branches/1.2.x/units/sections/sections_config.php (.../sections_config.php) (revision 14086) @@ -35,16 +35,15 @@ # extend default Link /in-link/units/links/link_tag_processor.php / links_event_handler.php // Array ('pseudo' => 'l_TagProcessor', 'class' => 'ELinkTagProcessor', 'file' => 'e_link_tp.php'), // Array ('pseudo' => 'l_EventHandler', 'class' => 'ELinkEventHandler', 'file' => 'e_link_eh.php'), - + # extend default Category /core/units/categories/categories_tag_processor.php / categories_event_handler.php // Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoryTagProcessor', 'file' => 'e_category_tp.php'), // Array ('pseudo' => 'c_EventHandler', 'class' => 'ECategoryEventHandler', 'file' => 'e_category_eh.php'), - + # extend default Article /in-news/units/articles/article_tag_processor.php / articles_event_handler.php // Array ('pseudo' => 'n_TagProcessor', 'class' => 'EArticleTagProcessor', 'file' => 'e_article_tp.php'), // Array ('pseudo' => 'n_EventHandler', 'class' => 'EArticleEventHandler', 'file' => 'e_article_eh.php'), -// Array ('pseudo' => 'n-rev_EventHandler', 'class' => 'EReviewEventHandler', 'file' => 'e_review_eh.php'), - + ), # Replace/substiture any admin default templates with custom ones @@ -61,7 +60,20 @@ # Hooks to events that may call any other events 'Hooks' => Array ( - + + # hook to OnAfterCacheRebuild event of "adm" prefix (tiggered when unit cache is rebuild and stored) called + # to override cloned sub-items (ie. register extended classes for cloned unit configs such as n-img, n-rev) + /*Array ( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '*', + 'HookToEvent' => Array ('OnAfterCacheRebuild'), + 'DoPrefix' => '', + 'DoSpecial' => '*', + 'DoEvent' => 'OnOverrideClonedSubItems', + ),*/ + # hook to category OnAfterConfigRead event called to customize category configuration settings /*Array ( 'Mode' => hAFTER, Index: branches/1.2.x/admin_templates/widgets/widget_edit.tpl =================================================================== diff -u -N -r13849 -r14086 --- branches/1.2.x/admin_templates/widgets/widget_edit.tpl (.../widget_edit.tpl) (revision 13849) +++ branches/1.2.x/admin_templates/widgets/widget_edit.tpl (.../widget_edit.tpl) (revision 14086) @@ -63,26 +63,26 @@
- - - - - + + + + + - - - + + + - - + +
Index: branches/1.2.x/install/upgrades.php =================================================================== diff -u -N -r13849 -r14086 --- branches/1.2.x/install/upgrades.php (.../upgrades.php) (revision 13849) +++ branches/1.2.x/install/upgrades.php (.../upgrades.php) (revision 14086) @@ -1,6 +1,6 @@ Array ('Core' => '5.1.0-B2'), '1.1.0-RC1' => Array ('Core' => '5.1.0-RC1'), '1.1.0' => Array ('Core' => '5.1.0'), + '1.1.1-B1' => Array ('Core' => '5.1.1-B1'), + '1.1.1-RC1' => Array ('Core' => '5.1.1-RC1'), + '1.1.1' => Array ('Core' => '5.1.1'), ); } }