Gets a model's link if one was provided, substituting for field names with this format: (:field_name).

@return mixed
8209
public function getModelLink()
    {
        $linkCallback = $this->getOption('link');

        if ($linkCallback && is_callable($linkCallback)) {
            return $linkCallback($this->getDataModel());
        } else {
            return false;
        }
    }
1179892
public function getLink()
    {
        if ($this->oxmediaurls__oxisuploaded->value) {
            $sUrl = \OxidEsales\Eshop\Core\Registry::getConfig()->isSsl() ? \OxidEsales\Eshop\Core\Registry::getConfig()->getSslShopUrl() : \OxidEsales\Eshop\Core\Registry::getConfig()->getShopUrl();
            $sUrl .= 'out/media/';
            $sUrl .= basename($this->oxmediaurls__oxurl->value);
        } else {
            $sUrl = $this->oxmediaurls__oxurl->value;
        }

        return $sUrl;
    }
1230876
public function getGetter()
    {
        return '
    /**
     * Get value for field "' . $this->getName() . '"
     *
     * @return ' . $this->getType()->getType() . '
     */
    public function ' . $this->getMethodNameGet() . '()
    {
        return $this->' . $this->getPropertyName() . ';
    }';
    }
146835
public function getDeveloperNameLink()
    {
        if ($this->hasDeveloperLink() && !$this->LinkDisabled) {
            
            $target = $this->OpenLinkInNewTab ? ' target="_blank"' : '';
            
            return sprintf(
                '<a href="%s" rel="nofollow"%s>%s</a>',
                $this->DeveloperLink,
                $target,
                $this->DeveloperName
            );
            
        }
        
        return $this->DeveloperName;
    }
952631
public function getModelNameHtmlAttribute()
    {
        $class = Decoy::controllerForModel($this->model);

        // There is not a controller for the model
        if (!$class || !class_exists($class)) {
            return sprintf('<b><a href="%s">%s</a></b>',
            $this->filterUrl(['model' => $this->model]),
            preg_replace('#(?<!\ )[A-Z]#', ' $0', $this->model));
        }

        // There is a corresponding controller class
        $controller = new $class;
        return sprintf('<b class="js-tooltip" title="%s"><a href="%s">%s</a></b>',
            htmlentities($controller->description()),
            $this->filterUrl(['model' => $this->model]),
            Str::singular($controller->title()));
    }
606356
public function getLinkURL($field)
    {
        $link_attr = self::decodeLinkObject($this->get($field));

        if(!is_object($link_attr)) {
            return $this->get($field);
        }
        if(!(strlen($link_attr->href) && strlen($link_attr->title) && strlen($link_attr->target))) {
            $field_attribs = $this->getField($field);
            if (array_key_exists('default', $field_attribs)) return $field_attribs['default'];
        }
        return $link_attr->href;
    }
55663
def get_link(self, path, method, callback, view):
        
        fields = self.get_path_fields(path, method, callback, view)
        fields += self.get_serializer_fields(path, method, callback, view)
        fields += self.get_pagination_fields(path, method, callback, view)
        fields += self.get_filter_fields(path, method, callback, view)

        if fields and any([field.location in ('form', 'body')
                           for field in fields]):
            encoding = self.get_encoding(path, method, callback, view)
        else:
            encoding = None

        description = self.get_description(path, method, callback, view)

        link = coreapi.Link(
            url=urlparse.urljoin(self.url, path),
            action=method.lower(),
            encoding=encoding,
            description=description,
            fields=fields,
            transform=None,  # Not handled, but here for future reference
        )
        link._responses = self.get_responses(path, method, callback, view)
        link._produces = self.get_produces(path, method, callback, view)

        return link
