'.$this->title.'
"'.$this->logline.'"
'.$this->returnNextShowing().$this->returnNextShowingIcon().''.$this->synopsis.'
'; if($this->featuring!=''){$nja.=''.$this->featuring.'
';} $nja.='class xmlData { var $xml; var $isSuccess; function __construct($file='') { // If our site file exists if(file_exists($file)) { libxml_use_internal_errors(true); $this->xml=simplexml_load_file($file); if($this->xml === false) { echo "Failed loading XML\n"; foreach(libxml_get_errors() as $error) { echo "\t", $error->message; // Fairly fatal } } else { $this->isSuccess=true; } } else {$this->errorMessage='XML file does not exist: '.$file;echo $this->errorMessage;exit();} // Fatal } } class film { var $filmpath; var $xmlTag,$title,$logline,$keyimage,$synopsis,$featuring,$gs,$gsimage; var $subimages,$projectimes; var $nextShowing,$nextShowingIcon,$showings; function __construct($xmlTag='undefined') { $this->filmpath=$GLOBALS['xml']->xml->filmpath.'/'.$xmlTag.'/'; $this->xmlTag=$xmlTag; $this->title=$GLOBALS['xml']->xml->$xmlTag->title; $this->cleanURL=$GLOBALS['xml']->xml->$xmlTag->cleanurl; $this->headtitle=$GLOBALS['xml']->xml->$xmlTag->headtitle; $this->logline=$GLOBALS['xml']->xml->$xmlTag->logline; $this->keyimage=$this->filmpath.$GLOBALS['xml']->xml->$xmlTag->keyimage; $this->synopsis=$GLOBALS['xml']->xml->$xmlTag->synopsis; $this->featuring=$GLOBALS['xml']->xml->$xmlTag->featuring; $this->gs=$GLOBALS['xml']->xml->$xmlTag->gs; $this->gsimage=$GLOBALS['xml']->xml->$xmlTag->gsimage; foreach($GLOBALS['xml']->xml->$xmlTag->images as $image) { // $this->subimages[]=$this->filmpath.$image; $this->subimages[(string)$image]['image']=$this->filmpath.$image; $this->subimages[(string)$image]['caption']=$image->attributes()->caption; } foreach($GLOBALS['xml']->xml->$xmlTag->projectitems as $item) { $this->projectitems[]=array((string)$item->item,(string)$item->entry); } $this->nextShowing=$GLOBALS['xml']->xml->$xmlTag->nextshowing; //$this->nextShowingIcon=$GLOBALS['xml']->xml->$xmlTag->nextshowing->attributes()->icon; foreach($GLOBALS['xml']->xml->$xmlTag->showings as $showing) { $this->showings[]=(string)$showing; } } function returnMyImages() { $myImages=''; foreach($this->subimages as $image) { // $myImages.='
'.$myItems.'
'; } function returnCleanURL() { return $this->cleanURL; } function returnHeadTitle() { return $this->headtitle; } function returnHeaderTitle() { return $this->title; } function returnLogline() { return $this->logline; } function returnGS() { if($this->gs != ''){return '';} } function returnGSImage() { if($this->gs != ''){return '';} } function returnNextShowing() { if($this->nextShowing != ''){return ''.$this->nextShowing.'
';} } function returnNextShowingIcon() { if($this->nextShowingIcon != ''){return ''.$this->nextShowing.'
'; foreach($this->showings as $showing) { $myShowings.=''.$showing.'
'; } return $myShowings; } function returnMyself() { $nja='"'.$this->logline.'"
'.$this->returnNextShowing().$this->returnNextShowingIcon().''.$this->synopsis.'
'; if($this->featuring!=''){$nja.=''.$this->featuring.'
';} $nja.='