Returns a set of token info fields based on the shop specific token info.

@param string $variableName
@param string[][] $variableInfo

@return array Form fields.
Form fields.
551495
protected function get1TokenField($variableName, array $variableInfo)
    {
        $value = "<p class='property-name'><strong>$variableName</strong>";

        if (!empty($variableInfo['more-info'])) {
            $value .= ' ' . $variableInfo['more-info'];
        } else {
            if (!empty($variableInfo['class'])) {
                if (!empty($variableInfo['file'])) {
                    $value .= ' (' . $this->see2Lists('see_class_file', 'see_classes_files', $variableInfo['class'], $variableInfo['file']) . ')';
                } else {
                    $value .= ' (' . $this->seeList('see_class', 'see_classes', $variableInfo['class']) . ')';
                }
            } elseif (!empty($variableInfo['table'])) {
                $value .= ' (' . $this->seeList('see_table', 'see_tables', $variableInfo['table']) . ')';
            } elseif (!empty($variableInfo['file'])) {
                $value .= ' (' . $this->seeList('see_file', 'see_files', $variableInfo['file']) . ')';
            }

            if (!empty($variableInfo['additional-info'])) {
                $value .= ' (' . $variableInfo['additional-info'] . ')';
            }
        }

        $value .= ':</p>';

        if (!empty($variableInfo['properties'])) {
            $value .= '<ul class="property-list">';
            foreach ($variableInfo['properties'] as $property) {
                $value .= "<li>$property</li>";
            }

            if (!empty($variableInfo['properties-more'])) {
                if (!empty($variableInfo['class'])) {
                    $value .= '<li>' . $this->seeList('see_class_more', 'see_classes_more', $variableInfo['class']). '</li>';
                } elseif (!empty($variableInfo['table'])) {
                    $value .= '<li>' . $this->seeList('see_table_more', 'see_tables_more', $variableInfo['table']) . '</li>';
                }
            }
            $value .= '</ul>';
        }

        return array(
            'type'=> 'markup',
            'value' => $value,
        );
    }
726741
public final Variable getVariable(int variableNum) {
    int index = getVariableIndex(variableNum);
    if (index >= 0) {
      return vars[index];
    } else {
      return null;
    }
  }
372272
function get_var_names($file_name, $section = NULL)
	{
		if (empty($file_name)) {
			$this->_trigger_error_msg('Empty config file name');
			return;
		} else if (!isset($this->_config_data[$file_name])) {
			$this->_trigger_error_msg("Unknown config file '$file_name'");
			return;
		}

		if (empty($section))
		return array_keys($this->_config_data[$file_name]["vars"]);
		else
		return array_keys($this->_config_data[$file_name]["sections"][$section]["vars"]);
	}
335791
public function getVar($varName)
    {
        if (!isset($this->variableList[$varName])) {
            trigger_error('Variable "' . $varName . '" isn\'t defined in View.', E_USER_WARNING);
            return false;
        }
        return $this->variableList[$varName];
    }
882634
public function getInfo($methodVars = Array())
    {
        // Only allow full authed calls
        if ($this->fullAuth == true) {
            $vars = array(
                'method' => 'user.getinfo',
                'api_key' => $this->auth->apiKey,
                'sk' => $this->auth->sessionKey
            );
            $vars = array_merge($vars, $methodVars);
            $apiSig = $this->apiSig($this->auth->apiSecret, $vars);
            $vars['api_sig'] = $apiSig;

            if ($call = $this->apiGetCall($vars)) {
                $info['name'] = (string) $call->user->name;
                $info['realname'] = (string) $call->user->realname;
                $info['url'] = (string) $call->user->url;
                $info['image'] = (string) $call->user->image;
                $info['lang'] = (string) $call->user->lang;
                $info['country'] = (string) $call->user->country;
                $info['age'] = (string) $call->user->age;
                $info['gender'] = (string) $call->user->gender;
                $info['subscriber'] = (string) $call->user->subscriber;
                $info['playcount'] = (string) $call->user->playcount;
                $info['playlists'] = (string) $call->user->playlists;

                return $info;
            } else {
                return false;
            }
        } else {
            throw new NotAuthenticatedException('Method requires full auth. Call auth.getSession using lastfmApiAuth class');
        }
    }
564516
protected function getVariables(TokenInterface $token, $subject)
    {
        $event = new GetExpressionVariablesEvent($token);
        $this->dispatcher->dispatch(ExpressionVariableEvents::GET, $event);

        $variables = array_merge($event->getVariables(), [
            'object' => $subject,
            'subject' => $subject,
        ]);

        if ($subject instanceof Request) {
            $variables['request'] = $subject;
        }

        return $variables;
    }
648904
protected function findAllVariablePositions(): array
    {
        return TokenHelper::findNextAll(
            $this->file->getBaseFile(),
            [T_VARIABLE],
            $this->stackPos + 1,
            $this->file->findNext([T_CLOSE_PARENTHESIS], $this->stackPos + 1)
        );
    }
