Sets the level temporary attribute of an ability.

@param Competency $parent
@param Ability    $ability
505390
public function loadAbility(Competency $parent, Ability $ability)
    {
        $link = $this->competencyAbilityRepo->findOneByTerms($parent, $ability);
        $ability->setLevel($link->getLevel());
    }
1294111
public function findOneByTerms(Competency $parent, Ability $ability)
    {
        $link = $this->findOneBy(['competency' => $parent, 'ability' => $ability]);

        if (!$link) {
            throw new \RuntimeException(
                "Competency {$parent->getId()} is not linked to ability {$ability->getId()}"
            );
        }

        return $link;
    }
109938
public void setParentOu(String parentOu) {

        if (parentOu.startsWith(CmsOrganizationalUnit.SEPARATOR)) {
            parentOu = parentOu.substring(1);
        }
        m_parentOu = parentOu;
    }
1312390
public function setParent(\Haven\CoreBundle\Entity\Category $parent = null) {
        $this->parent = $parent;

        return $this;
    }
159351
public function set_parent(Node_Container $parent=null)
	{
		$this->parent = $parent;

		if($parent instanceof Node_Container_Document)
			$this->root = $parent;
		else
			$this->root = $parent->root();
	}
897363
public function setParent(\ZF\Doctrine\Audit\Entity\TargetEntity $parent = null)
    {
        $this->parent = $parent;

        return $this;
    }
833133
protected function set_new_path(competency $parent = null) {
        $path = '/0/';
        if ($this->get('parentid')) {
            $parent = $parent !== null ? $parent : $this->get_parent();
            $path = $parent->get('path') . $this->get('parentid') . '/';
        }
        $this->raw_set('path', $path);
    }
538760
final public function internalSetParent(ParentNodeInterface $parent)
    {
        $this->emit('parent.change', [$parent, $this]);
        $this->parentNode = $parent;
    }
2360
public function setParentControl(Control $parentControl = null)
    {
        $this->parentControl = $parentControl;
        $this->matcher->setParentControl($parentControl);
    }
1101837
public function setParentModules($parentModules): \RolesCapabilities\Capability
    {
        $this->parentModules = is_array($parentModules) ? $parentModules : [$parentModules];

        return $this;
    }
1313827
public void setParent(AstNode parent) {
        if (parent == this.parent) {
            return;
        }

        // Convert position back to absolute.
        if (this.parent != null) {
            setRelative(-this.parent.getAbsolutePosition());
        }

        this.parent = parent;
        if (parent != null) {
            setRelative(parent.getAbsolutePosition());
        }
    }
677128
public function setParent(&$parent)
	{
		JLog::add('JNode::setParent() is deprecated.', JLog::WARNING, 'deprecated');

		if ($parent instanceof JNode || is_null($parent))
		{
			$hash = spl_object_hash($this);

			if (!is_null($this->_parent))
			{
				unset($this->_parent->children[$hash]);
			}

			if (!is_null($parent))
			{
				$parent->_children[$hash] = & $this;
			}

			$this->_parent = & $parent;
		}
	}
1219119
public function setParent(\Neobazaar\Entity\TermTaxonomy $parent = null)
    {
        $this->parent = $parent;
    
        return $this;
    }
853032
@Override
  public void setParent(Logger parent)
  {
    if (parent.equals(_parent))
      return;
    
    super.setParent(parent);

    if (parent instanceof EnvironmentLogger) {
      _parent = (EnvironmentLogger) parent;

      _parent.addChild(this);
    }
    
    updateEffectiveLevel(_systemClassLoader);
  }
529493
public static function set_parent_competency_parameters() {
        $competencyid = new external_value(
            PARAM_INT,
            'The competency id',
            VALUE_REQUIRED
        );
        $parentid = new external_value(
            PARAM_INT,
            'The new competency parent id',
            VALUE_REQUIRED
        );
        $params = array(
            'competencyid' => $competencyid,
            'parentid' => $parentid
        );
        return new external_function_parameters($params);
    }
1088789
public function setActive($isActive)
    {
        $this->isActive = (bool) $isActive;
        
        if ($this->parent !== null) {
            $this->parent->setActive($isActive);
        }
    }
398685
public function setParent(\Haven\CmsBundle\Entity\HtmlContent $parent = null)
    {
        $this->parent = $parent;
    
        return $this;
    }