used to display the step.

@param array $aCallTimeVars - place any custom vars that you want to pass through the call here

@return string
7416
public function Render($sSpotName = null, $aCallTimeVars = array())
    {
        $oUser = TdbDataExtranetUser::GetInstance();
        if (!is_null($oUser->fieldName) && !$oUser->IsLoggedIn()) {
            $this->SetLastUserBoughtToSession($oUser);
        }
        $sHTML = parent::Render($sSpotName, $aCallTimeVars);
        TdbShopOrderStep::ResetMarkOrderProcessAsCompleted();
        // if the user is not logged in, we need to clear the user object

        if (empty($oUser->id) || false == $oUser->IsLoggedIn()) {
            $tmp = $oUser->GetInstance(true);
        }

        return $sHTML;
    }
386224
public function parseThinkVar($vars)
    {
        $type  = strtoupper(trim(array_shift($vars)));
        $param = implode('.', $vars);

        if ($vars) {
            switch ($type) {
                case 'SERVER':
                    $parseStr = '$_SERVER[\'' . $param . '\']';
                    break;
                case 'GET':
                    $parseStr = '$_GET[\'' . $param . '\']';
                    break;
                case 'POST':
                    $parseStr = '$_POST[\'' . $param . '\']';
                    break;
                case 'COOKIE':
                    $parseStr = '$_COOKIE[\'' . $param . '\']';
                    break;
                case 'SESSION':
                    $parseStr = '$_SESSION[\'' . $param . '\']';
                    break;
                case 'ENV':
                    $parseStr = '$_ENV[\'' . $param . '\']';
                    break;
                case 'REQUEST':
                    $parseStr = '$_REQUEST[\'' . $param . '\']';
                    break;
                case 'CONST':
                    $parseStr = strtoupper($param);
                    break;
                default:
                    $parseStr = '\'\'';
                    break;
            }
        } else {
            switch ($type) {
                case 'NOW':
                    $parseStr = "date('Y-m-d g:i a',time())";
                    break;
                case 'LDELIM':
                    $parseStr = '\'' . ltrim($this->config['tpl_begin'], '\\') . '\'';
                    break;
                case 'RDELIM':
                    $parseStr = '\'' . ltrim($this->config['tpl_end'], '\\') . '\'';
                    break;
                default:
                    if (defined($type)) {
                        $parseStr = $type;
                    } else {
                        $parseStr = '';
                    }
            }
        }

        return $parseStr;
    }
895533
private function getVarRegexes() : array
    {
        $variableRegexes = [];

        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['vars'])) {
                $variableRegexes = array_merge($variableRegexes, $groupOptions['vars']);
            }
        }

        return $variableRegexes;
    }
1120138
public function getTopArtists($methodVars)
    {
        $vars = array(
            'method' => 'chart.gettopartists',
            'api_key' => $this->auth->apiKey
        );
        $vars = array_merge($vars, $methodVars);

        if ($call = $this->apiGetCall($vars)) {
            $i = 0;
            foreach ($call->artists->artist as $artist) {
                $topArtists[$i]['name'] = (string) $artist->name;
                $topArtists[$i]['playcount'] = (string) $artist->playcount;
                $topArtists[$i]['listeners'] = (string) $artist->listeners;
                $topArtists[$i]['mbid'] = (string) $artist->mbid;
                $topArtists[$i]['url'] = (string) $artist->url;
                $topArtists[$i]['streamable'] = (string) $artist->streamable;
                $topArtists[$i]['image']['small'] = (string) $artist->image[0];
                $topArtists[$i]['image']['medium'] = (string) $artist->image[1];
                $topArtists[$i]['image']['large'] = (string) $artist->image[2];
                $topArtists[$i]['image']['extralarge'] = (string) $artist->image[3];
                $topArtists[$i]['image']['mega'] = (string) $artist->image[4];
                $i++;
            }

            return $topArtists;
        } else {
            return false;
        }
    }
185193
public function getTabsURL(Array $qvars = array()) {
    if (isset($this->tabsUrl)) {
      return $this->tabsUrl;
    }
    return URLHelper::getURL('/'.implode('/',$this->getTabsId()), URLHelper::RELATIVE, $qvars);
  }
