src/Ease/Logger/ToFile.php
public function setRunType($runType = null)
    {
        if (!$runType) {
            if (isset($_SERVER['HTTP_HOST'])) {
                $this->runType = 'web';
            } else {
                $this->runType = 'cgi';
            }

            return $this->runType;
        }
        if (($runType != 'web') || ($runType != 'cgi')) {
            return;
        } else {
            return $this->runType;
        }
    }
public function setRunType($runType = null)
    {
        if (!$runType) {
            if (isset($_SERVER['HTTP_HOST'])) {
                $this->runType = 'web';
            } else {
                $this->runType = 'cgi';
            }

            return $this->runType;
        }
        if (($runType != 'web') || ($runType != 'cgi')) {
            return;
        } else {
            return $this->runType;
        }
    }
Detekuje a nastaví zdali je objekt suštěn jako script (cgi) nebo jako page (web).

@param string $runType force type

@return string type