Set parent

@param \Haven\CmsBundle\Entity\TextContent $parent
@return TextContentTranslation
779230
public function setParent(\Haven\CmsBundle\Entity\TextContent $parent = null)
    {
        $this->parent = $parent;
    
        return $this;
    }
1127226
public function setParent(DataContainer $parent = null)
	{
		$this->parent = $parent;

		if ($this->parent)
		{
			$this->enableParent();
		}
		else
		{
			$this->disableParent();
		}

		return $this;
	}
1275385
protected function setTitleListSection($parent)
    {
        foreach ($this->route->getList() as $route) {
            if (isset($route['menu']['admin']) && isset($route['arguments']) && in_array($parent, $route['arguments'])) {
                $this->setTitle($route['menu']['admin']);
                break;
            }
        }
    }
800688
public function toXML(DOMElement $parent = null) : DOMElement
    {
        $element = parent::toXML($parent);

        if ($this->Format !== null) {
            $element->setAttribute('Format', $this->Format);
        }

        if ($this->SPProvidedID !== null) {
            $element->setAttribute('SPProvidedID', $this->SPProvidedID);
        }

        $value = $element->ownerDocument->createTextNode($this->value);
        $element->appendChild($value);

        return $element;
    }
571397
@SuppressWarnings("unchecked")
  public void setParent(PvmExecutionImpl parent) {
    PvmExecutionImpl currentParent = getParent();

    setParentExecution(parent);

    if (currentParent != null) {
      currentParent.getExecutions().remove(this);
    }

    if (parent != null) {
      ((List<PvmExecutionImpl>) parent.getExecutions()).add(this);
    }
  }
1124780
public function setParent(Container $parent = null)
        {
            if ($parent === $this) {
                throw new Exception(
                    'A page cannot have itself as a parent');
            }

            // return if the given parent already is parent
            if ($parent === $this->_parent) {
                return $this;
            }

            // remove from old parent
            if (null !== $this->_parent) {
                $this->_parent->removePage($this);
            }

            // set new parent
            $this->_parent = $parent;

            // add to parent if page and not already a child
            if (null !== $this->_parent && !$this->_parent->hasPage($this, false)) {
                $this->_parent->addPage($this);
            }

            return $this;
        }
223120
public function setParent(Page $parent)
    {
        if (!$parent->hasMainSection()) {
            throw new InvalidArgumentException('A parent page must be a section');
        }

        if (!$this->hasMainSection() || $this->isRoot()) {
            $this->setSection($parent->getSection());
        } else {
            $this->getSection()->setParent($parent->getSection());
        }
        return $this;
    }
570359
public function setParent(\Neobazaar\Entity\Document $parent = null)
    {
        $this->parent = $parent;
    
        return $this;
    }
1054291
public function toXML(DOMElement $parent) : DOMElement
    {
        Assert::notEmpty($this->scope);

        $doc = $parent->ownerDocument;

        $e = $doc->createElementNS(Scope::NS, 'shibmd:Scope');
        $parent->appendChild($e);

        $e->appendChild($doc->createTextNode($this->scope));

        if ($this->regexp === true) {
            $e->setAttribute('regexp', 'true');
        } else {
            $e->setAttribute('regexp', 'false');
        }

        return $e;
    }
1352370
public function parent($parent = false)
    {
        if ($parent) {
            $this->parents = !is_array($parent) ? [$parent] : $parent;

            if (func_num_args() > 1) {
                $this->parents = func_get_args();
            }
        }

        return $this;
    }
1201538
public function setParent(Step $parent = null)
    {
        if ($parent !== $this->parent) {
            $this->parent = $parent;

            if (null !== $parent) {
                $parent->addChild($this);
            }
        }

        return $this;
    }
161791
public function setParent($parent) {
		if (! is_object($parent)) {
			throw new WrongParent('Parent of a helper must be an object, "' . gettype($parent) . '" was given');
		}
		
		$this->_parent = $parent;
		
		return $this;
	}
379974
public function toXML(DOMElement $parent) : DOMElement
    {
        $e = Utils::addString($parent, Constants::NS_MD, 'md:AdditionalMetadataLocation', $this->getLocation());
        $e->setAttribute('namespace', $this->getNamespace());

        return $e;
    }
1045118
public function setParentInstance(SiteTree $parent)
    {
        $this->parentInstance = $parent;
        
        $this->setStyleIDFrom($parent);
        
        return $this;
    }
626051
public function setParent(\Haven\CmsBundle\Entity\Page $parent = null) {
        $this->parent = $parent;

        return $this;
    }
342915
public function toXML(DOMElement $parent) : DOMElement
    {
        Assert::same($this->getElement()->namespaceURI, Constants::NS_SAML);
        Assert::same($this->getElement()->localName, "AttributeValue");

        return Utils::copyElement($this->element, $parent);
    }
640802
public function setParent(\Haven\CmsBundle\Entity\Widget $parent = null) {
        $this->parent = $parent;

        return $this;
    }