public function extractTitle($content, $retrieveTitle = false) {
		if ($retrieveTitle) {
			
		} else {
			if ($this->isImage($content)) {
				return 'Image: ' . basename($content);
			}
			
			if ($this->isWebpage($content)) {
				return 'Website: ' . basename($content);
			}
			
			return DBField::create_field('Text', $content)->LimitWordCount(5, '');
		}
	}
public function extractTitle($content, $retrieveTitle = false) {
		if ($retrieveTitle) {
			
		} else {
			if ($this->isImage($content)) {
				return 'Image: ' . basename($content);
			}
			
			if ($this->isWebpage($content)) {
				return 'Website: ' . basename($content);
			}
			
			return DBField::create_field('Text', $content)->LimitWordCount(5, '');
		}
	}
public function extractTitle ( $ content , $ retrieveTitle = false ) { if ( $ retrieveTitle ) { } else { if ( $ this -> isImage ( $ content ) ) { return 'Image: ' . basename ( $ content ) ; } if ( $ this -> isWebpage ( $ content ) ) { return 'Website: ' . basename ( $ content ) ; } return DBField :: create_field ( 'Text' , $ content ) -> LimitWordCount ( 5 , '' ) ; } }
Extract a title from a given piece of content

@param string $content
The content to get a title for
@param boolean $retrieveTitle
Whether to pull the locations title tag down
Extract a title from a given piece of content