Page MenuHomeIn-Portal Phabricator

custom
No OneTemporary

File Metadata

Created
Wed, Feb 26, 10:27 PM
Index: branches/1.2.x/units/helpers/sample_helper.php
===================================================================
--- branches/1.2.x/units/helpers/sample_helper.php (revision 14249)
+++ branches/1.2.x/units/helpers/sample_helper.php (revision 14250)
Property changes on: branches/1.2.x/units/helpers/sample_helper.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/helpers/helpers_config.php
===================================================================
--- branches/1.2.x/units/helpers/helpers_config.php (revision 14249)
+++ branches/1.2.x/units/helpers/helpers_config.php (revision 14250)
Property changes on: branches/1.2.x/units/helpers/helpers_config.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/widgets/widgets_config.php
===================================================================
--- branches/1.2.x/units/widgets/widgets_config.php (revision 14249)
+++ branches/1.2.x/units/widgets/widgets_config.php (revision 14250)
Property changes on: branches/1.2.x/units/widgets/widgets_config.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/widgets/widget_eh.php
===================================================================
--- branches/1.2.x/units/widgets/widget_eh.php (revision 14249)
+++ branches/1.2.x/units/widgets/widget_eh.php (revision 14250)
Property changes on: branches/1.2.x/units/widgets/widget_eh.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/widgets/widget_tp.php
===================================================================
--- branches/1.2.x/units/widgets/widget_tp.php (revision 14249)
+++ branches/1.2.x/units/widgets/widget_tp.php (revision 14250)
Property changes on: branches/1.2.x/units/widgets/widget_tp.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_article_tp.php
===================================================================
--- branches/1.2.x/units/sections/e_article_tp.php (revision 14249)
+++ branches/1.2.x/units/sections/e_article_tp.php (revision 14250)
@@ -1,28 +1,28 @@
-<?php
-
- defined('FULL_PATH') or die('restricted access!');
-
- /**
- * Extends default ArticlesTagProcessor class
- *
- */
- class EArticleTagProcessor extends ArticlesTagProcessor {
-
- /**
- * Adding custom processing to existing Field method
- *
- * @param Array $params
- * @return string
- */
- function FormattedField($params)
- {
- // get from parent
- $o = parent::Field($params);
-
- // do some custom stuff here
- $o = trim($o);
-
- return $o;
- }
-
- }
+<?php
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ /**
+ * Extends default ArticlesTagProcessor class
+ *
+ */
+ class EArticleTagProcessor extends ArticlesTagProcessor {
+
+ /**
+ * Adding custom processing to existing Field method
+ *
+ * @param Array $params
+ * @return string
+ */
+ function FormattedField($params)
+ {
+ // get from parent
+ $o = parent::Field($params);
+
+ // do some custom stuff here
+ $o = trim($o);
+
+ return $o;
+ }
+
+ }
Property changes on: branches/1.2.x/units/sections/e_article_tp.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/sections_config.php
===================================================================
--- branches/1.2.x/units/sections/sections_config.php (revision 14249)
+++ branches/1.2.x/units/sections/sections_config.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/sections_config.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_category_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_category_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_category_eh.php (revision 14250)
@@ -1,188 +1,188 @@
-<?php
-
- defined('FULL_PATH') or die('restricted access!');
-
- /**
- * Extends default CategoriesEventHandler class
- *
- */
- class ECategoryEventHandler extends CategoriesEventHandler {
-
- /**
- * Allows to override standard permission mapping
- *
- */
- function mapPermissions()
- {
- parent::mapPermissions();
-
- $permissions = Array (
- # admin
- 'OnCustomEvent1' => Array ('self' => true),
-
- # front
- 'OnCustomEvent2' => Array ('self' => true),
- );
-
- $this->permMapping = array_merge($this->permMapping, $permissions);
- }
-
- /**
- * Permission exceptions
- *
- * @param kEvent $event
- */
- function CheckPermission(&$event)
- {
- $skip_permissions_check_events = Array (
- 'OnAnotherCustomEvent',
- );
-
- if ( in_array($event->Name, $skip_permissions_check_events) ) {
- return true;
- }
-
- return parent::CheckPermission($event);
- }
-
- /**
- * Updates structure config
- *
- * @param kEvent $event
- */
- function OnAfterConfigRead(&$event)
- {
- parent::OnAfterConfigRead($event);
-
- # 1. Regular Fields from /core/units/categories/categories_config.php
- $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); #get regular fields
-// $fields['Status']['default'] = STATUS_ACTIVE; #add/edit configuration (make default = STATUS_ACTIVE)
- $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); #save fields
-
- # 2. Virtual Fields from /core/units/categories/categories_config.php
- $virtual_fields = $this->Application->getUnitOption($event->Prefix, 'VirtualFields'); #get virtual fields
-// $virtual_fields['UserName']['default'] = ''; #add/edit configuration
- $this->Application->setUnitOption($event->Prefix, 'VirtualFields', $virtual_fields); #save virtual fields
- }
-
- /**
- * Sets custom query for the list
- *
- * @param kEvent $event
- */
- function SetCustomQuery(&$event)
- {
- parent::SetCustomQuery($event);
-
- $object =& $event->getObject();
- /* @var $object kDBList */
-
- # identifying event based on special and setting filter
- if ($event->Special == 'custom-special') {
-// $object->addFilter('primary_filter', '%1$s.Status = ' . STATUS_DISABLED);
- }
-
- # identifying event based not admin condition and setting filter
- if (!$this->Application->isAdminUser) {
-// $object->addFilter('status_filter', '%1$s.Status = ' . STATUS_ACTIVE);
- }
- }
-
- /**
- * Before new item created
- *
- * @param kEvent $event
- */
- function OnBeforeItemCreate(&$event)
- {
- parent::OnBeforeItemCreate($event);
-
-
- }
-
- /**
- * Before existing item updated
- *
- * @param kEvent $event
- */
- function OnBeforeItemUpdate(&$event)
- {
- parent::OnBeforeItemUpdate($event);
-
-
- }
-
- /**
- * Before item deleted
- *
- * @param kEvent $event
- */
- function OnBeforeItemDelete(&$event)
- {
- parent::OnBeforeItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnBeforeItemLoad(&$event)
- {
- parent::OnBeforeItemLoad($event);
-
-
- }
-
-
- /**
- * After new item created
- *
- * @param kEvent $event
- */
- function OnAfterItemCreate(&$event)
- {
- parent::OnAfterItemCreate($event);
-
-
- }
-
- /**
- * After existing item updated
- *
- * @param kEvent $event
- */
- function OnAfterItemUpdate(&$event)
- {
- parent::OnAfterItemUpdate($event);
-
-
- }
-
- /**
- * After item deleted
- *
- * @param kEvent $event
- */
- function OnAfterItemDelete(&$event)
- {
- parent::OnAfterItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnAfterItemLoad(&$event)
- {
- parent::OnAfterItemLoad($event);
-
-
- }
-
- }
+<?php
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ /**
+ * Extends default CategoriesEventHandler class
+ *
+ */
+ class ECategoryEventHandler extends CategoriesEventHandler {
+
+ /**
+ * Allows to override standard permission mapping
+ *
+ */
+ function mapPermissions()
+ {
+ parent::mapPermissions();
+
+ $permissions = Array (
+ # admin
+ 'OnCustomEvent1' => Array ('self' => true),
+
+ # front
+ 'OnCustomEvent2' => Array ('self' => true),
+ );
+
+ $this->permMapping = array_merge($this->permMapping, $permissions);
+ }
+
+ /**
+ * Permission exceptions
+ *
+ * @param kEvent $event
+ */
+ function CheckPermission(&$event)
+ {
+ $skip_permissions_check_events = Array (
+ 'OnAnotherCustomEvent',
+ );
+
+ if ( in_array($event->Name, $skip_permissions_check_events) ) {
+ return true;
+ }
+
+ return parent::CheckPermission($event);
+ }
+
+ /**
+ * Updates structure config
+ *
+ * @param kEvent $event
+ */
+ function OnAfterConfigRead(&$event)
+ {
+ parent::OnAfterConfigRead($event);
+
+ # 1. Regular Fields from /core/units/categories/categories_config.php
+ $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); #get regular fields
+// $fields['Status']['default'] = STATUS_ACTIVE; #add/edit configuration (make default = STATUS_ACTIVE)
+ $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); #save fields
+
+ # 2. Virtual Fields from /core/units/categories/categories_config.php
+ $virtual_fields = $this->Application->getUnitOption($event->Prefix, 'VirtualFields'); #get virtual fields
+// $virtual_fields['UserName']['default'] = ''; #add/edit configuration
+ $this->Application->setUnitOption($event->Prefix, 'VirtualFields', $virtual_fields); #save virtual fields
+ }
+
+ /**
+ * Sets custom query for the list
+ *
+ * @param kEvent $event
+ */
+ function SetCustomQuery(&$event)
+ {
+ parent::SetCustomQuery($event);
+
+ $object =& $event->getObject();
+ /* @var $object kDBList */
+
+ # identifying event based on special and setting filter
+ if ($event->Special == 'custom-special') {
+// $object->addFilter('primary_filter', '%1$s.Status = ' . STATUS_DISABLED);
+ }
+
+ # identifying event based not admin condition and setting filter
+ if (!$this->Application->isAdminUser) {
+// $object->addFilter('status_filter', '%1$s.Status = ' . STATUS_ACTIVE);
+ }
+ }
+
+ /**
+ * Before new item created
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemCreate(&$event)
+ {
+ parent::OnBeforeItemCreate($event);
+
+
+ }
+
+ /**
+ * Before existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemUpdate(&$event)
+ {
+ parent::OnBeforeItemUpdate($event);
+
+
+ }
+
+ /**
+ * Before item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemDelete(&$event)
+ {
+ parent::OnBeforeItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemLoad(&$event)
+ {
+ parent::OnBeforeItemLoad($event);
+
+
+ }
+
+
+ /**
+ * After new item created
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemCreate(&$event)
+ {
+ parent::OnAfterItemCreate($event);
+
+
+ }
+
+ /**
+ * After existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemUpdate(&$event)
+ {
+ parent::OnAfterItemUpdate($event);
+
+
+ }
+
+ /**
+ * After item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemDelete(&$event)
+ {
+ parent::OnAfterItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemLoad(&$event)
+ {
+ parent::OnAfterItemLoad($event);
+
+
+ }
+
+ }
Property changes on: branches/1.2.x/units/sections/e_category_eh.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_link_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_link_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_link_eh.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_link_eh.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_user_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_user_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_user_eh.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_user_eh.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_product_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_product_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_product_eh.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_product_eh.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_review_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_review_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_review_eh.php (revision 14250)
@@ -1,127 +1,127 @@
-<?php
-
- defined('FULL_PATH') or die('restricted access!');
-
- /**
- * Extends/overrides methods of default ReviewsEventHandler class
- *
- */
-
- class EReviewEventHandler extends ReviewsEventHandler {
- /**
- * Makes left join to item's table, when in separate grid
- *
- * @param kEvent $event
- */
- function OnAfterConfigRead(&$event)
- {
- parent::OnAfterConfigRead($event);
-
- // 1. add fields
-// $fields = $this->Application->getUnitOption($event->Prefix, 'Fields');
-// $this->Application->setUnitOption($event->Prefix, 'Fields', $fields);
-
- // 2. calculated fields
-// $calculated_fields = $this->Application->getUnitOption($event->Prefix, 'CalculatedFields');
-// $this->Application->setUnitOption($event->Prefix, 'CalculatedFields', $calculated_fields);
- }
-
-
- /**
- * Before new item created
- *
- * @param kEvent $event
- */
- function OnBeforeItemCreate(&$event)
- {
- parent::OnBeforeItemCreate($event);
-
-
- }
-
- /**
- * Before existing item updated
- *
- * @param kEvent $event
- */
- function OnBeforeItemUpdate(&$event)
- {
- parent::OnBeforeItemUpdate($event);
-
-
- }
-
- /**
- * Before item deleted
- *
- * @param kEvent $event
- */
- function OnBeforeItemDelete(&$event)
- {
- parent::OnBeforeItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnBeforeItemLoad(&$event)
- {
- parent::OnBeforeItemLoad($event);
-
-
- }
-
-
- /**
- * After new item created
- *
- * @param kEvent $event
- */
- function OnAfterItemCreate(&$event)
- {
- parent::OnAfterItemCreate($event);
-
-
- }
-
- /**
- * After existing item updated
- *
- * @param kEvent $event
- */
- function OnAfterItemUpdate(&$event)
- {
- parent::OnAfterItemUpdate($event);
-
-
- }
-
- /**
- * After item deleted
- *
- * @param kEvent $event
- */
- function OnAfterItemDelete(&$event)
- {
- parent::OnAfterItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnAfterItemLoad(&$event)
- {
- parent::OnAfterItemLoad($event);
-
-
- }
-
- }
+<?php
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ /**
+ * Extends/overrides methods of default ReviewsEventHandler class
+ *
+ */
+
+ class EReviewEventHandler extends ReviewsEventHandler {
+ /**
+ * Makes left join to item's table, when in separate grid
+ *
+ * @param kEvent $event
+ */
+ function OnAfterConfigRead(&$event)
+ {
+ parent::OnAfterConfigRead($event);
+
+ // 1. add fields
+// $fields = $this->Application->getUnitOption($event->Prefix, 'Fields');
+// $this->Application->setUnitOption($event->Prefix, 'Fields', $fields);
+
+ // 2. calculated fields
+// $calculated_fields = $this->Application->getUnitOption($event->Prefix, 'CalculatedFields');
+// $this->Application->setUnitOption($event->Prefix, 'CalculatedFields', $calculated_fields);
+ }
+
+
+ /**
+ * Before new item created
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemCreate(&$event)
+ {
+ parent::OnBeforeItemCreate($event);
+
+
+ }
+
+ /**
+ * Before existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemUpdate(&$event)
+ {
+ parent::OnBeforeItemUpdate($event);
+
+
+ }
+
+ /**
+ * Before item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemDelete(&$event)
+ {
+ parent::OnBeforeItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemLoad(&$event)
+ {
+ parent::OnBeforeItemLoad($event);
+
+
+ }
+
+
+ /**
+ * After new item created
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemCreate(&$event)
+ {
+ parent::OnAfterItemCreate($event);
+
+
+ }
+
+ /**
+ * After existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemUpdate(&$event)
+ {
+ parent::OnAfterItemUpdate($event);
+
+
+ }
+
+ /**
+ * After item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemDelete(&$event)
+ {
+ parent::OnAfterItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemLoad(&$event)
+ {
+ parent::OnAfterItemLoad($event);
+
+
+ }
+
+ }
Property changes on: branches/1.2.x/units/sections/e_review_eh.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_article_eh.php
===================================================================
--- branches/1.2.x/units/sections/e_article_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/e_article_eh.php (revision 14250)
@@ -1,188 +1,188 @@
-<?php
-
- defined('FULL_PATH') or die('restricted access!');
-
- /**
- * Extends default ArticlesEventHandler class
- *
- */
- class EArticleEventHandler extends ArticlesEventHandler {
-
- /**
- * Allows to override standard permission mapping
- *
- */
- function mapPermissions()
- {
- parent::mapPermissions();
-
- $permissions = Array (
- # admin
- 'OnCustomEvent1' => Array ('self' => true),
-
- # front
- 'OnCustomEvent2' => Array ('self' => true),
- );
-
- $this->permMapping = array_merge($this->permMapping, $permissions);
- }
-
- /**
- * Permission exceptions
- *
- * @param kEvent $event
- */
- function CheckPermission(&$event)
- {
- $skip_permissions_check_events = Array (
- 'OnAnotherCustomEvent',
- );
-
- if ( in_array($event->Name, $skip_permissions_check_events) ) {
- return true;
- }
-
- return parent::CheckPermission($event);
- }
-
- /**
- * Updates structure config
- *
- * @param kEvent $event
- */
- function OnAfterConfigRead(&$event)
- {
- parent::OnAfterConfigRead($event);
-
- # 1. Regular Fields from /in-news/units/articles/articles_config.php
- $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); #get regular fields
-// $fields['Status']['default'] = STATUS_ACTIVE; #add/edit configuration (make default = STATUS_ACTIVE)
- $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); #save fields
-
- # 2. Virtual Fields from /in-news/units/articles/articles_config.php
- $virtual_fields = $this->Application->getUnitOption($event->Prefix, 'VirtualFields'); #get virtual fields
-// $virtual_fields['UserName']['default'] = ''; #add/edit configuration
- $this->Application->setUnitOption($event->Prefix, 'VirtualFields', $virtual_fields); #save virtual fields
- }
-
- /**
- * Sets custom query for the list
- *
- * @param kEvent $event
- */
- function SetCustomQuery(&$event)
- {
- parent::SetCustomQuery($event);
-
- $object =& $event->getObject();
- /* @var $object kDBList */
-
- # identifying event based on special and setting filter
- if ($event->Special == 'custom-special') {
-// $object->addFilter('primary_filter', '%1$s.Status = ' . STATUS_DISABLED);
- }
-
- # identifying event based not admin condition and setting filter
- if (!$this->Application->isAdminUser) {
-// $object->addFilter('status_filter', '%1$s.Status = ' . STATUS_ACTIVE);
- }
- }
-
- /**
- * Before new item created
- *
- * @param kEvent $event
- */
- function OnBeforeItemCreate(&$event)
- {
- parent::OnBeforeItemCreate($event);
-
-
- }
-
- /**
- * Before existing item updated
- *
- * @param kEvent $event
- */
- function OnBeforeItemUpdate(&$event)
- {
- parent::OnBeforeItemUpdate($event);
-
-
- }
-
- /**
- * Before item deleted
- *
- * @param kEvent $event
- */
- function OnBeforeItemDelete(&$event)
- {
- parent::OnBeforeItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnBeforeItemLoad(&$event)
- {
- parent::OnBeforeItemLoad($event);
-
-
- }
-
-
- /**
- * After new item created
- *
- * @param kEvent $event
- */
- function OnAfterItemCreate(&$event)
- {
- parent::OnAfterItemCreate($event);
-
-
- }
-
- /**
- * After existing item updated
- *
- * @param kEvent $event
- */
- function OnAfterItemUpdate(&$event)
- {
- parent::OnAfterItemUpdate($event);
-
-
- }
-
- /**
- * After item deleted
- *
- * @param kEvent $event
- */
- function OnAfterItemDelete(&$event)
- {
- parent::OnAfterItemDelete($event);
-
-
- }
-
- /**
- * After item loaded
- *
- * @param kEvent $event
- */
- function OnAfterItemLoad(&$event)
- {
- parent::OnAfterItemLoad($event);
-
-
- }
-
- }
+<?php
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ /**
+ * Extends default ArticlesEventHandler class
+ *
+ */
+ class EArticleEventHandler extends ArticlesEventHandler {
+
+ /**
+ * Allows to override standard permission mapping
+ *
+ */
+ function mapPermissions()
+ {
+ parent::mapPermissions();
+
+ $permissions = Array (
+ # admin
+ 'OnCustomEvent1' => Array ('self' => true),
+
+ # front
+ 'OnCustomEvent2' => Array ('self' => true),
+ );
+
+ $this->permMapping = array_merge($this->permMapping, $permissions);
+ }
+
+ /**
+ * Permission exceptions
+ *
+ * @param kEvent $event
+ */
+ function CheckPermission(&$event)
+ {
+ $skip_permissions_check_events = Array (
+ 'OnAnotherCustomEvent',
+ );
+
+ if ( in_array($event->Name, $skip_permissions_check_events) ) {
+ return true;
+ }
+
+ return parent::CheckPermission($event);
+ }
+
+ /**
+ * Updates structure config
+ *
+ * @param kEvent $event
+ */
+ function OnAfterConfigRead(&$event)
+ {
+ parent::OnAfterConfigRead($event);
+
+ # 1. Regular Fields from /in-news/units/articles/articles_config.php
+ $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); #get regular fields
+// $fields['Status']['default'] = STATUS_ACTIVE; #add/edit configuration (make default = STATUS_ACTIVE)
+ $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); #save fields
+
+ # 2. Virtual Fields from /in-news/units/articles/articles_config.php
+ $virtual_fields = $this->Application->getUnitOption($event->Prefix, 'VirtualFields'); #get virtual fields
+// $virtual_fields['UserName']['default'] = ''; #add/edit configuration
+ $this->Application->setUnitOption($event->Prefix, 'VirtualFields', $virtual_fields); #save virtual fields
+ }
+
+ /**
+ * Sets custom query for the list
+ *
+ * @param kEvent $event
+ */
+ function SetCustomQuery(&$event)
+ {
+ parent::SetCustomQuery($event);
+
+ $object =& $event->getObject();
+ /* @var $object kDBList */
+
+ # identifying event based on special and setting filter
+ if ($event->Special == 'custom-special') {
+// $object->addFilter('primary_filter', '%1$s.Status = ' . STATUS_DISABLED);
+ }
+
+ # identifying event based not admin condition and setting filter
+ if (!$this->Application->isAdminUser) {
+// $object->addFilter('status_filter', '%1$s.Status = ' . STATUS_ACTIVE);
+ }
+ }
+
+ /**
+ * Before new item created
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemCreate(&$event)
+ {
+ parent::OnBeforeItemCreate($event);
+
+
+ }
+
+ /**
+ * Before existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemUpdate(&$event)
+ {
+ parent::OnBeforeItemUpdate($event);
+
+
+ }
+
+ /**
+ * Before item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemDelete(&$event)
+ {
+ parent::OnBeforeItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnBeforeItemLoad(&$event)
+ {
+ parent::OnBeforeItemLoad($event);
+
+
+ }
+
+
+ /**
+ * After new item created
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemCreate(&$event)
+ {
+ parent::OnAfterItemCreate($event);
+
+
+ }
+
+ /**
+ * After existing item updated
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemUpdate(&$event)
+ {
+ parent::OnAfterItemUpdate($event);
+
+
+ }
+
+ /**
+ * After item deleted
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemDelete(&$event)
+ {
+ parent::OnAfterItemDelete($event);
+
+
+ }
+
+ /**
+ * After item loaded
+ *
+ * @param kEvent $event
+ */
+ function OnAfterItemLoad(&$event)
+ {
+ parent::OnAfterItemLoad($event);
+
+
+ }
+
+ }
Property changes on: branches/1.2.x/units/sections/e_article_eh.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_category_tp.php
===================================================================
--- branches/1.2.x/units/sections/e_category_tp.php (revision 14249)
+++ branches/1.2.x/units/sections/e_category_tp.php (revision 14250)
@@ -1,28 +1,28 @@
-<?php
-
- defined('FULL_PATH') or die('restricted access!');
-
- /**
- * Extends default CategoriesTagProcessor class
- *
- */
- class ECategoryTagProcessor extends CategoriesTagProcessor {
-
- /**
- * Adding custom processing to existing Field method
- *
- * @param Array $params
- * @return string
- */
- function FormattedField($params)
- {
- // get from parent
- $o = parent::Field($params);
-
- // do some custom stuff here
- $o = trim($o);
-
- return $o;
- }
-
- }
+<?php
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ /**
+ * Extends default CategoriesTagProcessor class
+ *
+ */
+ class ECategoryTagProcessor extends CategoriesTagProcessor {
+
+ /**
+ * Adding custom processing to existing Field method
+ *
+ * @param Array $params
+ * @return string
+ */
+ function FormattedField($params)
+ {
+ // get from parent
+ $o = parent::Field($params);
+
+ // do some custom stuff here
+ $o = trim($o);
+
+ return $o;
+ }
+
+ }
Property changes on: branches/1.2.x/units/sections/e_category_tp.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_link_tp.php
===================================================================
--- branches/1.2.x/units/sections/e_link_tp.php (revision 14249)
+++ branches/1.2.x/units/sections/e_link_tp.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_link_tp.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_user_tp.php
===================================================================
--- branches/1.2.x/units/sections/e_user_tp.php (revision 14249)
+++ branches/1.2.x/units/sections/e_user_tp.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_user_tp.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/custom_eh.php
===================================================================
--- branches/1.2.x/units/sections/custom_eh.php (revision 14249)
+++ branches/1.2.x/units/sections/custom_eh.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/custom_eh.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/sections/e_product_tp.php
===================================================================
--- branches/1.2.x/units/sections/e_product_tp.php (revision 14249)
+++ branches/1.2.x/units/sections/e_product_tp.php (revision 14250)
Property changes on: branches/1.2.x/units/sections/e_product_tp.php
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/units/.htaccess
===================================================================
--- branches/1.2.x/units/.htaccess (revision 14249)
+++ branches/1.2.x/units/.htaccess (revision 14250)
Property changes on: branches/1.2.x/units/.htaccess
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Index: branches/1.2.x/admin_templates/widgets/widget_edit.tpl
===================================================================
--- branches/1.2.x/admin_templates/widgets/widget_edit.tpl (revision 14249)
+++ branches/1.2.x/admin_templates/widgets/widget_edit.tpl (revision 14250)
Property changes on: branches/1.2.x/admin_templates/widgets/widget_edit.tpl
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Index: branches/1.2.x/admin_templates/widgets/widget_list.tpl
===================================================================
--- branches/1.2.x/admin_templates/widgets/widget_list.tpl (revision 14249)
+++ branches/1.2.x/admin_templates/widgets/widget_list.tpl (revision 14250)
Property changes on: branches/1.2.x/admin_templates/widgets/widget_list.tpl
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Index: branches/1.2.x/install/install_order.txt
===================================================================
--- branches/1.2.x/install/install_order.txt (revision 14249)
+++ branches/1.2.x/install/install_order.txt (revision 14250)
Property changes on: branches/1.2.x/install/install_order.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.2.x/install/module_info.xml
===================================================================
--- branches/1.2.x/install/module_info.xml (revision 14249)
+++ branches/1.2.x/install/module_info.xml (revision 14250)
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="utf-8"?>
-<module_info>
- <name>Custom</name>
- <description>Development Kit</description>
- <image>modules/custom/install/img/icon_development_kit.gif</image>
+<?xml version="1.0" encoding="utf-8"?>
+<module_info>
+ <name>Custom</name>
+ <description>Development Kit</description>
+ <image>modules/custom/install/img/icon_development_kit.gif</image>
</module_info>
\ No newline at end of file
Property changes on: branches/1.2.x/install/module_info.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.2.x/install/upgrades.php
===================================================================
--- branches/1.2.x/install/upgrades.php (revision 14249)
+++ branches/1.2.x/install/upgrades.php (revision 14250)
@@ -1,50 +1,50 @@
-<?php
-/**
-* @version $Id$
-* @package Custom
-* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
-* @license GNU/GPL
-* In-Portal is Open Source software.
-* This means that this software may have been modified pursuant
-* the GNU General Public License, and as distributed it includes
-* or is derivative of works licensed under the GNU General Public License
-* or other free or open source software licenses.
-* See http://www.in-portal.org/license for copyright notices and details.
-*/
-
- defined('FULL_PATH') or die('restricted access!');
-
- $upgrade_class = 'CustomUpgrades';
-
- /**
- * Class, that holds all upgrade scripts for "Custom" module
- *
- */
- class CustomUpgrades extends kUpgradeHelper {
-
- public function __construct()
- {
- parent::__construct();
-
- $this->dependencies = Array (
- '1.0.0' => Array ('Core' => '5.0.0'),
- '1.0.1' => Array ('Core' => '5.0.1'),
- '1.0.2-B1' => Array ('Core' => '5.0.2-B1'),
- '1.0.2-B2' => Array ('Core' => '5.0.2-B2'),
- '1.0.2-RC1' => Array ('Core' => '5.0.2-RC1'),
- '1.0.2' => Array ('Core' => '5.0.2'),
- '1.0.3-B1' => Array ('Core' => '5.0.3-B1'),
- '1.0.3-RC1' => Array ('Core' => '5.0.3-RC1'),
- '1.0.3' => Array ('Core' => '5.0.3'),
- '1.0.4-B1' => Array ('Core' => '5.0.4-B1'),
- '1.0.4' => Array ('Core' => '5.0.4'),
- '1.1.0-B1' => Array ('Core' => '5.1.0-B1'),
- '1.1.0-B2' => 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'),
- );
- }
- }
+<?php
+/**
+* @version $Id$
+* @package Custom
+* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
+* @license GNU/GPL
+* In-Portal is Open Source software.
+* This means that this software may have been modified pursuant
+* the GNU General Public License, and as distributed it includes
+* or is derivative of works licensed under the GNU General Public License
+* or other free or open source software licenses.
+* See http://www.in-portal.org/license for copyright notices and details.
+*/
+
+ defined('FULL_PATH') or die('restricted access!');
+
+ $upgrade_class = 'CustomUpgrades';
+
+ /**
+ * Class, that holds all upgrade scripts for "Custom" module
+ *
+ */
+ class CustomUpgrades extends kUpgradeHelper {
+
+ public function __construct()
+ {
+ parent::__construct();
+
+ $this->dependencies = Array (
+ '1.0.0' => Array ('Core' => '5.0.0'),
+ '1.0.1' => Array ('Core' => '5.0.1'),
+ '1.0.2-B1' => Array ('Core' => '5.0.2-B1'),
+ '1.0.2-B2' => Array ('Core' => '5.0.2-B2'),
+ '1.0.2-RC1' => Array ('Core' => '5.0.2-RC1'),
+ '1.0.2' => Array ('Core' => '5.0.2'),
+ '1.0.3-B1' => Array ('Core' => '5.0.3-B1'),
+ '1.0.3-RC1' => Array ('Core' => '5.0.3-RC1'),
+ '1.0.3' => Array ('Core' => '5.0.3'),
+ '1.0.4-B1' => Array ('Core' => '5.0.4-B1'),
+ '1.0.4' => Array ('Core' => '5.0.4'),
+ '1.1.0-B1' => Array ('Core' => '5.1.0-B1'),
+ '1.1.0-B2' => 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'),
+ );
+ }
+ }
Property changes on: branches/1.2.x/install/upgrades.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.2.x/install/install_schema.sql
===================================================================
--- branches/1.2.x/install/install_schema.sql (revision 14249)
+++ branches/1.2.x/install/install_schema.sql (revision 14250)
Property changes on: branches/1.2.x/install/install_schema.sql
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/1.2.x/install/upgrades.sql
===================================================================
--- branches/1.2.x/install/upgrades.sql (revision 14249)
+++ branches/1.2.x/install/upgrades.sql (revision 14250)
Property changes on: branches/1.2.x/install/upgrades.sql
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/1.2.x/install/english.lang
===================================================================
--- branches/1.2.x/install/english.lang (revision 14249)
+++ branches/1.2.x/install/english.lang (revision 14250)
Property changes on: branches/1.2.x/install/english.lang
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/1.2.x/install/.htaccess
===================================================================
--- branches/1.2.x/install/.htaccess (revision 14249)
+++ branches/1.2.x/install/.htaccess (revision 14250)
Property changes on: branches/1.2.x/install/.htaccess
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Index: branches/1.2.x/install/remove_schema.sql
===================================================================
--- branches/1.2.x/install/remove_schema.sql (revision 14249)
+++ branches/1.2.x/install/remove_schema.sql (revision 14250)
Property changes on: branches/1.2.x/install/remove_schema.sql
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.2.x/install/img/.htaccess
===================================================================
--- branches/1.2.x/install/img/.htaccess (revision 14249)
+++ branches/1.2.x/install/img/.htaccess (revision 14250)
Property changes on: branches/1.2.x/install/img/.htaccess
___________________________________________________________________
Modified: svn:eol-style
## -1 +1 ##
-native
\ No newline at end of property
+LF
\ No newline at end of property
Index: branches/1.2.x/install/install_data.sql
===================================================================
--- branches/1.2.x/install/install_data.sql (revision 14249)
+++ branches/1.2.x/install/install_data.sql (revision 14250)
Property changes on: branches/1.2.x/install/install_data.sql
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/1.2.x/install.php
===================================================================
--- branches/1.2.x/install.php (revision 14249)
+++ branches/1.2.x/install.php (revision 14250)
Property changes on: branches/1.2.x/install.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/1.2.x/README
===================================================================
--- branches/1.2.x/README (revision 14249)
+++ branches/1.2.x/README (revision 14250)
Property changes on: branches/1.2.x/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.2.x
===================================================================
--- branches/1.2.x (revision 14249)
+++ branches/1.2.x (revision 14250)
Property changes on: branches/1.2.x
___________________________________________________________________
Added: tsvn:autoprops
## -0,0 +1,19 ##
+*.php = svn:eol-style=LF;svn:keywords=Id
+*.tpl = svn:eol-style=LF
+*.sql = svn:eol-style=LF
+*.lang = svn:eol-style=LF
+*.sh = svn:eol-style=LF;svn:executable
+*.txt = svn:eol-style=LF
+*.html = svn:eol-style=LF
+*.htm = svn:eol-style=LF
+*.css = svn:eol-style=LF
+*.js = svn:eol-style=LF
+*.xml = svn:eol-style=LF
+.htaccess = svn:eol-style=LF
+.smsignore = svn:eol-style=LF
+COPYRIGHT = svn:eol-style=LF
+CREDITS = svn:eol-style=LF
+INSTALL = svn:eol-style=LF
+LICENSE = svn:eol-style=LF
+LICENSES = svn:eol-style=LF
+README = svn:eol-style=LF
\ No newline at end of property

Event Timeline