Setter for $is_remoter attribute

@return $this
779061
public function enableRemote($method = null)
    {
        $this->is_remote = true;
        $this->disableCallback();// disable callback, we cannot have both

        if (!is_null($method) && method_exists($this, 'addAttribute')) {
            $this->addAttribute('data-method', $method);
        }

        return $this;
    }
360297
public function setDomain($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->domain !== $v) {
            $this->domain = $v;
            $this->modifiedColumns[] = RemoteAppPeer::DOMAIN;
        }


        return $this;
    }
781965
public function setAdaptor($adaptor = null)
    {

        // Set the adaptor
        $this->adaptor = $adaptor;

        // If we just want to reset the adaptor
        if ( ! $adaptor ) {
            return $this;
        }

        // Validate the adaptor
        if ( ! ( $adaptor instanceof CropAdaptorInterface ) ) {
            throw new \Exception( 'The adaptor need to implement LasseHaslev\Image\Adaptors\CropAdaptorInterface' );
        }

        // Return this for binding
        return $this;
    }
184004
public function setAttribute($attr, $value) {

		$attr = strtolower($attr);

		switch($attr) {
			case 'action':
				$this->setAction($value);
				return $this;

			case 'enctype':
				$this->setEncType($value);
				return $this;

			case 'method':
				$this->setMethod($value);
				return $this;

			default:
				$this->attributes[$attr] = $value;
		}

		return $this;

	}
441019
public function setDependOn($selector, $url)
    {
        return $this->addAttribute('data-parent-url', $url)
                    ->addAttribute('data-parent-selector',  $selector)
                    ->addAttribute('data-populate', function(Element $element){
                        return $element->getValue();
                    })
                    ->addClass('select-remote');
    }
961261
public function setTLS($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->tls = (bool)$isEnabled;

        return $this;
    }
1124316
public function setAttr($attr, $value) {
		$this->_attrs[$attr] = trim($value);
		$this->_tagCached    = null;
		
		return $this;
	}
1006228
public function setApiversion($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->apiversion !== $v) {
            $this->apiversion = $v;
            $this->modifiedColumns[] = RemoteHistoryContaoPeer::APIVERSION;
        }


        return $this;
    }
1349106
public function setIsActive($isActive)
    {
        if ($this->hasParent()) {
            $this->getParent()->setIsActive($isActive);
        }

        $this->isActive = $isActive;

        return $this;
    }
942306
public function setUriFactory(UriFactory  $uriFactory = null)
    {
        if (!$uriFactory) {
            $uriFactory = $this->apiDiscoveryProxy->discoverUriFactory();
        }

        $this->uriFactory = $uriFactory;

        return $this;
    }
192394
public function setParent($parent_id = null): self
    {
        $parent_id = ((int) $parent_id > 0) ? (int) $parent_id : null;

        $this->setAttribute('parent_id', $parent_id);

        return $this;
    }
430852
public function attr($name, $value = null)
    {
        $attrs = (array) $this->getAttribute('attribs');

        if ($value === null) {
            return isset($attrs[$name]) ? $attrs[$name] : null;
        }

        $attrs[$name] = $value;

        $this->setAttribute('attribs', $attrs);

        return $this;
    }
1138976
public function setValidator($validator)
    {
        $this->clearCache();
        $this->validators = [];
        $this->addValidator($validator);

        return $this;
    }
329209
public function setCustomerId($v)
    {
        if ($v !== null && is_numeric($v)) {
            $v = (int) $v;
        }

        if ($this->customer_id !== $v) {
            $this->customer_id = $v;
            $this->modifiedColumns[] = RemoteAppPeer::CUSTOMER_ID;
        }

        if ($this->aCustomer !== null && $this->aCustomer->getId() !== $v) {
            $this->aCustomer = null;
        }


        return $this;
    }
1042806
public function setRemoteHostWhitelist($whitelist = null)
    {
        $this->remoteHostWhitelist = $whitelist;
        $this->log(
            "Setting remote host whitelist to: "
            . (is_null($whitelist) ? "null" : print_r($whitelist, 1))
        );
        return $this;
    }
227823
public function setRemoteAppId($v)
    {
        if ($v !== null && is_numeric($v)) {
            $v = (int) $v;
        }

        if ($this->remote_app_id !== $v) {
            $this->remote_app_id = $v;
            $this->modifiedColumns[] = RemoteHistoryContaoPeer::REMOTE_APP_ID;
        }

        if ($this->aRemoteApp !== null && $this->aRemoteApp->getId() !== $v) {
            $this->aRemoteApp = null;
        }


        return $this;
    }
1317480
public function setMethod(){

		//check if the $urlComponentsArray has more than one component
		if(count($this->urlComponentsArray) > 1){

			//set the value of the $method property
			$this->method = $this->urlComponentsArray[1];

			//return this class instance
			return $this;

		}

		//there are no more than 1 url params, set method to null
		else{

			//there are no components in the url string set null for infered controller
			$this->method = null;

			//return this class instance
			return $this;

		}

	}