132502
public function prepareVars()
    {
        $this->vars['model'] = $this->model;
        $this->vars['items'] = $this->model->menus;

        $this->vars['emptyItem'] = [
            'label' => Lang::get('rainlab.builder::lang.menu.new_menu_item'),
            'icon' => 'icon-life-ring',
            'code' => 'newitemcode',
            'url' => '/'
        ];

        $this->vars['emptySubItem'] = [
            'label' => Lang::get('rainlab.builder::lang.menu.new_menu_item'),
            'icon' => 'icon-sitemap',
            'code' => 'newitemcode',
            'url' => '/'
        ];
    }
1027599
public function prepareVars()
    {

        if ($value = $this->getLoadValue()) {

            $value = DateTimeHelper::makeCarbon($value, false);

            $value = $value instanceof Carbon ? $value->toDateTimeString() : $value;
        }

        $this->vars['name'] = $this->getFieldName();
        $this->vars['value'] = $value ?: '';
        $this->vars['field'] = $this->formField;
        $this->vars['mode'] = $this->mode;
        $this->vars['minDate'] = $this->minDate;
        $this->vars['maxDate'] = $this->maxDate;
        $this->vars['yearRange'] = $this->yearRange;
        $this->vars['firstDay'] = $this->firstDay;
        $this->vars['showWeekNumber'] = $this->showWeekNumber;
        $this->vars['ignoreTimezone'] = $this->ignoreTimezone;
        $this->vars['format'] = $this->format;
        $this->vars['formatMoment'] = $this->getDateFormatMoment();
        $this->vars['formatAlias'] = $this->getDateFormatAlias();
    }
234597
public function getIndentationPrefix($times = 1)
    {
        if (!is_integer($times)) {
            throw new \InvalidArgumentException('The times parameter has to be an integer');
        }

        $indentation = '';

        for ($i = 0; $i < $times; $i++) {
            $indentation .= $this->getTemplate()->getIndentation();
        }

        return $indentation;
    }
525601
public function sortAdminColumns($vars)
    {
        if (!isset($vars['orderby'])) {
            return $vars;
        }

        $admin_columns = $this->getAdminColumns();
        if (!Arr::iterable($admin_columns)) {
            return $vars;
        }

        foreach ($admin_columns as $k) {
            if ($vars['orderby'] !== $k) {
                continue;
            }

            $vars = array_merge($vars, array(
                'meta_key'=> $k,
                'orderby' => 'meta_value'
            ));

            break;
        }
        return $vars;
    }
1336953
public function getTopTracks($methodVars)
    {
        $vars = array(
            'method' => 'chart.gettoptracks',
            'api_key' => $this->auth->apiKey
        );
        $vars = array_merge($vars, $methodVars);

        if ($call = $this->apiGetCall($vars)) {
            $i = 0;
            foreach ($call->tracks->track as $track) {
                $topTracks[$i]['name'] = (string) $track->name;
                $topTracks[$i]['playcount'] = (string) $track->playcount;
                $topTracks[$i]['listeners'] = (string) $track->listeners;
                $topTracks[$i]['mbid'] = (string) $track->mbid;
                $topTracks[$i]['url'] = (string) $track->url;
                $topTracks[$i]['streamable'] = (string) $track->streamable;
                $topTracks[$i]['fulltrack'] = (string) $track->streamable['fulltrack'];
                $topTracks[$i]['artist']['name'] = (string) $track->artist->name;
                $topTracks[$i]['artist']['mbid'] = (string) $track->artist->mbid;
                $topTracks[$i]['artist']['url'] = (string) $track->artist->url;
                $topTracks[$i]['image']['small'] = (string) $track->image[0];
                $topTracks[$i]['image']['medium'] = (string) $track->image[1];
                $topTracks[$i]['image']['large'] = (string) $track->image[2];
//                $topTracks[$i]['image']['extralarge'] = (string) $track->image[3];
//                $topTracks[$i]['image']['mega'] = (string) $track->image[4];
                $i++;
            }

            return $topTracks;
        } else {
            return false;
        }
    }
