Code

Add element adder
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Jan 2010 14:44:45 +0000 (14:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Jan 2010 14:44:45 +0000 (14:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15206 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc

index c81faeb5b305f6cbd7c7dcbc9fdfb06867b3c863..24aa956b0f670f5a1c39252a72d1a9dcf797d7df 100644 (file)
@@ -408,4 +408,19 @@ class sortableListing {
     }
   }
 
+
+  public function addEntry($entry, $displayEntry= null)
+  {
+    // Prefill with default value if not specified
+    if (!$displayEntry) {
+      $displayEntry= array($entry);
+    }
+
+    // Append to data and mapping
+    $this->data[]= $entry;
+    $this->displayData[]= $displayData;
+    $this->mapping[]= count($this->mapping);
+  }
+
+
 }