Author: ralfbecker
New Revision: 55528
URL: http://svn.stylite.de/viewvc/egroupware?rev=55528&view=rev
Log:
fix deprecated constructor names
Modified:
trunk/etemplate/inc/class.ajax_select_widget.inc.php
trunk/etemplate/inc/class.date_widget.inc.php
trunk/etemplate/inc/class.etemplate_widget.inc.php
trunk/etemplate/inc/class.link_widget.inc.php
trunk/etemplate/inc/class.manual_widget.inc.php
trunk/etemplate/inc/class.path_widget.inc.php
trunk/etemplate/inc/class.select_widget.inc.php
trunk/etemplate/inc/class.tab_widget.inc.php
trunk/etemplate/inc/class.tree_widget.inc.php
— trunk/etemplate/inc/class.ajax_select_widget.inc.php (original)
+++ trunk/etemplate/inc/class.ajax_select_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -58,7 +58,7 @@
private $debug = false;
- function ajax_select_widget($ui=’’)
— trunk/etemplate/inc/class.date_widget.inc.php (original)
+++ trunk/etemplate/inc/class.date_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -66,7 +66,7 @@
*
* @param string $ui ‘’ for html
*/
- function date_widget($ui)
- function __construct($ui)
{
if ($ui == ‘html’)
{
— trunk/etemplate/inc/class.etemplate_widget.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -12,13 +12,14 @@
*/
use EGroupware\Api\Etemplate\Widget;
+use EGroupware\Api\Etemplate;
/**
- eTemplate widget baseclass
-
-
@deprecated use Api\Etemplate\Widget
*/
-class etemplate_widget extends Widget {}
+class etemplate_widget extends Etemplate\Widget {}
/**
- eTemplate Extension: Entry widget
— trunk/etemplate/inc/class.link_widget.inc.php (original)
+++ trunk/etemplate/inc/class.link_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -97,16 +97,6 @@
const LIMIT_LINKS = 1000;
/**
-
- Constructor of the extension
-
-
-
@param string $ui ‘’ for html
- */
- function link_widget($ui=’’)
- {
-
- }
-
- /**
- pre-processing of the extension
-
- This function is called before the extension gets rendered
— trunk/etemplate/inc/class.manual_widget.inc.php (original)
+++ trunk/etemplate/inc/class.manual_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -16,7 +16,7 @@
*
* With the value or the name of the widget, you can specify a certain manual page
* (eg. ManualAddressbook). Additional params can be past to the manual app with
-
- $GLOBALS[‘egw_info’][‘flags’][‘params’][‘manual’].
-
- $GLOBALS[‘egw_info’][‘flags’][‘params’][‘manual’].
- If no page is set after that two mechanisms the URL will contains the referer.
-
-
@package etemplate
@@ -26,7 +26,7 @@
*/
class manual_widget
{
@@ -48,7 +48,7 @@
*
* @param string $ui ‘’ for html
*/
@@ -60,7 +60,7 @@
*
* @param string $name form-name of the control
* @param mixed &$value value / existing content, can be modified
-
* @param array &$cell array with the widget, can be modified for ui-independent widgets
* @param array &$readonlys names of widgets as key, to be made readonly
* @param mixed &$extension_data data the extension can store persisten between pre- and post-process
* @param object &$tmpl reference to the template we belong too
@@ -89,7 +89,7 @@
$cell[‘onclick’] = $GLOBALS[‘egw’]->framework->open_manual_js($link).’; return false;’;
if (!$cell[‘label’]) $cell[‘label’] = ‘Manual’;
if (!$cell[‘help’]) $cell[‘help’] = /lang(/‘Open the online help.’/)/;
— trunk/etemplate/inc/class.path_widget.inc.php (original)
+++ trunk/etemplate/inc/class.path_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -12,7 +12,7 @@
/**
* eTemplate Extension: widget to display a path with clickable components
*
-
- The value is an array with id => label pairs.
-
- The value is an array with id => label pairs.
- Returned will be the id of the clicked component or nothing at all.
-
-
@package etemplate
@@ -22,7 +22,7 @@
*/
class path_widget
{
@@ -41,7 +41,7 @@
*
* @param string $ui ‘’ for html
*/
@@ -53,7 +53,7 @@
*
* @param string $name form-name of the control
* @param mixed &$value value / existing content, can be modified
-
* @param array &$cell array with the widget, can be modified for ui-independent widgets
* @param array &$readonlys names of widgets as key, to be made readonly
* @param mixed &$extension_data data the extension can store persisten between pre- and post-process
* @param object &$tmpl reference to the template we belong too
@@ -81,7 +81,7 @@
$sep[‘label’] = $seperator;
soetemplate::add_child($cell,$sep);
unset($sep);
@@ -89,7 +89,7 @@
$button[‘help’] = $cell[‘help’] ? $cell[‘help’] : lang($label)."($i)";
soetemplate::add_child($cell,$button);
unset($button);
@@ -113,7 +113,7 @@
function post_process($name,&$value,&$extension_data,&$loop,&$tmpl,$value_in)
{
$value = ‘’;
— trunk/etemplate/inc/class.select_widget.inc.php (original)
+++ trunk/etemplate/inc/class.select_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -75,7 +75,7 @@
*
* @param string $ui ‘’ for html
*/
- function select_widget($ui=’’)
- function __construct($ui=’’)
{
foreach($this->monthnames as $k => $name)
{
— trunk/etemplate/inc/class.tab_widget.inc.php (original)
+++ trunk/etemplate/inc/class.tab_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -42,20 +42,11 @@
var $human_name = ‘Tabs’; // this is the name for the editor
/**
-
* Constructor of the extension
-
*
-
* @param string $ui '' for html
-
*/
-
function tab_widget($ui)
-
{
-
}
-
-
/**
* pre-processing of the extension
*
* This function is called before the extension gets rendered
*
-
* @param string $name form-name of the control
-
* @param string $form_name form-name of the control
* @param mixed &$value value / existing content, can be modified
* @param array &$cell array with the widget, can be modified for ui-independent widgets
* @param array &$readonlys names of widgets as key, to be made readonly
— trunk/etemplate/inc/class.tree_widget.inc.php (original)
+++ trunk/etemplate/inc/class.tree_widget.inc.php Sun Mar 27 11:31:42 2016
@@ -15,7 +15,7 @@
*/
class tree_widget
{
- /**
- exported methods of this class
-
@var array
*/
@@ -37,7 +37,7 @@
-
-
@param string $ui ‘’ for html
*/
- function tree_widget($ui)
- function __construct($ui)
{
$this->ui = $ui;
}
@@ -49,7 +49,7 @@
-
-
@param string $name form-name of the control
-
@param mixed &$value value / existing content, can be modified
-
-
@param array &$cell array with the widget, can be modified for ui-independent widgets
-
-
@param array &$cell array with the widget, can be modified for ui-independent widgets
-
@param array &$readonlys names of widgets as key, to be made readonly
-
@param mixed &$extension_data data the extension can store persisten between pre- and post-process
-
@param etemplate &$tmpl reference to the template we belong too
@@ -134,10 +134,10 @@
$onCheck = ‘onCheck_’.$tree_id;
$script .= "
function $onCheck(id) {
- function $onNodeSelect(id) {
- function $onNodeSelect(id) {
$tree_id.setCheck(id,$tree_id.isItemChecked(id) ? 0 : 1);
$onCheck(id);
}
@@ -146,7 +146,7 @@
else // single selection
{
$script .= "
- function $onNodeSelect(id) {
-
function $onNodeSelect(id) {
document.getElementsByName(’$name’)[0].value=id;
$onclick;
}
@@ -161,7 +161,7 @@
return True; // extra Label Ok
}
- /**
- postprocessing method, called after the submission of the form
-
@@ -182,7 +182,7 @@
function post_process($name,&$value,&$extension_data,&$loop,&$tmpl,$value_in)
{
//echo “value_in”; _debug_array($value_in);
-
if (!preg_match('/^[0-9\\/'.($extension_data['multiple']?',':'').']*$/',$value_in)) return false; // guard against xss and other malious content
$value = $extension_data['multiple'] ? explode(',',$value_in) : $value_in;
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