Lines Matching defs:depends
38 $depends = p_get_metadata($ID, 'relation depends');
39 if (!empty($depends) && isset($depends['rendering'])) {
40 $this->addDependencies($cache, array_keys($depends['rendering']));
48 protected function addDependencies($cache, $depends)
51 if (!is_array($cache->depends)) {
52 $cache->depends = [];
54 if (!array_key_exists('files', $cache->depends)) {
55 $cache->depends['files'] = [];
58 foreach ($depends as $file) {
59 if (!in_array($file, $cache->depends['files']) && @file_exists($file)) {
60 $cache->depends['files'][] = $file;