Beispiel #1
0
 function build_source_row($id)
 {
     $db_functions_obj = new DbFunctions();
     $helper_obj = new Helper();
     $category = $db_functions_obj->get_source_by_id($id);
     $class = $helper_obj->table_row_class($i);
     $output = "<tr class='{$class}' id='category_{$category['id']}'>\n                          <td>" . $category['id'] . "</td>\n                          <td>" . $category['name'] . "</td>\n                          <td>" . $category['link'] . "</td>\n                       </tr>";
     return $output;
 }