public function getSuggestedContentType()
	{
		if (count($this->_contentType) == 0)
		{
			$this->_contentType["xsl"] = $this->getXsl();
			$this->_contentType["content-type"] = "text/html";
			$this->_contentType["content-disposition"] = "";
			$this->_contentType["extension"] = "";
			if ($this->get("xmlnuke.CHECKCONTENTTYPE"))
			{
				$filename = new AnydatasetFilenameProcessor("contenttype");
				$anydataset = new AnyDataset($filename->FullQualifiedNameAndPath());
				$itf = new IteratorFilter();
				$itf->addRelation("xsl",  Relation::EQUAL, $this->getXsl());
				$it = $anydataset->getIterator($itf);
				if ($it->hasNext())
				{
					$sr = $it->moveNext();
					$this->_contentType = $sr->getOriginalRawFormat();
				}
				else
				{
					$filename = new AnydatasetSetupFilenameProcessor("contenttype");
					$anydataset = new AnyDataset($filename->FullQualifiedNameAndPath());
					$itf = new IteratorFilter();
					$itf->addRelation("xsl",  Relation::EQUAL, $this->getXsl());
					$it = $anydataset->getIterator($itf);
					if ($it->hasNext())
					{
						$sr = $it->moveNext();
						$this->_contentType = $sr->getOriginalRawFormat();
					}
				}
			}
		}
		return ($this->_contentType);
	}
public function getSuggestedContentType()
	{
		if (count($this->_contentType) == 0)
		{
			$this->_contentType["xsl"] = $this->getXsl();
			$this->_contentType["content-type"] = "text/html";
			$this->_contentType["content-disposition"] = "";
			$this->_contentType["extension"] = "";
			if ($this->get("xmlnuke.CHECKCONTENTTYPE"))
			{
				$filename = new AnydatasetFilenameProcessor("contenttype");
				$anydataset = new AnyDataset($filename->FullQualifiedNameAndPath());
				$itf = new IteratorFilter();
				$itf->addRelation("xsl",  Relation::EQUAL, $this->getXsl());
				$it = $anydataset->getIterator($itf);
				if ($it->hasNext())
				{
					$sr = $it->moveNext();
					$this->_contentType = $sr->getOriginalRawFormat();
				}
				else
				{
					$filename = new AnydatasetSetupFilenameProcessor("contenttype");
					$anydataset = new AnyDataset($filename->FullQualifiedNameAndPath());
					$itf = new IteratorFilter();
					$itf->addRelation("xsl",  Relation::EQUAL, $this->getXsl());
					$it = $anydataset->getIterator($itf);
					if ($it->hasNext())
					{
						$sr = $it->moveNext();
						$this->_contentType = $sr->getOriginalRawFormat();
					}
				}
			}
		}
		return ($this->_contentType);
	}
public function getSuggestedContentType ( ) { if ( count ( $ this -> _contentType ) == 0 ) { $ this -> _contentType [ "xsl" ] = $ this -> getXsl ( ) ; $ this -> _contentType [ "content-type" ] = "text/html" ; $ this -> _contentType [ "content-disposition" ] = "" ; $ this -> _contentType [ "extension" ] = "" ; if ( $ this -> get ( "xmlnuke.CHECKCONTENTTYPE" ) ) { $ filename = new AnydatasetFilenameProcessor ( "contenttype" ) ; $ anydataset = new AnyDataset ( $ filename -> FullQualifiedNameAndPath ( ) ) ; $ itf = new IteratorFilter ( ) ; $ itf -> addRelation ( "xsl" , Relation :: EQUAL , $ this -> getXsl ( ) ) ; $ it = $ anydataset -> getIterator ( $ itf ) ; if ( $ it -> hasNext ( ) ) { $ sr = $ it -> moveNext ( ) ; $ this -> _contentType = $ sr -> getOriginalRawFormat ( ) ; } else { $ filename = new AnydatasetSetupFilenameProcessor ( "contenttype" ) ; $ anydataset = new AnyDataset ( $ filename -> FullQualifiedNameAndPath ( ) ) ; $ itf = new IteratorFilter ( ) ; $ itf -> addRelation ( "xsl" , Relation :: EQUAL , $ this -> getXsl ( ) ) ; $ it = $ anydataset -> getIterator ( $ itf ) ; if ( $ it -> hasNext ( ) ) { $ sr = $ it -> moveNext ( ) ; $ this -> _contentType = $ sr -> getOriginalRawFormat ( ) ; } } } } return ( $ this -> _contentType ) ; }
Gets and array with the best content-type for the page.
It checks the file "contenttype.anydata.xsl" if the property "xmlnuke.CHECKCONTENTTYPE" is true

The returned array is:
array(
"xsl" => "",
"content-type" => "",
"content-disposition" => "",
"extension" => ""
)

@return array
Gets and array with the best content - type for the page . It checks the file contenttype . anydata . xsl if the property xmlnuke . CHECKCONTENTTYPE is true