function getPresentationImages(Theme $theme)
{
Validation::notEmpty($theme, self::TAG_THEME);
$xml = $this->loadXML($this->toFullPath($theme, $this->themeConfigFileName));
$presentResources = array();
if ($xml != NULL) {
$nodes = $this->getNodes($xml, self::TAG_PRESENT);
foreach ($nodes as $node) {
/* @var $node \SimpleXMLElement */
$rsc = new Resource();
try {
$rsc->setName($this->readAttribute($node, self::ATTR_PRESENT_NAME));
$rsc->setPath($theme->getPath() . $this->readAttribute($node, self::ATTR_PRESENT_SRC));
$presentResources[] = $rsc;
} catch (XMLMissingAttribueException $e) {
$this->getErrorHandler()->error(ThemeErrors::XML_MISSING_ATTRIBUTE, $e->getAttributeName(), $node->getName());
}
}
}
return $presentResources;
}