1 | <?php |
||
22 | class FixturesLoader |
||
23 | { |
||
24 | /** |
||
25 | * @param string $type |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | 32 | public static function getExecutorClass($type) |
|
35 | |||
36 | /** |
||
37 | * Get file path of the SQLite database. |
||
38 | * |
||
39 | * @param Connection $connection |
||
40 | * |
||
41 | * @return string $name |
||
42 | */ |
||
43 | 31 | public static function getNameParameter(Connection $connection) |
|
59 | |||
60 | /** |
||
61 | * This function finds the time when the data blocks of a class definition |
||
62 | * file were being written to, that is, the time when the content of the |
||
63 | * file was changed. |
||
64 | * |
||
65 | * @param string $class The fully qualified class name of the fixture class to |
||
66 | * check modification date on. |
||
67 | * |
||
68 | * @return \DateTime|null |
||
69 | */ |
||
70 | 3 | protected static function getFixtureLastModified($class) |
|
84 | |||
85 | /** |
||
86 | * Determine if the Fixtures that define a database backup have been |
||
87 | * modified since the backup was made. |
||
88 | * |
||
89 | * @param array $classNames The fixture classnames to check |
||
90 | * @param string $backup The fixture backup SQLite database file path |
||
91 | * |
||
92 | * @return bool TRUE if the backup was made since the modifications to the |
||
93 | * fixtures; FALSE otherwise |
||
94 | */ |
||
95 | 7 | public static function isBackupUpToDate(array $classNames, $backup, $container) |
|
113 | |||
114 | /** |
||
115 | * Locate fixture files. |
||
116 | * |
||
117 | * @param array $paths |
||
118 | * |
||
119 | * @return array $files |
||
120 | */ |
||
121 | 6 | public static function locateResources($paths, $container) |
|
138 | |||
139 | /** |
||
140 | * Retrieve Doctrine DataFixtures loader. |
||
141 | * |
||
142 | * @param ContainerInterface $container |
||
143 | * @param array $classNames |
||
144 | * |
||
145 | * @return Loader |
||
146 | */ |
||
147 | 32 | public static function getFixtureLoader(ContainerInterface $container, array $classNames) |
|
166 | |||
167 | /** |
||
168 | * Purge database. |
||
169 | * |
||
170 | * @param ObjectManager $om |
||
171 | * @param string $type |
||
172 | * @param int $purgeMode |
||
173 | * @param string $executorClass |
||
174 | * @param ProxyReferenceRepository $referenceRepository |
||
175 | * |
||
176 | * @return \Doctrine\Common\DataFixtures\Executor\ORMExecutor |
||
177 | */ |
||
178 | 5 | public static function purgeDatabase(ObjectManager $om, $type, $purgeMode, |
|
205 | |||
206 | /** |
||
207 | * Load a data fixture class. |
||
208 | * |
||
209 | * @param Loader $loader |
||
210 | * @param string $className |
||
211 | */ |
||
212 | 10 | protected static function loadFixtureClass($loader, $className) |
|
230 | } |
||
231 |