get extra data

@return array
480036
protected function getExtra(AnalyticsOverview $overview)
    {
        $timespan = $overview->getTimespan() - $overview->getStartOffset();
        $extra = parent::getExtra($overview);

        if ($timespan <= 1) {
            $extra['dimensions'] = 'ga:date,ga:hour';
        } elseif ($timespan <= 7) {
            $extra['dimensions'] = 'ga:date,ga:hour';
        } elseif ($timespan <= 31) {
            $extra['dimensions'] = 'ga:week,ga:day,ga:date';
        } else {
            $extra['dimensions'] = 'ga:isoYearIsoWeek';
        }

        return $extra;
    }
759487
protected function GetDataList()
    {
        $query = 'SELECT `data_extranet_user`.`id` AS UserId,
                       `data_extranet_user`.`name` AS EMail,
                       `data_extranet_user`.`customer_number` AS KundenNr,
                       `data_extranet_user`.`datecreated`,
                       `pkg_newsletter_user`.`signup_date` AS NewsletterAnmeldedatum,

                        AdrB.`company` AS RechAdr_Firma,
                        AdrBSalutation.`name` AS RechAdr_Anrede,
                        AdrB.`firstname` AS RechAdr_Vorname,
                        AdrB.`lastname` AS RechAdr_Nachname,
                        AdrB.`street` AS RechAdr_Strasse,
                        AdrB.`streetnr` AS RechAdr_Hausnummer,
                        AdrB.`city` AS RechAdr_Stadt,
                        AdrB.`postalcode` AS RechAdr_PLZ,
                        AdrB.`telefon` AS RechAdr_Telefon,
                        AdrB.`fax` AS RechAdr_Fax,
                        AdrBCountry.`name` AS RechAdr_Land,

                        AdrS.`company` AS LiefAdr_Firma,
                        AdrSSalutation.`name` AS LiefAdr_Anrede,
                        AdrS.`firstname` AS LiefAdr_Vorname,
                        AdrS.`lastname` AS LiefAdr_Nachname,
                        AdrS.`street` AS LiefAdr_Strasse,
                        AdrS.`streetnr` AS LiefAdr_Hausnummer,
                        AdrS.`city` AS LiefAdr_Stadt,
                        AdrS.`postalcode` AS LiefAdr_PLZ,
                        AdrS.`telefon` AS LiefAdr_Telefon,
                        AdrS.`fax` AS LiefAdr_Fax,
                        AdrSCountry.`name` AS LiefAdr_Land

                   FROM `data_extranet_user`
              LEFT JOIN `data_extranet_user_address` AS AdrB ON (`data_extranet_user`.`default_billing_address_id` = AdrB.`id`)
              LEFT JOIN `data_extranet_salutation` AS AdrBSalutation ON AdrB.`data_extranet_salutation_id` = AdrBSalutation.`id`
              LEFT JOIN `data_country` AS AdrBCountry ON AdrB.`data_country_id` = AdrBCountry.`id`

              LEFT JOIN `data_extranet_user_address` AS AdrS ON (`data_extranet_user`.`default_shipping_address_id` = AdrS.`id`)
              LEFT JOIN `data_extranet_salutation` AS AdrSSalutation ON AdrB.`data_extranet_salutation_id` = AdrSSalutation.`id`
              LEFT JOIN `data_country` AS AdrSCountry ON AdrS.`data_country_id` = AdrSCountry.`id`

              LEFT JOIN `pkg_newsletter_user` ON (`data_extranet_user`.`id` = `pkg_newsletter_user`.`data_extranet_user_id`)
               ';
        $oTCMSRecordList = new TCMSRecordList();
        /** @var $oTCMSRecordList TCMSRecordList */
        $oTCMSRecordList->sTableName = 'data_extranet_user';
        $oTCMSRecordList->Load($query);

        return $oTCMSRecordList;
    }
867019
public static function getExtraFields(){
        return array_map(function($field){
            $extra = [
                'id' => $field['id'],
                'label' => $field['label'],
                'filterable' => array_key_exists('filterable', $field) ? $field['filterable'] : false,
            ];
            if (array_key_exists('columnPosition', $field)) {
                $extra['columnPosition'] = $field['columnPosition'];
            }
            return $extra;
        }, self::_getUserExtraFields());
    }
