fix deprecated constructor names

This commit is contained in:
Ralf Becker 2016-03-27 09:31:42 +00:00
parent c81884e622
commit baec50fe92
9 changed files with 26 additions and 44 deletions

View File

@ -58,7 +58,7 @@ class ajax_select_widget
private $debug = false;
function ajax_select_widget($ui='')
function __construct($ui='')
{
switch($ui)

View File

@ -66,7 +66,7 @@ class date_widget
*
* @param string $ui '' for html
*/
function date_widget($ui)
function __construct($ui)
{
if ($ui == 'html')
{

View File

@ -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

View File

@ -96,16 +96,6 @@ class link_widget
*/
const LIMIT_LINKS = 1000;
/**
* Constructor of the extension
*
* @param string $ui '' for html
*/
function link_widget($ui='')
{
}
/**
* pre-processing of the extension
*

View File

@ -48,7 +48,7 @@
*
* @param string $ui '' for html
*/
function manual_widget($ui)
function __construct($ui)
{
$this->ui = $ui;
}

View File

@ -41,7 +41,7 @@
*
* @param string $ui '' for html
*/
function select_widget($ui)
function __construct($ui)
{
$this->ui = $ui;
}

View File

@ -75,7 +75,7 @@ class select_widget
*
* @param string $ui '' for html
*/
function select_widget($ui='')
function __construct($ui='')
{
foreach($this->monthnames as $k => $name)
{

View File

@ -41,21 +41,12 @@
*/
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

View File

@ -37,7 +37,7 @@ class tree_widget
*
* @param string $ui '' for html
*/
function tree_widget($ui)
function __construct($ui)
{
$this->ui = $ui;
}