Code

Updated methods to have filter instances and attribute replacements
[gosa.git] / include / class_ObjectList.inc
index 51d59ec51aeed61d84627eccd2dc8cfb3539deb6..9185c7b42713f98af0b0c5ce2456180c3318fdc3 100644 (file)
@@ -34,24 +34,6 @@ class ObjectList implements IteratorAggregate {
    */
        private $objects;
 
-  /*!
-    \brief List headline
-
-    String that keeps the desired headline. Returned by ObjectList::getHeadline.
-
-    \sa ObjectList::getHeadline
-   */
-  private $headline;
-
-  /*!
-    \brief List footer
-
-    String that keeps the desired footer. Returned by ObjectList::getFooter.
-
-    \sa ObjectList::getFooter
-   */
-  private $footer;
-
   /*!
     \brief Config
 
@@ -87,12 +69,12 @@ class ObjectList implements IteratorAggregate {
         */
        private function load(){
     # Crap filling
-    $this->objects= array( array("i", "Testobjekt mit was auch immer", "UPS"),
-                           array("i", "Noch ein Testobjekt", "UPS"),
-                           array("d", "Ein drittes Testobjekt", "UL"));
-    $this->headline= "|{16px}|{90%}Name|{64px}Actions|";
-
-    $this->footer= "Statistical footer";
+    $this->objects= array(
+                            array("dn" => "cn=Demo client,ou=systems,dc=gonicus,dc=de", "cn" => "Demo client", "_icon" => "s_terminal.png", "_actions" => "ED", "objectClass" => array('gotoWorkstation')),
+                            array("dn" => "cn=Demo client2,ou=systems,dc=gonicus,dc=de", "cn" => "Demo client2", "_icon" => "s_terminal.png", "_actions" => "ED", "objectClass" => array('gotoWorkstation')),
+                            array("dn" => "cn=Printer,ou=systems,dc=gonicus,dc=de", "cn" => "Printer", "_icon" => "s_printer.png", "_actions" => "ED", "objectClass" => array('gotoPrinter')),
+                            array("dn" => "cn=Server,ou=systems,dc=gonicus,dc=de", "cn" => "Server", "_icon" => "s_server.png", "_actions" => "ED", "objectClass" => array("goServer")),
+                           );
        }
 
 
@@ -117,28 +99,6 @@ class ObjectList implements IteratorAggregate {
     return new ObjectListIterator($this->objects);
   }
 
-
-       /*! \brief Function to get the desired headline
-
-      Return the property of headline to the public world.
-
-      \return headline for current list
-        */
-  public function getHeadline() {
-    return $this->headline;
-  }
-
-
-       /*! \brief Function to get the desired footer
-
-      Return the property of footer to the public world.
-
-      \return headline for current list
-        */
-  public function getFooter() {
-    return $this->footer;
-  }
-
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: