Constructs a FieldContext

@param string $sid The unique string that identifies the resource
@return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldContext
767293
public function getContext($sid) {
        return new FieldContext(
            $this->version,
            $this->solution['assistantSid'],
            $this->solution['taskSid'],
            $sid
        );
    }
290407
public function getContext($sid) {
        return new FunctionVersionContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['functionSid'],
            $sid
        );
    }
1370242
def get(self, sid):
        
        return CallContext(self._version, account_sid=self._solution['account_sid'], sid=sid, )
427341
function(sId, oBindingContext) {
									var oAvailableRoleType = oBindingContext.getObject();
									return new Item({
										key: oAvailableRoleType.key,
										text: oAvailableRoleType.text
									});
								}
591740
public function getContext($sid) {
        return new InteractionContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['sessionSid'],
            $sid
        );
    }
738617
def get(self, sid):
        
        return TaskContext(self._version, assistant_sid=self._solution['assistant_sid'], sid=sid, )
65833
protected function proxy() {
        if (!$this->context) {
            $this->context = new AlphaSenderContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
666053
def get(self, sid):
        
        return DocumentContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
820362
public static function GetInstance($sId)
    {
        $oElement = TdbPkgShopAffiliate::GetNewInstance();
        $oElement->Load($sId);
        if (!empty($oElement->sqlData['class'])) {
            $sClassName = $oElement->sqlData['class'];
            $oElementNew = new $sClassName();
            $oElementNew->LoadFromRow($oElement->sqlData);
            $oElement = $oElementNew;
        }

        return $oElement;
    }
8172
public function getContext($sid) {
        return new FactorContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['identity'],
            $sid
        );
    }
515476
public function getContext($sid) {
        return new MediaContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['messageSid'],
            $sid
        );
    }
169088
public static ScmOperationContextBuilder builder(ScmOperationContext context) {
        ScmOperationContextBuilder builder = new ScmOperationContextBuilder();
        builder.impl = new ScmOperationContextImpl(context);
        return builder;
    }
537312
public function getContext()
    {
        if (!isset($this->context)) {
            $this->context = new RequestContext();
            $this->context->fromRequest($this->getRequest());
        }

        return $this->context;
    }
1017064
function getUser($sid) {
		if ($this->user == null) {
			$this->user = $this->getUserFromSession($sid);
		}
        return $this->user;
    }
1213356
public function getContext($sid) {
        return new UserBindingContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['userSid'],
            $sid
        );
    }
1045057
protected function _getObjectField($sId, $sObject, $sField)
    {
        if (!$sId) {
            return '';
        }
        $oObj = oxNew($sObject);
        if ($oObj->load($sId)) {
            return $oObj->$sField->value;
        }

        return '';
    }
100061
public function getConsoleUrl($sid = '') {
		$data = $this->_data;
		$data['sid'] = $sid;
		$this->_make_request(self::CONSOLE_URL, $data, 'POST');

		return $this->_response['console'];
	}