set the self link on the resource

@param string $href
@param array  $meta optional
2156
public function setSelfLink($href, array $meta=[], $level=Document::LEVEL_RESOURCE) {
		$this->ensureResourceObject();
		
		if ($level === Document::LEVEL_RESOURCE) {
			$this->resource->setSelfLink($href, $meta);
		}
		else {
			parent::setSelfLink($href, $meta, $level);
		}
	}
745455
def set_meta(self, meta=None, **kwargs):
        '''
        
        '''
        if meta is None:
            meta = self.get_meta(**kwargs)
        setattr(self, '_meta', meta)
155096
private function setLink($name, $link)
    {
        if (! is_string($link) and ! is_object($link)) {
            throw new ValidationException(
                'Link attribute has to be an object or string, "' .
                gettype($link) . '" given.'
            );
        }

        if (is_string($link)) {
            $this->set($name, strval($link));

            return;
        }

        // Now $link can only be an object
        $this->set($name, $this->create('Link', $link));
    }
637629
def meta_set(self, key, metafield, value):
        '''  '''
        self._meta.setdefault(key, {})[metafield] = value
        if key in self:
            self[key] = self[key]
1370607
public function setMetaData($name, $content, $http_equiv = false)
	{
		$name = strtolower($name);

        if($name == 'description') {
			$this->setDescription($content);
		} else {

        	if ($http_equiv == true) {
				$this->_metaTags['http-equiv'][$name] = $content;
			} else {
				$this->_metaTags['standard'][$name] = $content;
			}
		}
	}
1057249
public function asLink($href=NULL,$target=NULL) {
		if (isset($href)) {
			$_target="";
			if(isset($target))
				$_target="target='{$target}'";
			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
		}
		return $this->addToProperty("class", "link");
	}
457138
public void setLink(Link link) {
		setHref(link.getHref());
		setHrefAbsolute(link.getHrefAbsolute());
		HttpParameters linkParams = link.getParams();
		if(linkParams != null) {
			for(Map.Entry<String,List<String>> entry : linkParams.getParameterMap().entrySet()) {
				String paramName = entry.getKey();
				for(String paramValue : entry.getValue()) {
					addParam(paramName, paramValue);
				}
			}
		}
		this.addLastModified = link.getAddLastModified();
		setHreflang(link.getHreflang());
		setRel(link.getRel());
		setType(link.getType());
		setMedia(link.getMedia());
		setTitle(link.getTitle());
	}
44995
public function setMeta($meta)
    {
        foreach($meta as $name => $content)
            $this->getResponse()->getTheme()->addMeta($name, $content);
    }
726526
public function setLink($link)
    {
        if ($this->version == Feed::RSS2 || $this->version == Feed::RSS1) {
            $this->addElement('link', $link);
        } else {
            $this->addElement('link','',array('href'=>$link));
            $this->setId(Feed::uuid($link,'urn:uuid:'));
        }

        return $this;
    }
768335
def set_meta(self, instance):
        
        self.use_title_tag = True
        self.title = instance.title
159571
public void setHref(String href) {
        JQMCommon.setAttribute(a, "href", href);
        if (external == null /*only if not explicitly set*/ && !Empty.is(href)
                && (href.startsWith("http:") || href.startsWith("https:"))) {
            setExternal(true);
        }
    }
264953
def add_link(self, rel, value, href=None):
        
        links_node = self.metadata.find('links')
        if links_node is None:
            links_node = ioc_et.make_links_node()
            self.metadata.append(links_node)
        link_node = ioc_et.make_link_node(rel, value, href)
        links_node.append(link_node)
        return True
146949
public function setMetadata(string $metadata): void
    {
        $this->isValidString($metadata, 1000);

        $this->metadata = $metadata;
    }
915458
protected function createLink(DataGrid $grid, $href, $params)
	{
		/**
		 * Int case of ActionCallback, $this->href is a identifier of user callback
		 */
		$params = $params + ['__key' => $this->href];

		return $this->grid->link('actionCallback!', $params);
	}
1284448
public function prepend($href, $rel = null, $type = null, $media = null)
    {
        self::$linkList->prepend(array($href, $rel, $type, $media));
        return $this;
    }
639095
public function setHref($href)
    {
        if (gettype($href) === 'string') {
            $this->href = $href;
        } else {
            $msg = "href must be a string, '" . gettype($href) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
743105
public function update_metadata($meta_key, $meta_value)
    {
        $this->meta[$meta_key] = $meta_value;

        update_post_meta($this->ID, $meta_key, $meta_value);
    }