Return submitted data if properly submitted or returns NULL if validation fails or
if there is no submitted data.

@return object submitted data; NULL if not valid or not submitted or cancelled
967086
public function get_data() {
        if ($data = parent::get_data()) {
            if (!empty($data->saveasdraft)) {
                $data->status = policy_version::STATUS_DRAFT;
            }
        }
        return $data;
    }
992092
public function getData()
    {
        $this->validate(
            'username',
            'password',
            'transactionId',
            'amount',
            'currency',
            'clientIp',
            'returnUrl',
            'cancelUrl',
            'notifyUrl',
            'clientMerchantId'
        );

        $document = new \DOMDocument('1.0', 'utf-8');
        $document->formatOutput = false;
        $document->createElement('soapenv:Header');

        $envelope = $document->appendChild(
            $document->createElementNS('http://schemas.xmlsoap.org/soap/envelope/', 'soapenv:Envelope')
        );
        $envelope->setAttribute('xmlns:urn', 'urn:pscservice');

        $body = $envelope->appendChild(
            $document->createElement('soapenv:Body')
        );

        $disposition = $body->appendChild(
            $document->createElement('urn:createDisposition')
        );

        $disposition->appendChild(
            $document->createElement('urn:username', $this->getUsername())
        );

        $disposition->appendChild(
            $document->createElement('urn:password', $this->getPassword())
        );

        $disposition->appendChild(
            $document->createElement('urn:mtid', $this->getTransactionId())
        );

        $disposition->appendChild(
            $document->createElement('urn:subId', $this->getSubId())
        );

        $disposition->appendChild(
            $document->createElement('urn:amount', $this->getAmount())
        );

        $disposition->appendChild(
            $document->createElement('urn:currency', $this->getCurrency())
        );

        $disposition->appendChild(
            $document->createElement('urn:okUrl', rawurlencode($this->getReturnUrl()))
        );

        $disposition->appendChild(
            $document->createElement('urn:nokUrl', rawurlencode($this->getCancelUrl()))
        );

        $disposition->appendChild(
            $document->createElement('urn:pnUrl', rawurlencode($this->getNotifyUrl()))
        );

        $disposition->appendChild(
            $document->createElement('urn:shopId', $this->getShopId())
        );

        $disposition->appendChild(
            $document->createElement('urn:shopLabel', $this->getShopLabel())
        );

        $disposition->appendChild(
            $document->createElement('urn:merchantclientid', $this->getClientMerchantId())
        );

        if ($countryRestrictionValues = $this->getCountryRestrictions()) {
            $countryRestriction = $disposition->appendChild(
                $document->createElement('urn:dispositionRestrictions')
            );

            $countryRestriction->appendChild(
                $document->createElement('urn:key', 'COUNTRY')
            );

            $countryRestriction->appendChild(
                $document->createElement('urn:value', implode(',', $countryRestrictionValues))
            );
        }

        if ($minAgeRestrictionValue = $this->getMinAgeRestriction()) {
            $minAgeRestriction = $disposition->appendChild(
                $document->createElement('urn:dispositionRestrictions')
            );

            $minAgeRestriction->appendChild(
                $document->createElement('urn:key', 'MIN_AGE')
            );

            $minAgeRestriction->appendChild(
                $document->createElement('urn:value', $minAgeRestrictionValue)
            );
        }

        if ($minKycLevelRestrictionValue = $this->getMinKycLevelRestriction()) {
            $minKycLevelRestriction = $disposition->appendChild(
                $document->createElement('urn:dispositionRestrictions')
            );

            $minKycLevelRestriction->appendChild(
                $document->createElement('urn:key', 'MIN_KYC_LEVEL')
            );

            $minKycLevelRestriction->appendChild(
                $document->createElement('urn:value', $minKycLevelRestrictionValue)
            );
        }

        return $document->saveXML();
    }
984598
public function getInputData() {
		$a = array(
			'extension' => $this->extensionId,
			'dttm' => null,
			'data' => $this->data->asArray(),
			'verificationMode' => $this->verificationMode ? 'true' : 'false'
		);

		return $a;
	}
1347309
protected function buildErrorData()
    {
        if (is_null($this->errorCode)) {
            return null;
        }

        $data = [
            'code' => $this->errorCode,
            'message' => $this->message ?: $this->resolveMessage()
        ];

        return array_merge($data, $this->data);
    }
447513
public function getData()
    {
        $data = [];

        foreach (static::$_classFields[get_called_class()] as $field => $options) {
            $data[$field] = $this->_getFieldValue($field);
        }

        if ($this->validationErrors) {
            $data['validationErrors'] = $this->validationErrors;
        }

        return $data;
    }
926526
protected function validateDataStore()
    {
        $field = 'data';

        if ($this->isExcluded($field)) {
            return null;
        }

        $value = $this->getSubmitted($field);

        if ($this->isUpdating()) {
            if (!isset($value)) {
                $this->unsetSubmitted($field);
                return null;
            }
        } else if (empty($value)) {
            $value = $this->store->getConfig(null, $this->store->getDefault());
            // Will be set later
            unset($value['title'], $value['meta_title']);
        }

        if (!is_array($value)) {
            $this->setErrorInvalid($field, $this->translation->text('Settings'));
            return false;
        }

        $this->setSubmitted('data', $value);

        $this->validateDataTitleStore();
        $this->validateDataEmailStore();
        $this->validateDataMapStore();
        $this->validateDataMetaTitleStore();
        $this->validateDataMetaDescriptionStore();
        $this->validateDataTranslationStore();
        $this->validateDataThemeStore();

        return !$this->isError();
    }