1132235
public function getFlashVarsAsString()
    {
        $params=array();
        foreach($this->flashVars as $k=>$v)
        {
            if(!is_string($v))
                $v = json_encode($v);
            $params[] = $k.':"'.urlencode($v).'"';
        }

        if(!array_key_exists('baseUrl', $this->flashVars))
            $params[] = 'baseUrl:"'.urlencode($this->baseUrl).'"';

        if(!array_key_exists('moduleBaseUrl', $this->flashVars))
            $params[] = 'moduleBaseUrl:"'.urlencode($this->moduleBaseUrl).'"';

        if(!array_key_exists('rslBaseUrl', $this->flashVars))
            $params[] = 'rslBaseUrl:"'.urlencode($this->rslBaseUrl).'"';

        if(!array_key_exists('locale', $this->flashVars))
            $params[] = 'locale:"'.urlencode($this->getFlexLocale(Yii::$app->language)).'"';

        return implode(',',$params);
    }
228444
public function Render($sViewName = 'standard', $sViewType = 'Customer', $aCallTimeVars = array())
    {
        $oView = new TViewParser();
        $oMsgManager = TCMSMessageManager::GetInstance();
        $sMessages = '';
        if ($oMsgManager->ConsumerHasMessages($this->GetMsgConsumerName())) {
            $sMessages = $oMsgManager->RenderMessages($this->GetMsgConsumerName());
        }
        $oView->AddVar('sMessages', $sMessages);
        $oView->AddVar('oWishlist', $this);
        $oView->AddVar('aCallTimeVars', $aCallTimeVars);
        $aOtherParameters = $this->GetAdditionalViewVariables($sViewName, $sViewType);
        $oView->AddVarArray($aOtherParameters);

        return $oView->RenderObjectPackageView($sViewName, TdbPkgShopWishlist::VIEW_PATH, $sViewType);
    }
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');
        }
    }
438228
public function getBindingsAsVars( $vars = array() )
	{
		// $vars = array_merge( $existingVars, $this->parameters );
		$vars = $this->getParametersAsVars( $vars );

		foreach( $this->factVariableBindings as $bindingQName => /** @var \XBRL\Formulas\factVariableBinding $varBinding */ $varBinding )
		{
			if ( $varBinding->isFallback )
			{
				$current = $varBinding->yieldedFact;
			}
			else
			{
				// Using current makes sure the fact is set and the binding variables are correct
				if ( ! $varBinding->valid() ) $varBinding->rewind();
				$current = $varBinding->current();
			}
			if ( $current instanceof XPath2NodeIterator ) $current->Reset();
			$vars[ $bindingQName ] = $current;
			$vars = array_merge( $vars, $varBinding->getAdditionalVars() );
		}

		foreach( $this->generalVariableBindings as $bindingQName => /** @var VariableBinding $varBinding */ $varBinding )
		{
			// Using current makes sure the fact is set and the binding variables are correct
			// $vars[ $bindingQName ] = $this->variablesByQName[ $bindingQName ]->bindAsSequence ? $varBinding->facts : $varBinding->current();
			if ( ! $varBinding->valid() ) $varBinding->rewind();
			$current = $varBinding->current();
			if ( $current instanceof XPath2NodeIterator )
			{
				// BMS 2018-04-04 Test 0023 V-03 fails because the vars are being reset presumably because a var is not a clone
				$current = $current->CloneInstance();
				$current->Reset();
			}
			else if ( $current instanceof XPathNavigator)
			{
				$current = $current->CloneInstance();
			}
			$vars[ $bindingQName ] = $current;
		}

		return $vars;
	}
468686
public function inflectPackageVars($vars)
    {
        if ($vars['type'] === 'october-plugin') {
            return $this->inflectPluginVars($vars);
        }

        if ($vars['type'] === 'october-theme') {
            return $this->inflectThemeVars($vars);
        }

        return $vars;
    }
11569
def get_time_variable(ds):
    '''
    
    '''
    for var in ds.variables:
        if getattr(ds.variables[var], 'axis', '') == 'T':
            return var
    else:
        candidates = ds.get_variables_by_attributes(standard_name='time')
        if len(candidates) == 1:
            return candidates[0].name
        else:  # Look for a coordinate variable time
            for candidate in candidates:
                if candidate.dimensions == (candidate.name,):
                    return candidate.name

    return None
1105541
public function getRealtimeData()
    {
        $this->validateViewId();

        $this->setMetrics('rt:activeUsers');

        $data = $this->service->data_realtime->get(
            $this->viewId,
            $this->getMetricsAsString(),
            $this->getOptions()
        );

        return $data->toSimpleObject()->totalsForAllResults;
    }