Sets the value of isSuspended

@param boolean $isSuspended status

@return Cron
334853
public function setSuspended($isSuspended = true)
    {
        if ($this->isSuspended != $isSuspended) {
            $this->isSuspended = $isSuspended;
        }
        return $this;
    }
355837
public function setSecure(bool $isSecure) : Request
    {
        $isStandardPort = ($this->port === ($this->isSecure ? 443 : 80));

        if ($isStandardPort) {
            $this->port = $isSecure ? 443 : 80;
        }

        $this->isSecure = $isSecure;

        return $this;
    }
486739
function setIsQuiet( $isQuiet )
    {
        $cli = eZCLI::instance();
        $this->IsQuiet = $isQuiet;
        $cli->setIsQuiet( $isQuiet );
    }
1033135
public function setDisabledAdjustmentRequired($disabledAdjustmentRequired)
    {
        if (!is_bool($disabledAdjustmentRequired)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a boolean');
        }

        $this->disabledAdjustmentRequired = $disabledAdjustmentRequired;

        return $this;
    }
577864
public function setExpires($expires)
    {
        if ($expires !== null && !$expires instanceof \DateTime) {
            $expires = new \DateTime('@' . $expires);
        }
        $this->expires = $expires;

        return $this;
    }
236756
public function setRequired($required)
    {
        if ($required) {
            $this->setAttribute('required', 'required');
        } else {
            $this->removeAttribute('required');
        }
        return parent::setRequired($required);
    }
385280
public function setPublic($expires = null)
    {
        if ($expires !== null) {
            $expires += time();
        }
        $file = json_decode(file_get_contents($this->getPublicTableFile()));
        $filename = $this->getAbsolutePath();
        foreach ($file as &$item) {
            if ($item->filename === $filename) {
                $item->expires = $expires;
                file_put_contents($this->getPublicTableFile(), json_encode($file));
                return true;
            }
        }
        $item = new \stdClass();
        $item->filename = $filename;
        $item->expires = $expires;
        $file[] = $item;
        file_put_contents($this->getPublicTableFile(), json_encode($file));
        return true;
    }
1030785
public function setExpire($expire)
    {
        if (null !== $expire) {
            $this->expire = (int) $expire;
        } else {
            $this->expire = $expire;
        }

        return $this;
    }
1319721
public function lock($onChanged=null)
    {
        $lock = new Locking\PessimisticLock($this);
        $locked = $lock->acquire();

        if (is_callable($onChanged) && !$locked->equals($this)) {
            call_user_func($onChanged, $this, $locked);
        }

        // reload data from locked
        $this->_data = $locked->_data;

        return $this;
    }
861334
public function setRefunded($iPaymentId, $aData = []): bool
    {
        $aData['status'] = self::STATUS_REFUNDED;
        return $this->update($iPaymentId, $aData);
    }
158994
public function set_locked(bool $locked) {
        global $DB;

        if ($this->_locked == $locked) {
            return $this;
        }

        $this->_locked = $locked;
        $DB->set_field('context', 'locked', (int) $locked, ['id' => $this->id]);
        $this->mark_dirty();
        self::reset_caches();

        return $this;
    }
299197
public function setIsUnderlined ( $isUnderlined ) {
        if ( $isUnderlined === true ) {
            $this->_isUnderlined = true;
        } else {
            $this->_isUnderlined = false;
        }
    }
978956
public function setExpires($expires)
    {
        if (!$expires instanceof \DateTime) {
            // @see https://github.com/bshaffer/oauth2-server-bundle/issues/24
            $dateTime = new \DateTime();
            $dateTime->setTimestamp($expires);
            $expires = $dateTime;
        }

        $this->expires = $expires;

        return $this;
    }
28566
public function setModified($pValue = null) {
        if ($pValue === NULL) {
            $pValue = time();
        } elseif (is_string($pValue)) {
            if (is_numeric($pValue)) {
                $pValue = intval($pValue);
            } else {
                $pValue = strtotime($pValue);
            }
        }

        $this->_modified = $pValue;
        return $this;
    }
384874
public function isSuspended()
	{
		if ($this->suspended and $this->suspended_at)
		{
			$this->removeSuspensionIfAllowed();
			return (bool) $this->suspended;
		}

		return false;
	}
900783
public function set_status($status = self::STATUS_ACTIVE) {
        $this->statusactive = $status == static::STATUS_ACTIVE;
        $this->statussuspended = $status == static::STATUS_SUSPENDED;
        $this->statusnotcurrent = $status == static::STATUS_NOT_CURRENT;

        return $this;
    }
504354
public function setStatus($status)
    {
        $status = strtoupper($status);
        if ($status == self::STATUS_CANCELLED
            || $status == self::STATUS_CONFIRMED
            || $status == self::STATUS_TENTATIVE
        ) {
            $this->status = $status;
        } else {
            throw new \InvalidArgumentException('Invalid value for status');
        }

        return $this;
    }