| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function exports(){ |
||
| 16 | $result=[]; |
||
| 17 | $config=Startup::getConfig(); |
||
| 18 | $models=CacheManager::getModels($config,true); |
||
| 19 | foreach ($models as $model){ |
||
| 20 | $tableExport=new TableExport($model); |
||
| 21 | $result[]=$tableExport->exports($this); |
||
| 22 | } |
||
| 23 | foreach ($this->manyToManys as $target=>$ManyToManyParser){ |
||
| 24 | $ManyToManyParser->init(); |
||
| 25 | $sqlExport=new SqlExport(); |
||
| 26 | $fields=[$ManyToManyParser->getFkField(),$ManyToManyParser->getMyFkField()]; |
||
| 27 | $result[]=$sqlExport->exports($target,$fields); |
||
| 28 | } |
||
| 29 | return \implode("\n", $result); |
||
| 30 | } |
||
| 31 | |||
| 38 |