Active Channel Information: Current macro context.

NB: SNMP exceptions are caught and in such cases null is returned
as not all channels have all properties.

> Current macro context.

@return array Current macro context.
169249
public function chanMacroContext()
    {
        try
        {
            return $this->getSNMP()->walk1d( self::OID_ASTERISK_CHANNEL_MACRO_CONTEXT );
        }
        catch( \Cityware\Snmp\Exception $e )
        {
            return null;
        }
    }
201690
public function current() {
    if ($this->position >= $this->length) {
      return NULL;
    }
    return $this->tokens[$this->position];
  }
1091114
protected function context()
    {
        return collect($this->option())->only([
            'ansi',
            'no-ansi',
            'no-interaction',
            'quiet',
            'verbose',
        ])->filter()->mapWithKeys(function ($value, $key) {
            return ["--{$key}" => $value];
        })->all();
    }
200830
public function getActiveFrom()
    {
        return ! empty($value = $this->getContentValue('active_from', null))
            ? $this->convertToCarbon($value)
            : null;
    }
25091
public function getActiveSetup()
    {
        $localizationSetup = $this->config->kernel->localization;

        return array(
            'charset'  => $localizationSetup->charset,
            'encoding' => $localizationSetup->encoding,
            'language' => $localizationSetup->language,
            'locale'   => $localizationSetup->locale,
        );
    }
159967
public function getActiveExperiments()
    {
        if ($this->cache->contains($this->activeExperimentsSettingName)) {
            return $this->cache->fetch($this->activeExperimentsSettingName)['value'];
        }

        if ($this->has($this->activeExperimentsSettingName)) {
            $experiments = $this->get($this->activeExperimentsSettingName)->getValue();
        } else {
            $this->create(
                [
                    'name' => $this->activeExperimentsSettingName,
                    'value' => [],
                    'type' => 'hidden',
                ]
            );
            $experiments = [];
        }

        $this->cache->save($this->activeExperimentsSettingName, ['value' => $experiments]);

        return $experiments;
    }
59776
public function current()
    {
        if ($this->_callback === null) {
            return parent::current();
        }

        return call_user_func_array($this->_callback, parent::current());
    }
558705
public static function get_active_metaplates( ) {

		global $post;

		if( empty( $post ) ){ return; } // no post - return

		// GET METAPLATEs
		$metaplates = self::get_registry();
		$meta_stack = array();
		if ( is_array( $metaplates ) ) {
			foreach ( $metaplates as $metaplate_try ) {
				$is_plate = self::get_metaplate( $metaplate_try['id'] );
				if ( ! empty( $is_plate['post_type'][ $post->post_type ] ) ) {
					switch ( $is_plate['page_type'] ) {
						case 'single':
							if ( is_single() || is_page() ) {
								$meta_stack[] = $is_plate;
							}
							break;
						case 'archive':
							if ( ( is_archive() || is_front_page() ) && ( ! is_page() || ! is_single() ) ) {
								$meta_stack[] = $is_plate;
							}
							break;
						default:
							$meta_stack[] = $is_plate;
							break;
					}
				}
			}
		}

		return $meta_stack;

	}
481539
public function current()
	{
		if ( is_callable($this->callback) ) {
			$tmp = $this->issues[$this->offset];
			$callback = $this->callback;

			return $callback($tmp);
		}
		else {
			return $this->issues[$this->offset];
		}
	}
396825
public function current()
    {
        $values = $this->convertToArray(parent::current(), ':');

        $cntHeader = count($this->header);
        $cntValues = count($values);

        // ignore if more data received then we have headers
        if (empty($this->header) || $cntHeader < $cntValues) {
            return false;
        }

        // correct data
        if ($cntHeader > $cntValues) {
            $values = $this->fixData($values);
        }

        return array_combine($this->header, $values);
    }
1224668
public function list_current_channels()
    {
        if (!$this->is_loggedin) {
            return false;
        }

        $response = $this->exec_curl('/api/s/' . $this->site . '/stat/current-channel');

        return $this->process_response($response);
    }
105175
protected function buildStreamContext()
    {
        $opts = [];

        // If we have a logger defined, merge the context options from our logger with the context array
        if ($this->logQueries() && $logger = $this->logger()) {
            $opts['mongodb'] = $logger->getContext();
        }

        $context = stream_context_create($opts);
        return ['context' => $context];
    }
195128
public function current()
    {
        if ($this->valid()) {
            $key = $this->baseArrayMap[$this->iteratorIterationPosition];
            $value = $this->baseConcreteData[$key];
            return $this->internalFilterHooks($key, $value, 'output') ?
                $this->internalSanitizeHooks($key, $value, 'output') : null;
        }
    }
782685
public function getCurrentConnectionKey()
    {
        $current = $this->getCurrentConnection();

        return $current ? $current->getConnectionKey() : $this->credentials->createConnectionKey();
    }
437579
public function current()
    {
        switch ($this->flags & 0x0F) {
            default:
            case self::CURRENT_ARRAY:
                return [$this->lhs->current(), $this->rhs->current()];
            case self::CURRENT_LHS:
                return $this->lhs->current();
            case self::CURRENT_RHS:
                return $this->rhs->current();
            case self::CURRENT_0:
                return null;
        }
    }
923627
protected function useScopeActive()
    {
        if (is_null($this->data['scope_active'])) {
            return config('pxlcms.generator.models.scopes.only_active') === CmsModelWriter::SCOPE_GLOBAL;
        }

        return (bool) $this->data['scope_active'];
    }
124648
protected function getContext(): array
	{
		if($this->app->isCommandLine() === false && $this->container->has(Gatekeeper::class))
		{
			$user = $this->container->get(Gatekeeper::class)->getUser();

			return ['user_id' => $user !== null ? $user->getId() : null];
		}

		return [];
	}