These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * |
||
| 4 | */ |
||
| 5 | |||
| 6 | /** |
||
| 7 | * ActionsFlightlog class |
||
| 8 | * |
||
| 9 | * @author Laurent De Coninck <[email protected]> |
||
| 10 | */ |
||
| 11 | class ActionsFlightlog |
||
| 12 | { |
||
| 13 | |||
| 14 | public $results = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Add entry in search list |
||
| 18 | * |
||
| 19 | * @param array $searchInfo |
||
| 20 | * |
||
| 21 | * @return int |
||
| 22 | */ |
||
| 23 | public function addSearchEntry($searchInfo) |
||
| 24 | { |
||
| 25 | global $langs; |
||
| 26 | |||
| 27 | $langs->load("mymodule@flightlog"); |
||
| 28 | |||
| 29 | $this->results["flightlog"] = [ |
||
| 30 | 'label' => $langs->trans("Search flight"), |
||
| 31 | 'text' => $langs->trans("Search flight"), |
||
| 32 | 'url' => DOL_URL_ROOT . '/flightlog/list.php?mainmenu=flightlog&sall='.$searchInfo['search_boxvalue'] |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param $parameter |
||
| 38 | * @param $object |
||
| 39 | * @param $action |
||
| 40 | */ |
||
| 41 | public function showLinkToObjectBlock($parameter, $object, $action){ |
||
|
0 ignored issues
–
show
|
|||
| 42 | $this->results["flightlog_bbcvols"]= array('enabled'=>1, 'perms'=>1, 'label'=>'LinkToFlight', 'sql'=>"SELECT f.idBBC_vols as rowid, CONCAT('(ID : ',f.idBBC_vols, ') -',f.date, '-',f.lieuD, ' ; ', f.lieuA) as ref FROM ".MAIN_DB_PREFIX."bbc_vols as f WHERE YEAR(f.date) = (YEAR(NOW())) ORDER BY date DESC"); |
||
| 43 | |||
| 44 | } |
||
| 45 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.