Sets the sandbox.
@param boolean sandbox
8320
public static function setSandbox($sandbox)
    {
        if ($sandbox == true) {
            static::setEnvironment(Environment::SANDBOX);
        } else {
            static::setEnvironment(Environment::PRODUCTION);
        }
    }
832513
public void setOpen(boolean open) {

        m_opened = open;
        if (m_opened) {
            // show content
            m_visibilityStyle.setValue(
                I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll()
                    + " "
                    + I_CmsLayoutBundle.INSTANCE.fieldsetCss().fieldsetVisible());
            m_opener.setDown(true);
        } else {
            // hide content
            m_visibilityStyle.setValue(I_CmsLayoutBundle.INSTANCE.fieldsetCss().fieldsetInvisible());
            m_opener.setDown(false);
        }
        CmsDomUtil.resizeAncestor(getParent());
    }
758205
public static void runByBoolean(boolean bool, Runnable trueBlock,
            Runnable falseBlock) {
        if (bool)
            trueBlock.run();
        else
            falseBlock.run();
    }
1131166
protected function setServer()
	{
		$server = $this->config->get('gateway.zarinpal.server', 'germany');
		switch ($server) {
			case 'iran':
				$this->serverUrl = $this->iranServer;
				break;
                
			case 'test':
				$this->serverUrl = $this->sandboxServer;
				$this->gateUrl = $this->sandboxGateUrl;
				break;

			case 'germany':
			default:
				$this->serverUrl = $this->germanyServer;
				break;
		}
	}
651404
public void setBoolean(@NotNull final String key, boolean value) {
        setString(key, Boolean.toString(value));
    }
1011935
public final void setBase(int bx, int by, int bz) {
        this.bx = bx;
        this.by = by;
        this.bz = bz;
    }
876538
private void setParam(Boolean booleanParam, Integer integerParam, String literalParam, T objectParam)
	{
		this.booleanParam = booleanParam;
		this.integerParam = integerParam;
		this.literalParam = literalParam;
		this.objectParam = objectParam;
	}
261883
public void add(final CheckBox checkBox) {

        checkBox.setValue(Boolean.FALSE);
        m_checkboxes.add(checkBox);
        ValueChangeListener listener = new ValueChangeListener() {

            private static final long serialVersionUID = 1L;

            @SuppressWarnings("synthetic-access")
            public void valueChange(ValueChangeEvent event) {

                if (m_runningEvent) {
                    return;
                } else {
                    try {
                        m_runningEvent = true;
                        if (((Boolean)event.getProperty().getValue()).booleanValue()) {
                            if ((m_selected != null) && (m_selected != checkBox)) {
                                m_selected.setValue(Boolean.FALSE);
                            }
                            setActiveCheckBox(checkBox);
                        } else {
                            setActiveCheckBox(null);
                            m_selected = null;
                        }

                        // TODO Auto-generated method stub
                    } finally {
                        m_runningEvent = false;

                    }
                }

            }
        };
        checkBox.addValueChangeListener(listener);
        m_listeners.put(checkBox, listener);
    }
121198
private void toBoolean(boolean box) {
        if (box && mTarget >= 0x00010004) {
            // Call the new valueOf method.
            invokeStatic("java.lang.Boolean", "valueOf",
                         TypeDesc.BOOLEAN.toObjectType(),
                         new TypeDesc[] {TypeDesc.BOOLEAN});
            return;
        }

        Label nonZero = createLabel();
        Label done = createLabel();
        ifZeroComparisonBranch(nonZero, "!=");
        if (box) {
            TypeDesc newType = TypeDesc.BOOLEAN.toObjectType();
            loadStaticField(newType.getRootName(), "FALSE", newType);
            branch(done);
            nonZero.setLocation();
            loadStaticField(newType.getRootName(), "TRUE", newType);
        } else {
            loadConstant(false);
            branch(done);
            nonZero.setLocation();
            loadConstant(true);
        }
        done.setLocation();
    }
1060939
public void setOpen(boolean isOpen) {

        m_opener.setStyleOpen(isOpen);
        m_children.setVisible(isOpen);
        m_isOpen = isOpen;
    }
48523
public function createClient($sandBox = false)
    {
        $client = new \SoapClient($this->wsdl, array(
            'soap_version' => SOAP_1_1,
            'classmap'     => $this->classmap
        ));

        $login    = $sandBox ? self::TEST_LOGIN    : $this->login;
        $password = $sandBox ? self::TEST_PASSWORD : $this->password;

        $client->__setSOAPHeaders($this->getSecurityHeader($login, $password));

        return $client;
    }
430673
function sandboxMode(enabled) {
    showWarning();
    configurations.sandbox = (enabled !== undefined) ? (enabled === true) : configurations.sandbox;
  }
1018103
public void setProjectChanged(boolean b) {
        if (curProject == null) {
            return;
        }

        if (projectChanged == b) {
            return;
        }

        projectChanged = b;
        mainFrameMenu.setSaveMenu(this);

        getRootPane().putClientProperty(WINDOW_MODIFIED, b);

    }
58818
def set(value = true)
      assert_exists
      assert_enabled

      if (value && !set?) || (!value && set?)
        @object.click
      end
    end
603495
def setsebool(boolean, value, persist=False):
    '''
    
    '''
    if persist:
        cmd = 'setsebool -P {0} {1}'.format(boolean, value)
    else:
        cmd = 'setsebool {0} {1}'.format(boolean, value)
    return not __salt__['cmd.retcode'](cmd, python_shell=False)
273186
public void setControlValue(Object value)
    {
        Boolean boolValue = null;
        if (value instanceof String)    // Always
            if (((String)value).length() > 0)
                boolValue = new Boolean((String)value);
        if (boolValue == null)
            boolValue = Boolean.FALSE;
        this.setSelected(boolValue.booleanValue());
    }
798821
synchronized public void setEnableSessionCreation(boolean flag) {
        enableSessionCreation = flag;

        if ((handshaker != null) && !handshaker.activated()) {
            handshaker.setEnableSessionCreation(enableSessionCreation);
        }
    }