Return any parameter references in the select statement (if there is one)
{@inheritDoc}
@see \XBRL\Formulas\Resources\Resource::getVariableRefs()
335868
public function getVariableRefs()
	{
		$variableRefs = isset( $this->dimensionXPath2Expression )
			? $this->dimensionXPath2Expression->getParameterQNames()
			: array();

		if ( isset( $this->testXPath2Expression ) )
		{
			$variableRefs = array_merge( $variableRefs, $this->testXPath2Expression->getParameterQNames() );
		}

		return $variableRefs;
	}
1063972
public function getParameterQNames()
	{
		$result = array();
		$forQNames = array(); // Need to ignore variables that are defined for the 'for' clause

		$this->traverseNodes( $this->exprTree, function( $node ) use( &$result, &$forQNames )
		{
			if ( $node instanceof ForNode )
			{
				$forQNames[] = $node->getQNVarName();
			}
			else if ( $node instanceof VarRefNode )
			{
				$qname = $node->getQNVarName();
				if ( ! in_array( $qname, $forQNames ) )
				{
					$result[] = $qname;
				}
			}

			return true;
		} );

		return $result;
	}
1088101
public function getVariables() 
	{
		return array(
			'use_wysiwyg' => $this->wysiwyg,
			'fields' => $this->show,
			'labels' => $this->labels,
			'data' => $this->data,
			'errors' => $this->errors,
			'holders' => $this->holders);
	}
1074040
protected function getVariables(): array
    {
        $variables                  = $this->getBasicVariables();
        $variables['properties']    = $this->definition->getProperties();
        $variables['className']     = $this->name;
        $variables['modelName']     = $this->definition->getModelName();
        $variables['listClassName'] = $this->definition->getListItemName();

        return $variables;
    }
162201
private function indirectReference() {
    if ($this->currentType === '$' && !$this->isLookAhead('{')) {
      $node = new VariableVariableNode();
      $this->mustMatch('$', $node);
      $node->addChild($this->indirectReference(), 'variable');
      return $node;
    }
    return $this->referenceVariable();
  }
130376
public function get_var($query = ''){
        if( !$query ){
            $query = $this->build_query();
        }
        $this->clear();
        return $this->db->get_var($query);
    }
1240471
function &get_config_vars($name=null)
	{
		if(!isset($name) && is_array($this->_config[0])) {
			return $this->_config[0]['vars'];
		} else if(isset($this->_config[0]['vars'][$name])) {
			return $this->_config[0]['vars'][$name];
		} else {
			// var non-existant, return valid reference
			$_tmp = null;
			return $_tmp;
		}
	}
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];
    }
401402
public function getVariables()
    {
        return $this->variables == null?$this->variables = new SiteVariablesImpl($this->db):$this->variables;
    }
1127021
protected function _getPageVariables()
    {
        $table = $this->_table();
        $controller = $this->_controller();
        $scope = $this->_action()->getConfig('scope');

        $data = [
            'modelClass' => $controller->modelClass,
            'singularHumanName' => Inflector::humanize(Inflector::underscore(Inflector::singularize($controller->modelClass))),
            'pluralHumanName' => Inflector::humanize(Inflector::underscore($controller->getName())),
            'singularVar' => Inflector::singularize($controller->getName()),
            'pluralVar' => Inflector::variable($controller->getName()),
        ];

        try {
            $data += [
                'modelSchema' => $table->getSchema(),
                'displayField' => $table->getDisplayField(),
                'primaryKey' => $table->getPrimaryKey(),
            ];
        } catch (Exception $e) {
            // May be empty if there is no table object for the action
        }

        if ($scope === 'entity') {
            $data += [
                'primaryKeyValue' => $this->_primaryKeyValue()
            ];
        }

        return $data;
    }
981736
public static function getVariables($matches, &$vars = null)
    {
        if (!$matches) {
            return [];
        }

        if ($vars === null) {
            $vars = [];
        }

        foreach ($matches as $i => $var) {
            if (is_numeric($i)) {
                continue;
            }

            if (strpos((string) $var, '/') !== false) {
                $var = explode('/', (string) $var);
            }

            $vars[$i] = $var;
        }

        return $vars;
    }
901294
protected function _getConfigParamsSelectSnippet($vars)
    {
        $select = '';
        if (is_array($vars) && !empty($vars)) {
            foreach ($vars as &$field) {
                $field = '"' . $field . '"';
            }
            $select = ' and oxvarname in ( ' . implode(', ', $vars) . ' ) ';
        }

        return $select;
    }
63791
public function getVariables() 
	{
		if(count($this->items) > 1) {
			$this->attributes['name'] .= '[]';
		}
		
		$this->attributes['type'] = 'checkbox';
		
		return array(
			'attributes' 	=> $this->attributes,
			'items'			=> $this->items,
			'selected'		=> $this->value);
	}
1085002
public function getFrom()
    {
        $result = [];
        $params = [];

        $refCount = $this->query->aliasRefCount;

        foreach ($this->query->tablesAliasList as $alias) {
            if (!ArrayHelper::getValue($refCount, $alias)) {
                continue;
            }

            try {
                /** @var $from BaseJoin */
                $from = ArrayHelper::getValue(
                    $this->query->tableJoinsMap,
                    $alias,
                    ArrayHelper::STRICT
                );

                list($fromSql, $fromParams) = $this->compile($from);
                array_push($result, $fromSql);

                $params = array_merge($params, $fromParams);
            } catch (KeyError $e) {
                continue;
            }
        }

        return [$result, $params];
    }
1087967
public function getVariableRefs()
	{
		$variableRefs = array();

		if ( $this->variable )
		{
			$variableRefs[] = new QName(
				$this->variable['originalPrefix'],
				$this->variable['namespace'],
				$this->variable['name']
			);
		}

		foreach ( $this->expressionsList as $expressionName => $details )
		{
			if ( ! $details['expression'] ) continue;
			$variableRefs = array_merge( $variableRefs, $this->${$details['xpath']}->getParameterQNames() );
		}

		return $variableRefs;
	}
294600
public function getParametersAsVars( $vars = array() )
	{
		foreach ( $this->parameters as $qname => $parameter )
		{
			$vars[ $qname ] = $parameter->result;
		}

		return $vars;
	}
311755
public function getVariableRefs()
	{
		$variableRefs = array();

		if ( $this->dataTypes )
		{
			if ( isset( $this->dataTypes['qnameXPath2Expressions'] ) && $this->dataTypes['qnameXPath2Expressions'] )
			foreach ( $this->dataTypes['qnameXPath2Expressions'] as $qnameXPath2Expression )
			{
				$variableRefs = array_merge( $variableRefs, $qnameXPath2Expression->getParameterQNames() );
			}
		}

		return $variableRefs;
	}