906464
public function getData($key = null)
    {
        if ($key === null) {
            return $this->extraData;
        } elseif (isset($this->extraData[$key])) {
            return $this->extraData[$key];
        } else {
            return null;
        }
    }
966497
public function getExtraFields()
    {
        $extraFields = new FieldList();

        $token = $this->getSecurityToken();
        if ($token) {
            $tokenField = $token->updateFieldSet($this->fields);
            if ($tokenField) {
                $tokenField->setForm($this);
            }
        }
        $this->securityTokenAdded = true;

        // add the "real" HTTP method if necessary (for PUT, DELETE and HEAD)
        if (strtoupper($this->FormMethod()) != $this->FormHttpMethod()) {
            $methodField = new HiddenField('_method', '', $this->FormHttpMethod());
            $methodField->setForm($this);
            $extraFields->push($methodField);
        }

        return $extraFields;
    }
137834
public function getData()
    {
        $this->validate(
            'secretKey'
        );

        return array(
            'LMI_PAYEE_PURSE' => $this->httpRequest->request->get('LMI_PAYEE_PURSE'),
            'LMI_PAYMENT_AMOUNT' => $this->httpRequest->request->get('LMI_PAYMENT_AMOUNT'),
            'LMI_PAYMENT_NO' => $this->httpRequest->request->get('LMI_PAYMENT_NO'),
            'LMI_MODE' => $this->httpRequest->request->get('LMI_MODE'),
            'LMI_SYS_INVS_NO' => $this->httpRequest->request->get('LMI_SYS_INVS_NO'),
            'LMI_SYS_TRANS_NO' => $this->httpRequest->request->get('LMI_SYS_TRANS_NO'),
            'LMI_PAYER_PURSE' => $this->httpRequest->request->get('LMI_PAYER_PURSE'),
            'LMI_PAYER_WM' => $this->httpRequest->request->get('LMI_PAYER_WM'),
            'LMI_CAPITALLER_WMID' => $this->httpRequest->request->get('LMI_CAPITALLER_WMID'),
            'LMI_PAYMER_NUMBER' => $this->httpRequest->request->get('LMI_PAYMER_NUMBER'),
            'LMI_PAYMER_EMAIL' => $this->httpRequest->request->get('LMI_PAYMER_EMAIL'),
            'LMI_EURONOTE_NUMBER' => $this->httpRequest->request->get('LMI_EURONOTE_NUMBER'),
            'LMI_EURONOTE_EMAIL' => $this->httpRequest->request->get('LMI_EURONOTE_EMAIL'),
            'LMI_WMCHECK_NUMBER' => $this->httpRequest->request->get('LMI_WMCHECK_NUMBER'),
            'LMI_TELEPAT_PHONENUMBER' => $this->httpRequest->request->get('LMI_TELEPAT_PHONENUMBER'),
            'LMI_TELEPAT_ORDERID' => $this->httpRequest->request->get('LMI_TELEPAT_ORDERID'),
            'LMI_PAYMENT_CREDITDAYS' => $this->httpRequest->request->get('LMI_PAYMENT_CREDITDAYS'),
            'LMI_HASH' => $this->httpRequest->request->get('LMI_HASH'),
            'LMI_SYS_TRANS_DATE' => $this->httpRequest->request->get('LMI_SYS_TRANS_DATE'),
            'LMI_SECRET_KEY' => $this->httpRequest->request->get('LMI_SECRET_KEY'),
            'LMI_SDP_TYPE' => $this->httpRequest->request->get('LMI_SDP_TYPE'),
            'LMI_PAYMENT_DESC' => $this->httpRequest->request->get('LMI_PAYMENT_DESC'),
            'LMI_PAYER_COUNTRYID' => $this->httpRequest->request->get('LMI_PAYER_COUNTRYID'),
            'LMI_PAYER_PCOUNTRYID' => $this->httpRequest->request->get('LMI_PAYER_PCOUNTRYID'),
            'LMI_PAYER_IP' => $this->httpRequest->request->get('LMI_PAYER_IP'),
            'LMI_LANG' => $this->httpRequest->request->get('LMI_LANG'),
            'LMI_DBLCHK' => $this->httpRequest->request->get('LMI_DBLCHK'),
        );
    }
