Beispiel #1
0
 public static function filterFromPost()
 {
     if (!isset($_POST['filter'])) {
         return '';
     }
     $name = $_POST['filter'];
     if (!in_array($name, self::$listNames)) {
         return '';
     }
     $list = new FieldList($name);
     $listArrays = array();
     foreach (self::$listNames as $listName) {
         if ($listName == $name) {
             continue;
         }
         $listArrays[] = $list->filteredArrayOf($listName);
     }
     return implode("\n", array_merge($listArrays[0], $listArrays[1]));
 }