Author: nathangray
New Revision: 55468
URL: http://svn.stylite.de/viewvc/egroupware?rev=55468&view=rev
Log:
- Fix some namespace issues breaking custom filter header
- Fix some copy+paste errors
Modified:
trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php
trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Customfilter.php
trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Filterheader.php
— trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php (original)
+++ trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php Mon Mar 21 21:36:12 2016
@@ -1,6 +1,6 @@
<?php
/**
- * EGroupware - eTemplate serverside implementation of the nextmatch filter header widget
+ * EGroupware - eTemplate serverside implementation of the nextmatch account filter header widget
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package api
@@ -18,7 +18,7 @@
/**
* Extend selectbox and change type so proper users / groups get loaded, according to preferences
*/
-class AccountFilter extends Widget\Select
+class Accountfilter extends Widget\Select
{
/**
* Parse and set extra attributes from xml in template object
@@ -32,4 +32,5 @@
$this->attrs['type'] = 'select-account';
}
-}
+}
+Customfilter::registerWidget(__NAMESPACE__.'\\Accountfilter', array('nextmatch-accountfilter'));
Modified: trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Customfilter.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Customfilter.php?rev=55468&r1=55467&r2=55468&view=diff
==============================================================================
--- trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Customfilter.php (original)
+++ trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Customfilter.php Mon Mar 21 21:36:12 2016
@@ -1,6 +1,6 @@
<?php
/**
- * EGroupware - eTemplate serverside implementation of the nextmatch filter header widget
+ * EGroupware - eTemplate serverside implementation of the nextmatch custom filter header widget
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package api
@@ -18,7 +18,7 @@
/**
* A filter widget that fakes another (select) widget and turns it into a nextmatch filter widget.
*/
-class NextmatchCustomFilter extends Widget\Transformer
+class Customfilter extends Widget\Transformer
{
protected $legacy_options = 'type,widget_options';
@@ -40,7 +40,7 @@
list($type) = explode('-',$this->attrs['type']);
if($type == 'select')
{
- if(in_array($this->attrs['type'], Select::$cached_types))
+ if(in_array($this->attrs['type'], Widget\Select::$cached_types))
{
$widget_type = $this->attrs['type'];
}
@@ -60,3 +60,4 @@
parent::beforeSendToClient($cname, $expand);
}
}
+Customfilter::registerWidget(__NAMESPACE__.'\\Customfilter', array('nextmatch-customfilter'));
Modified: trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Filterheader.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Filterheader.php?rev=55468&r1=55467&r2=55468&view=diff
==============================================================================
--- trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Filterheader.php (original)
+++ trunk/egroupware/api/src/Etemplate/Widget/Nextmatch/Filterheader.php Mon Mar 21 21:36:12 2016
@@ -20,4 +20,6 @@
*/
class Filterheader extends Widget\Select
{
-}
+}
+
+Customfilter::registerWidget(__NAMESPACE__.'\\Filterheader', array('nextmatch-filterheader'));
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs