Set whether or not the media must start as soon as the candidate starts the attempt.

@param boolean $autostart
@throws \InvalidArgumentException If $autostart is not a boolean value.
512877
public function setAutostart($autostart)
    {
        if (is_bool($autostart) === true) {
            $this->autostart = $autostart;
        } else {
            $msg = "The 'autostart' argument must be a boolean value, '" . gettype($autostart) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
127723
public void setExpiredStart(Date expiredStart) throws InvalidArgumentException {
        if (expiredStart == null) {
            throw new InvalidArgumentException("Date can't be null");
        }
        queryParms.put("expired_start", Util.dateToString(expiredStart));
    }
885078
public function setAutocomplete($autocomplete)
    {
        if ($autocomplete !== null && !is_callable($autocomplete)) {
            throw new \InvalidArgumentException('Invalid autocomplete function given');
        }

        $this->autocomplete = $autocomplete;

        return $this;
    }
766340
public function setStarted($value)
    {
        $this->_validateDate('Started', $value);

        if ($this->data['started'] === $value) {
            return;
        }

        $this->data['started'] = $value;

        $this->_setModified('started');
    }
535619
protected function beforeStart()
    {
        // If no explicit request was given (via Enlighten::setRequest), create one based on the current PHP globals
        if (empty($this->request)) {
            $this->setRequest(Request::extractFromEnvironment());
        }

        $this->bootstrapRouter();
    }
572740
public function start($hash = false, $name = false)
    {
        if ($hash) {
            $this->_hash = $hash;
        }

        if ($name) {
            $this->_name = $name;
        }

        if (! empty($this->_id)) {
            $this->restart();
        } else {
            $this->create();
        }
    }
590856
public function setStartCallable(callable $startCallable): self
    {
        assert($this->checkProcedureStartOrEndCallableSignature($startCallable));

        $this->startCallable = $startCallable;

        return $this;
    }
372034
def on_startup(self):
        

        LOGGER.debug("> Calling '{0}' Component Framework 'on_startup' method.".format(self.__class__.__name__))

        if self.Autostart_TCP_Server_checkBox.isChecked():
            if not self.__tcp_server.online:
                self.__tcp_server.port = self.Port_spinBox.value()
                self.__tcp_server.start()
        return True
465898
protected void setArrayStart(String arrayStart) {
        if (arrayStart == null) {
            arrayStart = StringUtils.EMPTY;
        }
        this.arrayStart = arrayStart;
    }
646260
public void setStart(ReadableInstant start) {
        long startMillis = DateTimeUtils.getInstantMillis(start);
        super.setInterval(startMillis, getEndMillis(), getChronology());
    }
1001240
public void setStartFromZero(final boolean IS_TRUE) {
        if (null == startFromZero) {
            _startFromZero = IS_TRUE;
            setValue(IS_TRUE && getMinValue() < 0 ? 0 : getMinValue());
            fireTileEvent(REDRAW_EVENT);
        } else {
            startFromZero.set(IS_TRUE);
        }
    }
1158897
public function start(?array $args = null)
  {
    $arguments  = (object)$args;
    $extendable = new Prototype;

    foreach($arguments as $key => $value) {
      $extendable->$key = $value;
    }

    $this->boot($extendable);
  }
774688
public function setStart($position)
    {
        if (! is_int($position)) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type integer. Argument type is ' . gettype($position));
        }

        $this->start = $position;
    }
1319539
@Override
   public S purgeOnStartup(boolean b) {
      attributes.attribute(PURGE_ON_STARTUP).set(b);
      purgeOnStartup = b;
      return self();
   }
217842
public function autoStart(int $nbColsByRow = 4, bool $container = true, bool $fluid = true, array $containerClasses = []):self
    {
        if (!isset($this->getGrid()[$nbColsByRow])) {
            Checkers::notice('Bad nb cols by row [' . $nbColsByRow . ']. Using ' . self::DEFAULT_COLS . ' by default.');
            $nbColsByRow = self::DEFAULT_COLS;
        }
        if ($this->status !== self::STATUS_OK) {
            Checkers::notice('Autostart: status is not correct.');
        }
        $this->autoStarted = true;
        $this->autoCols = $nbColsByRow;
        $this->autoCurrentCol = 0;
        $this->autoFluid = $fluid;
        $this->autoContainer = $container;
        $this->autoContainerClasses = $containerClasses;
        return $this;
    }
744735
private function _setBeginning($bool)
    {
        if (!is_bool($bool)) {
            throw new Exception('$bool in not boolean');
        }
        if ($this->_beginning === $bool) {
            throw new Exception("Error begin or end.");
        }
        $this->_beginning = $bool;
    }
1174696
static function setScriptStart( $time = false )
    {
        if ( $time == false )
            $time = microtime( true );
        $debug = eZDebug::instance();
        $debug->ScriptStart = $time;
    }