Get a value of a variable which will be exposed to the template files
during render.

@param string $which variable to get value of.

@return mixed as value of variable, or null if value is not set.
497923
public function getVariable($which)
    {
        if (isset($this->data[$which])) {
            return $this->data[$which];
        } elseif (isset($this->config["data"])) {
            return $this->config["data"][$which];
        }

        return null;
    }
934001
public function get($name)
    {
        if (array_key_exists($name, $this->runnableVariables)) {
            return $this->runnableVariables[$name];
        }
        return null;
    }
318424
public function get($name)
	{
		if(isset($this->global_vars[$name]))
		{
			return $this->global_vars[$name];
		}

		return null;
	}
1094735
public function getValue( $key )
	{
		if( !isset( $this->_values[ $key ] ) ) {
			return null;
		}

		return $this->_values[ $key ];
	}
816475
public function getBranches($which = self::BRANCHES_LOCAL)
    {
        $which       = (int)$which;
        $arguments  = array(
            '--no-color'
        );

        $local  = (($which & self::BRANCHES_LOCAL) == self::BRANCHES_LOCAL);
        $remote = (($which & self::BRANCHES_REMOTE) == self::BRANCHES_REMOTE);

        if ($local && $remote) {
            $arguments[] = '-a';
        } else if ($remote) {
            $arguments[] = '-r';
        }

        /** @var $result CallResult */
        $result = $this->getGit()->{'branch'}($this->getRepositoryPath(), $arguments);
        $result->assertSuccess(
            sprintf('Cannot retrieve branch from "%s"', $this->getRepositoryPath())
        );

        $output = rtrim($result->getStdOut());
        if (empty($output)) {
            return array();
        }

        $branches = array_map(function($b) {
            $line   = rtrim($b);
            if (strpos($line, '* ') === 0) {
                $line   = substr($line, 2);
            }
            $line   = ltrim($line);
            return $line;
        }, explode("\n", $output));
        return $branches;
    }
266660
private function _get_value($args){
    if ( $this->id ){
      $var =& $this->data;
      foreach ( $args as $a ){
        if ( !isset($var[$a]) ){
          return null;
        }
        $var =& $var[$a];
      }
      return $var;
    }
  }
366585
public function getVariable(string $name)
    {
        foreach ($this->variables as $variable) {
            if ($variable->getName() == $name) {
                return $variable;
            }
        }

        return null;
    }
1336777
public static function getData($key = null) {
        if (!isset($key)) {
            return self::$viewContext->viewData;
        }
        else {
            return isset(self::$viewContext->viewData[$key]) ? self::$viewContext->viewData[$key] : null;
        }
    }
225331
public function getVar(int $index = 0)
    {
        return isset($this->vars[$index]) ? $this->vars[$index] : null;
    }
1008665
protected function getScreen($what) {
        $this->requestsRepeats++;
        if (!empty($this->screen)) {
            if ($this->requestsRepeats < 10) {
                return $this->screen[$what];
            }
            $this->requestsRepeats = 0;
        }

        $this->screen['rows'] = $this->screen['columns'] = 0;
        if ($this->OS == self::OS_LINUX && ('file' != $this->outputMethod)) {
            preg_match_all("/rows.([0-9]+);.columns.([0-9]+);/", strtolower(exec('stty -a  2> /dev/null | grep columns')), $output);
            if (sizeof($output) == 3) {
                if (count($output[0])) {
                    $this->screen['rows'] = $output[1][0];
                    $this->screen['columns'] = $output[2][0];
                } else {
                    $this->screen['columns'] = 140;
                    $this->screen['rows'] = 40;
                }
            }
        } else {
            $this->screen['columns'] = 140;
            $this->screen['rows'] = 40;
        }
        return $this->screen[$what];
    }
167596
public function get($name)
    {
        if (!isset($this->values[$name])) {
            return null;
        }
        return $this->values[$name];
    }
1180761
static public function getvar($name, $isint = false) 
    {
        if(!empty($_GET[$name]) && is_array($_GET[$name])) {
            return (array)$_GET[$name];
        }
        $response = (isset($_GET[$name]) ? filter_var($_GET[$name], FILTER_SANITIZE_STRING) : "");

        return ((boolean)$isint ? (int)$response : (string)$response);
    }
387488
public final function getHeaderValue($name)
    {
        self::checkString($name);

        foreach ($this->_headers as $headerName => $headerValue) {

            if (strcasecmp($name, $headerName) === 0) {

                return $headerValue;
            }
        }

        return null;
    }
262704
public static function get(string $name)
  {
    if (isset($_SESSION['application']['with'][$name])) {
      $_SESSION['application']['flash']['used'] = true;
      return $_SESSION['application']['with'][$name];
    }

    return Variable::has($name) ? Variable::$data[$name] : null;
  }
1259612
public function get($name = ''){
            if(false === $var = $this->getRedisObj()->get($name)){
                $this->getRedisObj()->set($name, $var = parent::get($name));
            }

            return $var;
        }
333492
public function enqueueGumroadLibs(string $which = 'all')
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        if ($which === 'all' || $which === 'overlay') {
            $data = $this->enqueueGumroadOverlayLibs();
        }
        if ($which === 'all' || $which === 'embed') {
            $data = array_merge_recursive($data ?? [], $this->enqueueGumroadEmbedLibs());
        }
        return $data = $data ?? [];
    }
73024
public function get($key)
    {
        if ($this->has($key)) {
            return $this->templates[(string) $key];
        }

        return null;
    }