326066
public function get_variable($varname, $default = null)
    {
        if (!isset($this->variables)) {
            $this->variables = array();
        }

        if (array_key_exists($varname, $this->variables)) {
            return $this->variables[$varname];
        }

        // configured value has higher prio
        $conf_value = rcube::get_instance()->config->get('db_' . $varname);
        if ($conf_value !== null) {
            return $this->variables[$varname] = $conf_value;
        }

        $result = $this->query('SHOW VARIABLES LIKE ?', $varname);

        while ($row = $this->fetch_array($result)) {
            $this->variables[$row[0]] = $row[1];
        }

        // not found, use default
        if (!isset($this->variables[$varname])) {
            $this->variables[$varname] = $default;
        }

        return $this->variables[$varname];
    }
973337
public function actionIndex(array $variables = array())
    {
        $providers = craft()->oauth->getProviders(false);

        $tokens = array();

        foreach($providers as $provider)
        {
            $token = craft()->httpSession->get('oauth.console.token.'.$provider->getHandle());

            if($token)
            {
                $tokens[$provider->getHandle()] = true;
            }
        }
        $variables['providers'] = $providers;
        $variables['tokens'] = $tokens;

        $this->renderTemplate('oauth/console/_index', $variables);
    }
319480
public function getTemplateVar($templateVariableName)
    {
        if (! isset($this->templateVars[$templateVariableName])) {
            throw new \InvalidArgumentException(sprintf("Template variable '%s' is not defined.", $templateVariableName));
        }

        return $this->templateVars[$templateVariableName];
    }
1133242
public function getDefaultValue(string $variableName)
    {
        if (isset($this->defaultValues[$variableName])) {
            return $this->defaultValues[$variableName];
        }

        return null;
    }
1194316
public static function setToken(string $variableName = '_MF_SESSION_INTEGRITY_TOKEN_'): bool
    {
        static::init();
        $variableName = (string)$variableName;
        $vHandler = Variables::getInstance();
        $vHandler->session->set($variableName, static::buildToken());
        return true;
    }
133015
public function toQuery( $variableSet, $factVariableBinding )
	{
		$variable = $this->variable['originalPrefix']
			? "{$this->variable['originalPrefix']}:{$this->variable['name']}"
			: $this->variable['name'];
		$aspects = implode("','", $this->getAspectsCovered( $variableSet, $factVariableBinding ) );
		$class = get_class($this);
		return "(lyquidity:aspectMatch(\$lyquidity:factVariable,\$lyquidity:variableSet,.,\$$variable,('$aspects'),'$class'))";
	}
292160
function variableArray( $blockName, $varName )
    {
        $ret = $this->variable( $blockName, $varName );

        if ( is_array( $ret ) )
        {
            $arr = array();
            foreach ( $ret as $key => $retItem )
            {
                $arr[$key] = explode( ';', $retItem );
            }
            $ret = $arr;
        }
        else if ( $ret !== false )
        {
            $ret = trim( $ret ) === '' ? array() : explode( ';', $ret );
        }

        return $ret;
    }
175098
def get_variable_set(self, variable_set, data):
        """"""

        if data.get('dynamic_layers'):
            variable_set = []  # TODO
        elif data.get('layers'):
            op, layer_ids = data['layers'].split(':', 1)
            op = op.lower()
            layer_ids = [int(x) for x in layer_ids.split(',')]

            if op in ('show', 'include'):
                variable_set = [x for x in variable_set if x.index in layer_ids]
            elif op in ('hide', 'exclude'):
                variable_set = [x for x in variable_set if x.index not in layer_ids]
        elif self.service.render_top_layer_only:
            variable_set = [variable_set[0]]

        return variable_set
413587
public function getTags($methodVars)
    {
        // Only allow full authed calls
        if ($this->getFullAuth() === true) {
            // Check for required variables
            if (!empty($methodVars['album']) && !empty($methodVars['artist'])) {
                // Set the variables
                $vars = array(
                    'method' => 'album.gettags',
                    'api_key' => $this->getAuth()->apiKey,
                    'sk' => $this->getAuth()->sessionKey
                );
                $vars = array_merge($vars, $methodVars);

                // Generate a call signiture
                $sig = $this->apiSig($this->getAuth()->apiSecret, $vars);
                $vars['api_sig'] = $sig;

                $tags = array();
                // Make the call
                if ($call = $this->apiGetCall($vars)) {
                    if (count($call->tags->tag) > 0) {
                        $i = 0;
                        foreach ($call->tags->tag as $tag) {
                            $tags[$i]['name'] = (string) $tag->name;
                            $tags[$i]['url'] = (string) $tag->url;
                            $i++;
                        }

                        return $tags;
                    } else {
                        throw new NoResultsException('User has no tags for this artist');
                    }
                } else {
                    return false;
                }
            } else {
                throw new InvalidArgumentException('You must include album, artist and tags variables in the call for this method');
            }
        } else {
            throw new NotAuthenticatedException('Method requires full auth. Call auth.getSession using lastfmApiAuth class');
        }
    }
1041441
private function getFactComponents( $variableSet, $fact )
	{
		// Lookup the contextRef and unitRef
		$contextRef = FactValues::getContextRef( $fact );
		$unitRef = FactValues::getUnitRef( $fact );

		return array(
			'contextRef' => $contextRef,
			'unitRef' => $unitRef,
		);
	}