1251835
public function get_data() {
        $data = parent::get_data();
        if (!empty($data->saverubric)) {
            $data->status = gradingform_controller::DEFINITION_STATUS_READY;
        } else if (!empty($data->saverubricdraft)) {
            $data->status = gradingform_controller::DEFINITION_STATUS_DRAFT;
        }
        return $data;
    }
1174711
public function getRedirectData()
    {
        // Build the post data as expected by Postfinance.
        $params = $this->getData();
        $postData = array();
        foreach ($params as $key => $value) {
            $postData[$key] = $value;
        }

        $postData['SHASIGN'] = Helper::createShaHash(
            $postData,
            $this->getRequest()->getShaIn(),
            $this->getRequest()->getHashingMethod()
        );

        return $postData;
    }
559479
public function getResponseData()
    {
        $data = null;

        if ($body = $this->getResponseBody()) {
            if (($decoded = json_decode($body, true))) {
                $data = $decoded;
            }
        }

        return $data;
    }
701971
protected function getInputData()
    {
        $_data = request()->all();

        array_set($data, 'record.email', array_get($_data, 'email'));
        array_set($data, 'record.password', array_get($_data, 'password'));
        array_set($data, 'new_password', array_get($_data, 'new_password'));
        array_set($data, 'old_password', array_get($_data, 'old_password'));
        array_set($data, 'roles', array_get($_data, 'roles', []));

        return $data;
    }
154486
public function getData()
    {
        $this->validateParams();

        $result = trim($this->getResult());

        if (substr($result, -2, 2) == '\"') {
            $result = stripslashes($result);
        }

        parse_str($result, $data);

        $sign     = trim($data['sign'], '"');
        $sign     = str_replace(' ', '+', $sign);
        $signType = trim($data['sign_type'], '"');

        $data['sign']      = $sign;
        $data['sign_type'] = $signType;

        return $data;
    }
821507
public function get_data() {
		$data        = array(
			$this->slug => null,
		);
		$submit_data = uix()->request_vars( 'post' );
		$id = $this->id();
		if ( isset( $submit_data[ $id ] ) ) {
			$this->data[ $id ][ $this->slug ] = $submit_data[ $id ];
		}
		if ( isset( $this->data[ $id ] ) ) {
			$data = $this->data[ $id ];
		}

		return $data;
	}
525678
public function get_data() {
        $data = parent::get_data();
        if (!empty($data->saveguide)) {
            $data->status = gradingform_controller::DEFINITION_STATUS_READY;
        } else if (!empty($data->saveguidedraft)) {
            $data->status = gradingform_controller::DEFINITION_STATUS_DRAFT;
        }
        return $data;
    }
655485
public function getCreatedBy()
    {
        $createdByAttribute = $this->createdByAttribute;
        return (!is_string($createdByAttribute) || empty($createdByAttribute)) ? null : $this->$createdByAttribute->getData();
    }
975842
public function getSaveData()
    {
        $this->defineFormFields();

        $result = [];

        /*
         * Source data
         */
        $data = $this->arrayName ? post($this->arrayName) : post();
        if (!$data) {
            $data = [];
        }

        /*
         * Spin over each field and extract the postback value
         */
        foreach ($this->allFields as $field) {
            /*
             * Disabled and hidden should be omitted from data set
             */
            if ($field->disabled || $field->hidden) {
                continue;
            }

            /*
             * Handle HTML array, eg: item[key][another]
             */
            $parts = HtmlHelper::nameToArray($field->fieldName);
            if (($value = $this->dataArrayGet($data, $parts)) !== null) {

                /*
                 * Number fields should be converted to integers
                 */
                if ($field->type === 'number') {
                    $value = !strlen(trim($value)) ? null : (float) $value;
                }

                $this->dataArraySet($result, $parts, $value);
            }
        }

        /*
         * Give widgets an opportunity to process the data.
         */
        foreach ($this->formWidgets as $field => $widget) {
            $parts = HtmlHelper::nameToArray($field);

            $widgetValue = $widget->getSaveValue($this->dataArrayGet($result, $parts));
            $this->dataArraySet($result, $parts, $widgetValue);
        }

        return $result;
    }
1296989
protected function verifyRequiredData()
    {
        $errors = array(
            'missing' => array(),
            'invalid' => array()
        );
        $error = FALSE;
        if (!empty($this->properties['required'])) {
            foreach ($this->properties['required'] as $property => $type) {
                if (!isset($this->data[$property])) {
                    $errors['missing'][] = $property;
                    $error = TRUE;
                    continue;
                }
                if ($type !== NULL && gettype($this->data[$property]) !== $type) {
                    $errors['invalid'][] = $property;
                    $error = TRUE;
                }
            }
        }
        if ($error){
            $errorMsg = '';
            if (!empty($errors['missing'])){
                $errorMsg .= "Missing [".implode(",",$errors['missing']). "] ";
            }
            if (!empty($errors['invalid'])){
                $errorMsg .= "Invalid [".implode(",",$errors['invalid'])."]";
            }
            throw new InvalidData($errorMsg);
        }
        return $error;
    }
837765
public function getValues()
    {
        // When there's no data and the filter itself is not required,
        // we don't return values
        if (!$this->data && !$this->isRequired()) {
            return null;
        }

        // Don't return any values when "inputsToFilter" is set to empty array
        if (!$this->needsFiltering()) {
            return array();
        }

        return parent::getValues();
    }