Sets the dispatched flag

@param boolean $flag If this request has been dispatched
@return void
@api
339019
public function setDispatched($flag)
    {
        $this->dispatched = $flag ? true : false;

        if ($flag) {
            $this->emitRequestDispatched($this);
        }
    }
842560
public function setAjax($flag) {
        $this->_ajax = $flag;
        $class = $this->getAttrib('class');
        if ($flag && !preg_match('/(^|\s)ajax($|\s)/', $class)) {
            $class .= ' ajax';
        } else {
            $class = preg_replace('/(^|\s)(ajax)($|\s)/', '$1$3', $class);
        }
        $this->setAttrib('class', $class);
        return $this;
    }
297560
public function enableLogQueries(bool $flag = true)
    {
        $this->settings()->set('log_queries', (int) $flag);

        return $this;
    }
208979
public void setEnable(boolean flag)
    {
        if (mEnabled == flag)
        {
            return;
        }
        mEnabled = flag;
        if (flag)
        {
            mContext.registerDrawFrameListener(this);
            mContext.getApplication().getEventReceiver().addListener(this);
            mAudioEngine.resume();
        }
        else
        {
            mContext.unregisterDrawFrameListener(this);
            mContext.getApplication().getEventReceiver().removeListener(this);
            mAudioEngine.pause();
        }
    }
448156
public function enableExtremes(bool $flag = true)
    {
        $this->settings()->set('extremes', (int) $flag);

        return $this;
    }
360771
public static function dispatch()
    {
        if (empty(self::$headers) === false) {
            self::$dispatchedHeaders = true;

            foreach (self::$headers as $value) {
                self::putHeader($value[0], $value[1], $value[2]);
            }
        }
    }
6671
public function setFlags($flags)
    {
        $flags = Utility::ParseFlags($flags);

        $this->setDup($flags['dup']);
        $this->setQos($flags['qos']);
        $this->setRetain($flags['retain']);
        return true;
    }
1106394
public function del($fd, $flag)
    {
        switch ($flag) {
            case static::EV_READ:
            case static::EV_WRITE:
                $fd_key    = (int)$fd;
                if(isset($this->fdEvents[$fd_key][$flag])){
                    $this->fdEvents[$fd_key][$flag]->del();
                    $this->fdEvents[$fd_key][$flag]->free();
                    unset($this->fdEvents[$fd_key][$flag]);
                }
            case static::EV_SIGNAL:
                if(isset($this->signalEvents[$fd])) {
                    $this->signalEvents[$fd]->del();
                    $this->signalEvents[$fd]->free();
                    unset($this->signalEvents[$fd]);
                }
                break;
            case static::EV_INTERVAL:
            case static::EV_TIMEOUT:
                if(isset($this->timerEvents[$fd])) {
                    static::unsetId($fd);
                    $this->timerEvents[$fd]->del();
                    $this->timerEvents[$fd]->free();
                    unset($this->timerEvents[$fd]);
                }
                
                break;
                
        }
    }
1102521
public function isForceInitialization($flag = null)
    {
        if ($flag === null) {
            return $this->forceInit;
        }
        $this->forceInit = $flag;
        return $this;
    }
125194
public function withFlag($flag)
    {
        $flagValue = (is_string($flag)) ? $this->flagsFromText($flag) : $flag;

        if ($flagValue) {
            $this->getDbCriteria()->mergeWith(array(
                'condition' => $this->getTableAlias() . '.' . $this->flagsField . '&' . $flagValue . '<>0', //:flag<>0',
            ));
        }
        return $this;
    }
1175759
public function withFlag($flag): void
    {
        $flag = $this->parseFlag($flag);

        $this->flags = $this->flags | $flag;
    }
723430
public function forUpdate($flag = true)
    {
        $this->_parts[self::FOR_UPDATE] = (bool) $flag;
        return $this;
    }
1025825
public function setFlagStatus($flag, $status)
    {
        if (is_array($flag)) {
            foreach ($flag as $singleFeature) {
                $this->flags[$singleFeature] = $status;
            }
        } else {
            $this->flags[$flag] = $status;
        }
    }
1291800
public function isLIFO($flag = null)
    {
        if ($flag !== null) {
            $isLifo = $flag === true ? 1 : -1;

            if ($isLifo !== $this->isLIFO) {
                $this->isLIFO = $isLifo;
                $this->sorted = false;
            }
        }

        return 1 === $this->isLIFO;
    }
637666
public final boolean setScheduledForFlush(boolean flag) {
        if (flag) {
            // If the current tag is set to false, switch it to true
            return scheduledForFlush.compareAndSet(false, true);
        }

        scheduledForFlush.set(false);
        return true;
    }
43767
public function clearFlag(string $flag): bool
    {
        $result = \imap_clearflag_full($this->resource->getStream(), (string) $this->getNumber(), $flag, \ST_UID);

        $this->clearHeaders();

        return $result;
    }
1037050
public void setRobotFlag(String flag) {
		String flags = getRobotFlags();
		if (flags == null) {
			flags = "";
		}
		if (!flags.contains(flag)) {
			flags = flags + flag;
		}
		setRobotFlags(flags);
	}