Set HD
Choose whether or not to force the player into HD.

@param bool $useHD

@return $this
193619
public function hd($useHD = true)
    {
        if ($useHD) {
            $this->hd = true;
        } else {
            $this->hd = false;
        }

        return $this;
    }
842077
public function setUseSession($useSession)
    {
        $this->useSession = (bool)$useSession;
        if ($useSession) {
            SessionHandler::enable();
        } else {
            SessionHandler::disable();
        }
        return $this;
    }
1267268
public function setDefaultSort($sort, $use_on_reset = true)
	{
		if (is_string($sort)) {
			$sort = [$sort => 'ASC'];
		} else {
			$sort = (array) $sort;
		}

		$this->default_sort = $sort;
		$this->default_sort_use_on_reset = (bool) $use_on_reset;

		return $this;
	}
1033077
public function setUseHTTPS(string $use_https = "F") : CNabuDataObject
    {
        if ($use_https === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_https")
            );
        }
        $this->setValue('nb_site_target_use_https', $use_https);
        
        return $this;
    }
629982
public function makeUse()
    {
        ++$this->used;

        if ($this->count > 0 && $this->count <= $this->used) {
            $this->enabled = false;
        }

        return $this;
    }
1007366
public function send($replace = true)
    {
        if (headers_sent()) {
            return;
        }

        foreach ($this->headers as $header) {
            header($header, $replace);
        }

        return $this;
    }
550224
public function setUseApps(string $use_apps = "F") : CNabuDataObject
    {
        if ($use_apps === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_apps")
            );
        }
        $this->setValue('nb_site_target_use_apps', $use_apps);
        
        return $this;
    }
388158
public function setUseFramework(string $use_framework = "F") : CNabuDataObject
    {
        if ($use_framework === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_framework")
            );
        }
        $this->setValue('nb_site_use_framework', $use_framework);
        
        return $this;
    }
698085
public function encode($format, $quality = null)
    {
        $this->toggleModified();

        $this->getInterventionImage()->encode($format, $quality);

        return $this;
    }
956323
public function unsetHeader(string $header)
    {
        $header = static::normalizeHeader($header);
        unset($this->headers[$header]);
        return $this;
    }
258979
public function enableCache($enable = true)
    {
        $this->enableCache = (bool) $enable;

        $this->refreshSettingDependentCriteria();

        return $this;
    }
1222370
public function selectObjectByHash($hash)
       {
            $index = array_search($hash, $this->map, true);
            return (false !== $index) ? $this->selectObjectByKey($index) : false;
       }
787215
public function setPlayerId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->player_id !== $v) {
            $this->player_id = $v;
            $this->modifiedColumns[RecordTableMap::COL_PLAYER_ID] = true;
        }

        if ($this->aPlayer !== null && $this->aPlayer->getId() !== $v) {
            $this->aPlayer = null;
        }

        return $this;
    }
1114519
public function fileOnly($flag = true)
    {
        $this->file_only = $flag;
        if ($this->file_only) $this->directory_only = false;
        return $this;
    }
294908
public function set_header($header, $content = null)
	{
		if (is_null($content))
		{
			$this->headers[] = $header;
		}
		else
		{
			$this->headers[$header] = $content;
		}

		return $this;
	}
69269
public function removeHeader($header) {
		foreach($this->headers as $k => $v) {
			if($k === $header)
				unset($this->headers[$k]);
		}

		return $this;
	}
703176
public function setUsage($usage)
    {
        if (is_array($usage) && !empty($usage)) {
            $this->usage = $usage;
        } elseif (is_string($usage) && ($usage != '')) {
            $this->usage = array($usage);
        }
    }