1 | <?php |
||
18 | class Sources extends Base |
||
|
|||
19 | { |
||
20 | /** |
||
21 | * Get sources based on the indexFrom attribute and return them with the indexTo attribute. |
||
22 | * |
||
23 | * @param string $fieldType |
||
24 | * @param string|array $sources |
||
25 | * @param string $indexFrom |
||
26 | * @param string $indexTo |
||
27 | * |
||
28 | * @return array|string |
||
29 | */ |
||
30 | public function getMappedSources($fieldType, $sources, $indexFrom, $indexTo) |
||
42 | |||
43 | /** |
||
44 | * Gets a source by the attribute indexFrom, and returns it with attribute $indexTo. |
||
45 | * |
||
46 | * @TODO Break up and simplify this method |
||
47 | * |
||
48 | * @param string $fieldType |
||
49 | * @param string $source |
||
50 | * @param string $indexFrom |
||
51 | * @param string $indexTo |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getSource($fieldType, $source, $indexFrom, $indexTo) |
||
107 | } |
||
108 |