@param string $mode

@return void
977891
protected function onUpdate(string $mode)
    {
        call_user_func($this->callback,
                $this->localColumnNames,
                $this->referencedTableName,
                $this->referencedColumnNames,
                $this->onDeleteMode,
                $mode
        );
    }
193444
protected function setMode($mode)
    {
        $mode = strtolower($mode);
        if (!in_array($mode, self::$modes)) {
            throw new InvalidArgumentException(sprintf('Invalid binary mode: %s', $mode));
        }
        $this->options['mode'] = $mode;
    }
18614
public function removeMode ($mode)
    {
        if ($mode instanceof AdminPageMode)
            $mode = $mode->getSlug();
        unset($this->modes[$mode]);
    }
648457
public function setMode($mode)
    {
        Validate::isString($mode, 'mode');
        Validate::isTrue(Mode::isValid($mode), Resources::INVALID_CHANGE_MODE_MSG);

        $this->_mode = $mode;
    }
1070412
public function dirReCreate($dir, $mode = 0755)
    {
        $this->dirDelete($dir);

        $this->dirCreate($dir, $mode);
    }
87839
public function setMode($mode = self::MODE_WHITESPACE_ONLY)
    {
        if (!in_array($mode, $this->availableModes)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The mode "%s" is not available.',
                $mode
            ));
        }

        $this->mode = (string) $mode;

        return $this;
    }
1187333
public void setMode(int mode) {
        model.setMode(mode);
        asCategoryButton.setSelected(PropertySheet.VIEW_AS_CATEGORIES == mode);
    }
1187990
public function set_mode($mode){
    if ( router::is_mode($mode) ){
      $this->mode = $mode;
    }
    return $this->mode;
  }
1370843
public function writeFile(string $filename, string $data, int $mode = null) : void
    {
        if ($mode === null) {
            $mode = 0600;
        }
        /** @psalm-suppress UndefinedClass */
        System::writeFile($filename, $data, $mode);
    }
395643
public function setWriteMode($mode)
    {
        if (!in_array($mode, $this->validWriteModes, true)) {
            throw new InvalidArgumentException("Invalid write mode specified: $mode");
        }

        $this->config["writeMode"] = $mode;
        $this->createFileHandler();
    }
364288
public function setMode($mode)
    {
        if (!in_array($mode, [self::MODE_AND, self::MODE_OR])) {
            throw new InvalidArgumentException("Invalid mode $mode");
        }
        $this->mode = $mode;

        return $this;
    }
632178
public static function on($mode = "text")
    {
        if (static::$on) {
            return;
        }
        static::$on = true;
        static::$time = microtime(true);
        static::$mode = $mode;
    }
241569
public function setTransferMode( $mode )
	{
		if( $mode != FTP_BINARY && $mode != FTP_ASCII )
			return FALSE;
		$this->mode	= $mode;
		return TRUE;
	}
472719
public function setMode($mode = 'and')
    {
        $mode = in_array($mode, ['and', 'or']) ? $mode : 'and';

        $this->mode = $mode;

        return $this;
    }
468231
private function create($mode, $url, $lastMod = null):void
    {
        $lastMod = $lastMod ?: $this->lastMod;
        $raw = str_replace([':url', ':lastmod'], [$url, $lastMod], $this->raw);
        if ($mode === 'create') {
            $fileH = new SitemapWriter($this->file, 'writeOnly');
            $fileH->write(self::START.PHP_EOL);
            $fileH->write($raw);
            $fileH->write(PHP_EOL.self::END);
        } elseif ($mode === 'append') {
            $fileH = new SitemapWriter($this->file, 'readOnly');
            $sitemapData = $fileH->read();
            $fileH = new SitemapWriter($this->file, 'writeOverride');
            $sitemapData = str_replace('</sitemapindex>', '', $sitemapData);
            $sitemapData = $sitemapData.$raw;
            $fileH->write($sitemapData);
            $fileH->write(PHP_EOL.self::END);
        }
        $fileH->close();
    }
1249195
public static function setNewFileMode(string $mode = '740'): void
    {
        static::init();
        static::$newFileMode = \preg_match('/^[0-7]{3}$/', $mode) ? \intval($mode, 8) : 0740;
    }
993022
private function setHandle($mode)
    {
        $this->closeExistingHandle();

        $this->handle = fopen($this->file, $mode);

        return $this->handle;
    }