Get the payload to be placed in the "down" file.

@return array
186237
protected function getDownFilePayload()
    {
        // Get the Laravel file data & add ours (selected view)
        $data = parent::getDownFilePayload();
        $data['view'] = $this->option('view');

        if(!isset($data['allowed'])) {
            $data['allowed'] =  $this->option('allow');
        }
        return $data;
    }
759929
protected function _getPayload()
	{
		$aPayload[self::APPLE_RESERVED_NAMESPACE] = array();

		if (isset($this->_sText)) {
			$aPayload[self::APPLE_RESERVED_NAMESPACE]['alert'] = (string)$this->_sText;
		}
		if (isset($this->_nBadge) && $this->_nBadge >= 0) {
			$aPayload[self::APPLE_RESERVED_NAMESPACE]['badge'] = (int)$this->_nBadge;
		}
		if (isset($this->_sSound)) {
			$aPayload[self::APPLE_RESERVED_NAMESPACE]['sound'] = (string)$this->_sSound;
		}
		if (isset($this->_bContentAvailable)) {
			$aPayload[self::APPLE_RESERVED_NAMESPACE]['content-available'] = (int)$this->_bContentAvailable;
		}
		if (isset($this->_sCategory)) {
			$aPayload[self::APPLE_RESERVED_NAMESPACE]['category'] = (string)$this->_sCategory;
		}

		if (is_array($this->_aCustomProperties)) {
			foreach($this->_aCustomProperties as $sPropertyName => $mPropertyValue) {
				$aPayload[$sPropertyName] = $mPropertyValue;
			}
		}

		return $aPayload;
	}
1148866
public function getPayload() {
        $payload = array();
        if ($this->serviceSid) {
            $payload['service_sid'] = $this->serviceSid;
        }
        if ($this->endpointId) {
            $payload['endpoint_id'] = $this->endpointId;
        }
        if ($this->deploymentRoleSid) {
            $payload['deployment_role_sid'] = $this->deploymentRoleSid;
        }
        if ($this->pushCredentialSid) {
            $payload['push_credential_sid'] = $this->pushCredentialSid;
        }

        return $payload;
    }
645032
public function payload()
    {
        if (!$this->payloadCreated) {
            $this->payload = $this->createPayload();
            $this->payloadCreated = true;
        }
        return $this->payload;
    }
1062761
public function getFiles()
    {
        if (!in_array($this->getMethod(), array('POST', 'PUT', 'DELETE', 'PATCH'))) {
            return array();
        }

        $files = array();

        foreach ($this->fields->all() as $name => $field) {
            if ($field->isDisabled()) {
                continue;
            }

            if ($field instanceof Field\FileFormField) {
                $files[$name] = $field->getValue();
            }
        }

        return $files;
    }
579864
protected function getEveryOption()
    {
        return [
            'notmailed'     => $this->_('Not emailed'),
            'tomail'        => $this->_('To email'),
            'toremind'      => $this->_('Needs reminder'),
            'hasnomail'     => $this->_('Missing email'),
            'notmailable'   => $this->_('Not allowed to email'),
        ];
    }
1372275
public function getUploadedFiles()
    {
        if ($c = $this->model) {
            $a = explode(',', $this->value);
            $b = array();
            foreach ($a as $val) {
                if ($val) {
                    $b[] = $val;
                }
            }
            $files = implode(',', filter_var_array($b, FILTER_VALIDATE_INT));
            if ($files) {
                $c->addCondition('id', 'in', ($files ? $files : 0));
                $data = $c->getRows(array(
                    'id',
                    'url',
                    'thumb_url',
                    $this->getOriginalFilenameFieldName(),
                    $this->getFilesizeFieldName()
                ));
            } else {
                $data = array();
            }

            return $this->formatFiles($data);
        }
    }
982706
public function toData()
    {
        if ($this->type === self::TYPE_LOCATION) {
            return ['content_type' => 'location'];
        }

        return array_merge([
            'content_type' => 'text',
            'title' => $this->title,
            'payload' => $this->payload,
        ], $this->imageUrl ? ['image_url' => $this->imageUrl] : []);
    }
1017413
protected function _payload()
    {
        $results = array();
        foreach( $this->Parameters as $key => $val )
        {
            if ( is_array( $val ) )
            {
                foreach ( $val as $vkey => $vval )
                {
                    $results[] = urlencode( $key ) . '[' . urlencode( $vkey ) . ']=' . urlencode( $vval );
                }
            }
            else
            {
                $results[] = urlencode( $key ) . '=' . urlencode( $val );
            }
        }
        return implode( '&', $results );
    }
101731
public function getBins()
    {
        if (!isset($this->package['bin'])) {
            return array();
        }

        $bins = array();
        foreach ($this->package['bin'] as $bin) {
            $bins []= $this->getAbsolutePath($bin);
        }

        return $bins;
    }
1342319
protected function getOutstanding(): array
	{
		$migrations = $this->getMigrationsFilteredByConnection();

		if(!empty($migrations))
		{
			foreach($this->getMigrated() as $migrated)
			{
				foreach($migrations as $key => $migration)
				{
					if($migrated->package === $migration->package && $migrated->version === $migration->version)
					{
						unset($migrations[$key]);
					}
				}
			}

			usort($migrations, function($a, $b)
			{
				return strcmp($a->version, $b->version);
			});
		}

		return $migrations;
	}
612983
public function getInput()
    {
        $data = $this->getRequest()->getParsedBody();
        
        if (is_array($data)) {
            $files = $this->getRequest()->getUploadedFiles();
            $data = array_replace_recursive($data, (array)$files);
        }
        
        return $data;
    }
72443
public function toArray()
    {
        if (! isset($this->payload['title'])) {
            throw CouldNotCreateCard::titleNotProvided();
        }

        if (count($this->buttons) > 0) {
            $this->payload['buttons'] = $this->buttons;
        }

        return $this->payload;
    }
1218084
function payload()
    {
        if ( $this->IsFault )
        {
            return json_encode( array(
                'result' => null,
                'error' => array( 'faultCode' => $this->FaultCode, 'faultString' => $this->FaultString ),
                'id' => $this->Id ) );
        }
        else
        {
            return json_encode( array(
                'result' => $this->Value,
                'error' => null,
                'id' => $this->Id ) );
        }
    }
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();
        }
    }
439634
protected function getDropdownValues()
    {
        if ($source = array_get($this->field->options(), 'value_source')) {

            $values = $this->getDropdownValuesFromSource($source);

            if (false !== $values) {
                return $values;
            }
        }

        return array_get($this->field->options(), 'values', []);
    }
770530
protected function payload()
    {
        $buffer = "";

        # Payload
        $buffer .= $this->message;
        Debug::Log(Debug::DEBUG, 'Message PUBLISH: Message='.$this->message);

        return  $buffer;
    }