Beispiel #1
0
 public function StringGroup($table, $mag_id, $tableget, $colomnget, $column, $value)
 {
     $item = array();
     foreach (parent::ViewTableWhere($table, 'mag_id', $mag_id, 0, 0) as $group) {
         $tmpName = parent::GetValue($value, $tableget, $colomnget, $group[$column]);
         $found = true;
         foreach ($item as $tmp) {
             if ($tmp == $tmpName) {
                 $found = false;
             }
         }
         if ($found) {
             $item[] = $tmpName;
         }
     }
     sort($item);
     $stringGroup = '';
     $itemCount = count($item);
     foreach ($item as $index => $tostring) {
         $stringGroup .= '<a href="' . self::BuildQuery(array('component' => 'translator', $tableget => $tostring)) . '">' . $tostring . '</a>';
         if ($itemCount > $index + 1) {
             $stringGroup .= ', ';
         }
     }
     return $stringGroup;
 }