From 767bcf74138bd6128121571e44ee3bd658388ac1 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 12 Nov 2007 13:36:52 +0000 Subject: [PATCH] Defined interface git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7774 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ObjectListViewport.inc | 4 ++-- include/interface_GOsaGuiElement.inc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/class_ObjectListViewport.inc b/include/class_ObjectListViewport.inc index f46744c73..08c5632bd 100644 --- a/include/class_ObjectListViewport.inc +++ b/include/class_ObjectListViewport.inc @@ -23,7 +23,7 @@ class ObjectListViewportException extends Exception { \sa ObjectList */ -class ObjectListViewport { +class ObjectListViewport implements GOsaGuiElement { /* Internal variable for color alternation */ protected $colorAlternator= 0; @@ -101,7 +101,7 @@ class ObjectListViewport { \return bool for if changes are present or not */ - private function process(){ + public function process(){ /* TODO: process input */ return FALSE; diff --git a/include/interface_GOsaGuiElement.inc b/include/interface_GOsaGuiElement.inc index 7957dbafe..136742b2e 100644 --- a/include/interface_GOsaGuiElement.inc +++ b/include/interface_GOsaGuiElement.inc @@ -5,11 +5,12 @@ \version 1.00 \date 2007/11/02 - This interface describes what we need to filter a string + This interface describes what we need to display an element in the GUI for use with list objects. */ interface GOsaGuiElement { - static public function filter($string); + public function process(); + public function render(); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2