4
* implements the Interaction resource type
6
* @author Jordi Boggiano <j.boggiano@seld.be>
8
class Dwoo_Template_Mahara_Interaction extends Dwoo_Template_Mahara
10
protected function resolveFileName(array $name, array $includePath)
14
$plugin_name = $name[0];
15
$plugin_path = $name[1];
17
$basedir = get_config('docroot') . 'interaction/' . $plugin_name . '/theme/';
19
foreach ($THEME->inheritance as $theme) {
20
$filename = $basedir . $theme . '/' . $plugin_path;
21
if (is_readable($filename)) {
22
array_unshift($includePath, $basedir . $theme . '/');
23
return array($plugin_path, $includePath);
27
throw new MaharaException('Artefact template could not be found : '.implode(':', $name));
b'\\ No newline at end of file'