459484
def get_extra_data(self, data):
        """"""
        result = {}
        for key in data.keys():
            if key.startswith(self.name + '-'):
                new_key = key.replace(self.name + '-', '')
                result[new_key] = data[key]
        return result
97507
public function get_data() {
		$settings = $this->get_settings()[ $this->number ];

		return array_merge(
			[ 'title' => $settings['title'] ],
			Acf::get_widget_field( $this->id )
		);
	}
456213
public function getData()
    {
        $result = [
            'type' => $this->type
        ];

        switch($this->type)
        {

            case self::TYPE_WEB:
              $result['url'] = $this->url;

              if ($this->webview_height_ratio) {
                  $result['webview_height_ratio'] = $this->webview_height_ratio;
              }

              if ($this->messenger_extensions){
                  $result['messenger_extensions'] = $this->messenger_extensions;
                  $result['fallback_url'] = $this->fallback_url;
              }
            break;

        }

        return $result;
    }
622589
public function toData()
    {
        switch ($this->type) {
            case self::TYPE_SHARE:
                return array_merge([
                    'type' => $this->type,
                ], $this->extra);
            case self::TYPE_ACCOUNT_LINK:
                return [
                    'type' => $this->type,
                    'url' => $this->payload,
                ];
            default:
                return [
                    'type' => $this->type,
                    'title' => $this->title,
                ] + $this->makePayload();
        }
    }
1076656
protected function getData()
    {
        $data = [];
        foreach ($this->data as $dataValue) {
            $row = [];
            foreach ($this->table->getColumns() as $column) {
                if ($column instanceof ColumnInterface) {
                    $row[$column->getData()] = $column->getContent($dataValue);
                    continue;
                }

                if (is_callable($column->getFormatter())) {
                    $row[$column->getData()] = call_user_func_array(
                        $column->getFormatter(),
                        [
                            $dataValue[$column->getData()],
                            $dataValue
                        ]
                    );
                } else {
                    $row[$column->getData()] = (string)$dataValue[$column->getData()];
                }
            }
            $data[] = $row;
        }

        return $data;
    }
25824
public function getData() : array
    {
        $data = [];
        $request = $this->getRequest();
        $method = $request->getMethod();

        switch ($method) {

            //GET
            case Request::METHOD_GET:
                $data = $_GET ?: [];
            break;

            //POST
            case Request::METHOD_POST:
                $data = $_POST ?: [];
            break;

            //Other supported
            case Request::METHOD_DELETE:
            case Request::METHOD_PUT:
            case Request::METHOD_PATCH:
                parse_str($request->getRequestBody(), $data);
            break;

        }

        return $data;
    }
679405
public function getData() {
        if ($this->toSort && !empty($this->getOrder())) {
            $this->sortData();
        }

        if ($this->getLimit()) {
            return array_slice($this->data, $this->getOffset(), $this->getLimit());
        } else {
            return $this->data;
        }
    }
632026
protected function getElementData()
    {
        $arResult = [
            'offer_id_list'          => $this->obElement->offer()->active()->lists('id'),
            'additional_category_id' => $this->obElement->additional_category()->lists('id'),
            'trashed'                => $this->obElement->trashed(),
        ];

        return $arResult;
    }
754688
public function getData()
    {
        return [
            'recipient' => $this->user_ref ? ['user_ref' => $this->recipient] : ['id' => $this->recipient],
            'message' => [
                'text' => $this->text
            ],
            'tag'=> $this->tag,
            'notification_type'=> $this->notification_type,
            'messaging_type' => $this->messaging_type
        ];
    }
416044
public function gatherFileData()
    {
        $files = get_included_files();
        $data = array();
        foreach ($files as $file) {
            array_push($data, array(
                'name' => $file,
                'size' => filesize($file)
            ));
        }
        return $data;
    }
979368
public function getData()
    {
        if (empty($this->data)) {
            $this->data = [
                'entityClassName' => $this->getEntityClassName(),
                'entityName' => $this->getEntityName(),
                'formFilename' => lcfirst($this->getEntityName()).'-form'
            ];
        }
        return $this->data;
    }