[Fusionforge-commits] r10144 - trunk/src/common/widget
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Mon Jun 28 19:04:59 CEST 2010
Author: aljeux
Date: 2010-06-28 19:04:59 +0200 (Mon, 28 Jun 2010)
New Revision: 10144
Modified:
trunk/src/common/widget/Widget.class.php
Log:
Add initial code for adding free buttons in title section (widgets).
One warning (php5 only now) cleared.
Modified: trunk/src/common/widget/Widget.class.php
===================================================================
--- trunk/src/common/widget/Widget.class.php 2010-06-28 17:04:54 UTC (rev 10143)
+++ trunk/src/common/widget/Widget.class.php 2010-06-28 17:04:59 UTC (rev 10144)
@@ -61,6 +61,7 @@
var $content_id;
var $id;
var $hasPreferences;
+ var $buttons;
var $owner_id;
var $owner_type;
/**
@@ -101,6 +102,9 @@
function hasPreferences() {
return false;
}
+ function hasButtons() {
+ return false;
+ }
function updatePreferences(&$request) {
return true;
}
@@ -254,7 +258,7 @@
}
return $o;
}
- /* static */ function getCodendiWidgets($owner_type) {
+ static function getCodendiWidgets($owner_type) {
switch ($owner_type) {
case WidgetLayoutManager::OWNER_TYPE_USER:
$widgets = array('myadmin', 'mysurveys', 'myprojects', 'mybookmarks',
More information about the Fusionforge-commits
mailing list