Return the context formated for DynamoDB
@return array
762839
public function getForDynamoDB()
    {
        $parameters = parent::getForDynamoDB();

        $count = $this->count;
        if (null !== $count) {
            $parameters['Count'] = $count;
        }

        $limit = $this->limit;
        if (null !== $limit) {
            $parameters['Limit'] = $limit;
        }

        $exclusiveStartKey = $this->exclusiveStartKey;
        if (null !== $exclusiveStartKey) {
            $parameters['ExclusiveStartKey'] = $exclusiveStartKey;
        }

        return $parameters;
    }
125913
protected function getContext()
    {
        $trace = debug_backtrace();

        $file = isset($trace[2]['file'])
            ? $trace[2]['file']
            : ''
        ;

        $line = isset($trace[2]['line'])
            ? $trace[2]['line']
            : ''
        ;

        return [
            'file' => $file,
            'line' => $line,
        ];
    }
98159
public function getContext()
    {
        $directory = \sys_get_temp_dir().'/ctb-'.\microtime();
        $this->fs->mkdir($directory);
        $this->write($directory);

        $result = new Context($directory, $this->format, $this->fs);
        $result->setCleanup(true);

        return $result;
    }
509000
public function getForDynamoDB()
    {
        $action = $this->getAction();
        $value = $this->getValue();

        $parameters['Action'] = $action;
        if (isset($value)) {
            $parameters['Value'] = $value->getForDynamoDB();
        }

        return $parameters;
    }
466875
public function getForDynamoDB()
    {
        $hash  = $this->getHash();
        $range = $this->getRange();
        $parameters = array('HashKeyElement' => $hash->getForDynamoDB());
        if (null !== $range) {
            $parameters['RangeKeyElement'] = $range->getForDynamoDB();
        }
        return $parameters;
    }
721171
public function getContext()
    {

        if (is_null($this->context) && !is_null($this->contextId)) {
            $this->context = Context::fromRecordId($this->contextId, $this->getDataConnector());
        }

        return $this->context;

    }
1272684
public function getContext()
    {
        if (empty($this->context)) {
            return;
        }

        array_unshift($this->context, "<?php \$context = array(); \n");
        $this->context[] = "return \$context;";
        $context = implode(null, $this->context);

        // Erases context to make sure the next template context won't append to
        $this->context = null;

        return eval('?>' . $context);
    }
1218671
public function getContext()
    {
        if (isset($this->server['REQUEST_METHOD']) && isset($this->server['REQUEST_URI'])) {
            return $this->server['REQUEST_METHOD'].' '.strtok($this->server['REQUEST_URI'], '?');
        }
    }
1304450
public function getSchema()
    {
        $backup = array();
        $tables = $this->getTables();
        foreach ($tables as $table) {
            $backup[] = $this->getBackup();
        }
        
        return implode("\n\n", $backup);
    }
1281129
public function getContextData(): Array
    {
        return [
        'id' => $this->getId(),
        'name' => $this->getName(),
        'client_id' => $this->getClientId(),
        'client_secret' => $this->getClientSecret(),
        'application_type' => $this->getApplicationType(),
        'redirect_uris' => $this->getRedirectUris(),
        'cors_uris' => $this->getCorsUris()
        ];
    }
931208
public function get_table_keys() {
		if ( isset( self::$memo[ get_called_class() ][ __METHOD__ ] ) ) {
			return self::$memo[ get_called_class() ][ __METHOD__ ];
		}

		$keys = array();

		foreach ( $this->get_attribute_keys() as $key ) {
			if ( ! $this->has_map_method( $key ) &&
				 ! $this->has_compute_method( $key )
			) {
				$keys[] = $key;
			}
		}

		return self::$memo[ get_called_class() ][ __METHOD__ ] = $keys;
	}
1214103
public function get_context() {
        if ($this->coursecontext === null) {
            $this->coursecontext = \context_course::instance($this->course->id);
        }
        return $this->coursecontext;
    }
1060102
private function getPostConfiguration()
    {
        $driver     = Input::post('dbdriver');
        $database   = Input::post('dbname');

        /**
         * point to APP_PATH/storage/db if driver is sqlite
         */
        if($driver == 'sqlite'){
            $database = APP_PATH.'storage/db/'.$database.'.sqlite';
        }

        return array(
            'driver'    => $driver,
            'host'      => Input::post('dbhost'),
            'database'  => $database,
            'username'  => Input::post('dbuser'),
            'password'  => Input::post('dbpass'),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
        );
    }
1309528
public function meta()
    {
        return [
            'Connection' => e($this->meta['queue']->connection),
            'Queue' => e($this->meta['queue']->tube),
            'Driver' => e($this->meta['queue']->driver),
            'Your threshold' => e($this->meta['queue']->alert_heartbeat_greater_than).'s',
            'Last heartbeat' => e($this->meta['queue']->last_heartbeat),
        ];
    }
1176863
public function getCommandContext()
    {
        $context = parent::getCommandContext();
        $context->response = $this->getResponse();
        $context->request = $this->getRequest();

        return $context;
    }
571485
public function getContext()
    {
        $context = new KViewContextTemplate();
        $context->setSubject($this);
        $context->setData($this->_data);
        $context->setLayout($this->getLayout());

        return $context;
    }
648279
protected function getContext()
	{
		$lv = $this->getLaravel();
		$aimeos = $lv->make( 'aimeos' )->get();
		$context = $lv->make( 'aimeos.context' )->get( false, 'command' );

		$tmplPaths = $aimeos->getCustomPaths( 'controller/jobs/templates' );
		$view = $lv->make( 'aimeos.view' )->create( $context, $tmplPaths );

		$langManager = \Aimeos\MShop::create( $context, 'locale/language' );
		$langids = array_keys( $langManager->searchItems( $langManager->createSearch( true ) ) );
		$i18n = $lv->make( 'aimeos.i18n' )->get( $langids );

		$context->setEditor( 'aimeos:jobs' );
		$context->setView( $view );
		$context->setI18n( $i18n );

		return $context;
	}