public function setTitle($string, $id, $type = 'main', $sequence = 1){
		$sequence = max(1, $sequence);
		// Add title
		$title = $this->dom->metadata->addChild('title', $this->h($string), Schemas::DC);
		$title['id'] = $id;
		// Add title meta
		$meta = $this->dom->metadata->addChild('meta', $type);
		$meta['refines'] = '#'.$id;
		$meta['property'] = 'title-type';
		// Add sequence
		$meta = $this->dom->metadata->addChild('meta', $sequence);
		$meta['refines'] = '#'.$id;
		$meta['property'] = 'display-seq';
	}
public function setTitle($string, $id, $type = 'main', $sequence = 1){
		$sequence = max(1, $sequence);
		// Add title
		$title = $this->dom->metadata->addChild('title', $this->h($string), Schemas::DC);
		$title['id'] = $id;
		// Add title meta
		$meta = $this->dom->metadata->addChild('meta', $type);
		$meta['refines'] = '#'.$id;
		$meta['property'] = 'title-type';
		// Add sequence
		$meta = $this->dom->metadata->addChild('meta', $sequence);
		$meta['refines'] = '#'.$id;
		$meta['property'] = 'display-seq';
	}
public function setTitle ( $ string , $ id , $ type = 'main' , $ sequence = 1 ) { $ sequence = max ( 1 , $ sequence ) ; // Add title $ title = $ this -> dom -> metadata -> addChild ( 'title' , $ this -> h ( $ string ) , Schemas :: DC ) ; $ title [ 'id' ] = $ id ; // Add title meta $ meta = $ this -> dom -> metadata -> addChild ( 'meta' , $ type ) ; $ meta [ 'refines' ] = '#' . $ id ; $ meta [ 'property' ] = 'title-type' ; // Add sequence $ meta = $ this -> dom -> metadata -> addChild ( 'meta' , $ sequence ) ; $ meta [ 'refines' ] = '#' . $ id ; $ meta [ 'property' ] = 'display-seq' ; }
Set title meta

@param string $string
@param string $id
@param string $type 1 of 'main', 'subtitle', 'short', 'collection', 'edition' and 'expanded'
@param int $sequence
Set title meta