public function checkTitle ($value, DataContainer $dc)
	{
		$db = Database::getInstance();

		$objTitle = $db->prepare("SELECT id FROM tl_elements WHERE NOT id=? AND pid=? AND title=?")
					   ->execute($dc->activeRecord->id, $dc->activeRecord->pid, $value);

		if ($objTitle->numRows > 0)
		{
			throw new Exception(sprintf($GLOBALS['TL_LANG']['ERR']['aliasExists'], $value));
		}
		
		return $value;
	}
public function checkTitle ($value, DataContainer $dc)
	{
		$db = Database::getInstance();

		$objTitle = $db->prepare("SELECT id FROM tl_elements WHERE NOT id=? AND pid=? AND title=?")
					   ->execute($dc->activeRecord->id, $dc->activeRecord->pid, $value);

		if ($objTitle->numRows > 0)
		{
			throw new Exception(sprintf($GLOBALS['TL_LANG']['ERR']['aliasExists'], $value));
		}
		
		return $value;
	}
public function checkTitle ( $ value , DataContainer $ dc ) { $ db = Database :: getInstance ( ) ; $ objTitle = $ db -> prepare ( "SELECT id FROM tl_elements WHERE NOT id=? AND pid=? AND title=?" ) -> execute ( $ dc -> activeRecord -> id , $ dc -> activeRecord -> pid , $ value ) ; if ( $ objTitle -> numRows > 0 ) { throw new Exception ( sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'ERR' ] [ 'aliasExists' ] , $ value ) ) ; } return $ value ; }
Check if the title is not already in use

@param mixed         $value
@param DataContainer $dc

@return mixed
Check if the title is not already in use