Adding Haxe
[order_line_extra.git] / haxe / ItemScheduler.hx
1 import php.Lib;
2 class ItemScheduler {
3         var stock_id:String;
4         function new(stock_id: String) {
5                 this.stock_id = stock_id;
6         }
7
8         function tableHeader() {
9                 return ["A", "B", "C"];
10         }
11
12         function generateTable(): Void {
13                 for(schedule in this.schedules()) {
14                         this.formatRow(schedule);
15                 }
16         }
17
18         function formatRow(row) {
19                 php.Lib.print('<tr><td>helli</td></tr>');
20                 
21         }
22
23         function schedules() {
24                 return ["a", "b", "c"];
25         }
26 }
27
28