| 1 | <?php |
||
| 7 | trait FileAppenderTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Append the filename to the array of paths. |
||
| 11 | * |
||
| 12 | * @param array $paths The paths to append to. |
||
| 13 | * @param string $file The filename. |
||
| 14 | * @return array The paths with the file name appended. |
||
| 15 | */ |
||
| 16 | protected function _appendFileToPaths(array $paths, $file) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Joins two path segments together. |
||
| 31 | * |
||
| 32 | * @param string $start The starting segment. |
||
| 33 | * @param string $end The ending segment. |
||
| 34 | * @return string The joined segments. |
||
| 35 | */ |
||
| 36 | abstract protected function _joinPaths($start, $end); |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Checks to see if a path is just a single atom (no directory). |
||
| 40 | * |
||
| 41 | * @param string $path The path to check. |
||
| 42 | * @return boolean True if it's an atom, false otherwise. |
||
| 43 | */ |
||
| 44 | abstract protected function _isAtom($path); |
||
| 45 | } |
||
| 46 |