721997
public function getModelColumn()
    {
        if (empty($this->_modelColumn)) {
            if (!empty($this->through)) {
                if (empty($this->link)) {
                    $throughClass = $this->through;
                    $through = call_user_func([$throughClass, 'create']);

                    $name = '';
                    foreach ($through->getFields() as $fieldName => $params) {
                        if (isset($params['modelClass']) && $params['modelClass'] == $this->ownerClassName) {
                            $name = $fieldName;
                            break;
                        }
                    }

                    $this->_modelColumn = $name.'_id';
                } else {
                    list($fromId, $toId) = $this->link;
                    if (empty($this->link)) {
                        throw new Exception('throughLink is missing in configutaion');
                    }

                    $this->_modelColumn = $this->reversed ? $toId : $fromId;
                }
            } else {
                $cls = $this->ownerClassName;
                $end = $this->getModelPk();
                if ($cls == $this->modelClass) {
                    $end = $this->reversed ? 'to_id' : 'from_id';
                }
                $tmp = explode('\\', $cls);
                $column = AbstractModel::normalizeTableName(end($tmp));
                $this->_modelColumn = $column.'_'.$end;
            }
        }

        return $this->_modelColumn;
    }
621507
public function getResourceLink()
    {

        if (is_null($this->resourceLink) && !is_null($this->resourceLinkId)) {
            $this->resourceLink = ResourceLink::fromRecordId($this->resourceLinkId, $this->getDataConnector());
        }

        return $this->resourceLink;

    }
304642
public function getField()
    {
        if (empty($this->field)) {
            $this->field = $this->guessForeignField();
        }

        return $this->field;
    }
546185
protected function getPaginatorModel(): string
    {
        $model = $this->directiveArgValue('model');

        // Fallback to using information from the schema definition as the model name
        if (! $model) {
            $model = ASTHelper::getUnderlyingTypeName($this->definitionNode);

            // Cut the added type suffix to get the base model class name
            $model = Str::before($model, 'Paginator');
            $model = Str::before($model, 'Connection');
        }

        if (! $model) {
            throw new DirectiveException(
                "A `model` argument must be assigned to the '{$this->name()}' directive on '{$this->definitionNode->name->value}"
            );
        }

        return $this->namespaceModelClass($model);
    }
33182
public function getFieldName()
    {
        $ret = $this->getName();
        if ($this->getNamePrefix()) {
            $ret = $this->getNamePrefix() . '_' . $ret;
        }
        return $ret;
    }
44419
public function getField()
    {
        $value = $this->name;
        if (null != $this->field) {
            $value = $this->field;
        }
        return $value;
    }
1313237
private function getLink()
    {
        // unset GET vars that we want to ignore
        $vars = $_GET;

        foreach ($vars as $name => $value) {
            if (in_array($name, $this->unset_get_vars)) {
                unset($vars[$name]);
            }
        }

        $key_orderby = $this->getLinkPrefix() . 'orderby';
        $key_orderbydir = $this->getLinkPrefix() . 'orderbydir';

        unset($vars[$key_orderby]);
        unset($vars[$key_orderbydir]);

        $next_dir = $this->getNextDirection();

        if ($next_dir != $this->default_direction) {
            $vars[$key_orderby] = $this->id;
            $vars[$key_orderbydir] = $this->getDirectionAsString(
                $next_dir,
                false
            );
        }

        // build the new link
        $link = $this->link . '?';
        $first = true;

        foreach ($vars as $name => $value) {
            if ($first) {
                $first = false;
            } else {
                $link .= '&amp;';
            }

            $link .= $name . '=' . $value;
        }

        return $link;
    }
1240855
public function getLink()
    {
        if (!$this->link) {
            $this->link = $this->getData($this->config['properties_map']['link']);
        }
        return $this->link;
    }
370228
public function getExtensionModel()
    {
        if ($this->extensionModel === null) {
            $this->load->model('extension/extension');
            /** @noinspection PhpUndefinedFieldInspection */
            $this->extensionModel = $this->model_extension_extension;
        }
        return $this->extensionModel;
    }
265605
public function getLink() {
		if($this->get('many') && $this->type() == 'hasMany')
			return $this->reverse()->get('name').'_id';
		elseif(!$this->get('many'))
			return $this->name.'_id';
	}