1 | <?php |
||
33 | class Typo3Service |
||
34 | { |
||
35 | /** |
||
36 | * @var Sequenzer |
||
37 | */ |
||
38 | private $sequenzer; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $conf; |
||
44 | |||
45 | /** |
||
46 | * array of configured tables that should call the sequenzer |
||
47 | * |
||
48 | * @var array |
||
49 | */ |
||
50 | private $supportedTables; |
||
51 | |||
52 | /** |
||
53 | * @param Sequenzer $sequenzer |
||
54 | */ |
||
55 | public function __construct(Sequenzer $sequenzer) |
||
66 | |||
67 | /** |
||
68 | * sets the db link |
||
69 | * |
||
70 | * @param \mysqli|NULL $link |
||
71 | */ |
||
72 | public function setDbLink($link) |
||
76 | |||
77 | /** |
||
78 | * Modify a TYPO3 insert array (key -> value) , and adds the uid that should be forced during INSERT |
||
79 | * |
||
80 | * @param string $tableName |
||
81 | * @param array $fields_values |
||
82 | * @return array |
||
83 | */ |
||
84 | public function modifyInsertFields($tableName, array $fields_values) |
||
104 | |||
105 | /** |
||
106 | * If a table is configured to use the sequenzer |
||
107 | * |
||
108 | * @param string $tableName |
||
109 | * @return boolean |
||
110 | */ |
||
111 | public function needsSequenzer($tableName) |
||
118 | } |
||
119 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.