Gets the object data from the $_POST array
@return array
493649
protected function prepPostData()
    {
        $oInput = Factory::service('Input');
        $aData  = [
            'first_name'               => trim(strip_tags($oInput->post('first_name'))),
            'last_name'                => trim(strip_tags($oInput->post('last_name'))),
            'organisation'             => trim(strip_tags($oInput->post('organisation'))),
            'email'                    => trim(strip_tags($oInput->post('email'))),
            'billing_email'            => trim(strip_tags($oInput->post('billing_email'))),
            'telephone'                => trim(strip_tags($oInput->post('telephone'))),
            'vat_number'               => trim(strip_tags($oInput->post('vat_number'))),
            'billing_address_line_1'   => trim(strip_tags($oInput->post('billing_address_line_1'))),
            'billing_address_line_2'   => trim(strip_tags($oInput->post('billing_address_line_2'))),
            'billing_address_town'     => trim(strip_tags($oInput->post('billing_address_town'))),
            'billing_address_county'   => trim(strip_tags($oInput->post('billing_address_county'))),
            'billing_address_postcode' => trim(strip_tags($oInput->post('billing_address_postcode'))),
            'billing_address_country'  => trim(strip_tags($oInput->post('billing_address_country'))),
        ];

        return $aData;
    }
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;
    }
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;
    }
559479
public function getResponseData()
    {
        $data = null;

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

        return $data;
    }
1285589
public final function toObject(): ?array
    {
        $data = null;
        if (!empty($this->data)) {
            // no need to type-cast
            if (is_object($this->data[0])) {
                return $this->data;
            }
            $data = $this->data;
            foreach ($data as &$dat) {
                $dat = (object) $dat;
            }
        }

        return $data;
    }
153154
private function postData()
    {
        if (empty($this->post)) {
            return;
        }

        $post = array_filter($this->post);

        return http_build_query($post);
    }
294894
protected function getPostObject(): array
    {
        $oInput             = Factory::service('Input');
        $oUserGroupModel    = Factory::model('UserGroup', 'nails/module-auth');
        $oUserPasswordModel = Factory::model('UserPassword', 'nails/module-auth');

        return [
            'slug'                  => $oInput->post('slug'),
            'label'                 => $oInput->post('label'),
            'description'           => $oInput->post('description'),
            'default_homepage'      => $oInput->post('default_homepage'),
            'registration_redirect' => $oInput->post('registration_redirect'),
            'acl'                   => $oUserGroupModel->processPermissions($oInput->post('acl')),
            'password_rules'        => $oUserPasswordModel->processRules($oInput->post('pw')),
        ];
    }
150394
public function data() : array
    {

        //Get data
        $data = get_fields($this->ID);
        $data['args'] = $this->args;

        //Do not use link
        if ($data['mod_image_link'] == "false") {
            $data['mod_image_link_url'] = "";
        }

        //Set image class
        $imgClasses = array();
        if ($data['mod_image_responsive'] === true) {
            $imgClasses[] = 'image-responsive';
        }
        $data['img_classes'] = implode(' ', $imgClasses);

        //Crop image (if non existing)
        $data['img_src'] = $this->maybeCropImage($data);

        //Add box classes
        $data['classes'] = implode(' ', apply_filters('Modularity/Module/Classes', array('box', 'box-filled'), $this->post_type, $this->args));

        return $data;
    }
843662
protected function get_data()
    {
        $post_type = $this->input->get('post_type');
        if( !post_type_exists($post_type) ){
            $this->error(sprintf($this->__('Post type %s does not exist.'), $post_type), 404);
        }
        if( !current_user_can('edit_posts') ){
            $this->error($this->__('Sorry, but you have no permission.'), 403);
        }
        $paged = max(intval($this->input->get('paged')), 1) - 1;
        $args = [
            'post_type' => $post_type,
            'suppress_filters' => false,
            'orderby' => 'title',
            'order' => 'ASC',
            'offset' => $paged * get_option('posts_per_page'),
            's' => $this->input->get('s'),
        ];
        if( $this->is_public_search ){
            // This is public search.
            $args = array_merge($args, [
                'post_status' => ['publish']
            ]);
        }else{
            // This is private search.
            $args = array_merge($args, [
                'post_status' => ['publish', 'draft', 'future'],
            ]);
            if( !current_user_can('edit_others_posts') ){
                $args['author'] = get_current_user_id();
            }
        }
        $data = [];
        foreach( get_posts($args) as $post){
            $data[] = [
                'id' => $post->ID,
                'name' => get_the_title($post),
            ];
        }
        return $data;
    }
409259
public function getPersonalData(): array
    {
        $photo = $this->input('photo_id');

        if (is_array($photo) && !$photo) {
            $photo = null;
        }

        return [
            'first_name' => $this->input('first_name'),
            'last_name' => $this->input('last_name'),
            'photo_id' => $photo,
            'description' => $this->input('description'),
            'phone' => $this->input('phone'),
            'address' => $this->input('address'),
            'notification_email' => $this->input('notification_email'),
        ];
    }
644469
function get_objects($sql, $class_name = 'stdClass', array $params = null, $index = null)
	{
		$result = array();
		$recset = $this->query($sql, MYSQLI_USE_RESULT);
		if (isset($index))
		{
			if (is_null($params))
				while ($obj = $recset->fetch_object($class_name))
					$result[$obj->$index] = $obj;
			else
				while ($obj = $recset->fetch_object($class_name, $params))
					$result[$obj->$index] = $obj;
		}
		else
		{
			if (is_null($params))
				while ($obj = $recset->fetch_object($class_name))
					$result[] = $obj;
			else
				while ($obj = $recset->fetch_object($class_name, $params))
					$result[] = $obj;
		}
		$recset->free_result();
		return $result;
	}
1369438
public function getData()
    {
        $data = array();
        foreach (get_object_vars($this) as $key => $value) {
            if (strpos($key, '__') !== 0) {
                $data[$key] = $value;
            }
        }

        return $data;
    }
237393
protected function _getData()
    {
        $data = array();

        if (isset($this->_query)) {
            $data = $this->getRepository()->fetch($this->_query, AnDomain::FETCH_ENTITY_LIST);
        }

        return $data;
    }
345381
public function getDataForm(): array
    {
        $data = [];
        foreach ($this->dicionario as $meta) {
            if($meta->getFormat() === "password") {
                $data[$meta->getColumn()] = "";
            } else {
                $data[$meta->getColumn()] = $meta->getValue();
            }
        }

        return $data;
    }
1152394
protected function getFormValues() {
    $input = array();
    foreach ($this->getInputParameters() as $parameter) {
      if (isset($_POST[$parameter['name']])) {
        $input[$parameter['name']] = $_POST[$parameter['name']];
      }
    }
    return $input;
  }
321135
public function getArrayCopy()
    {
        $obj_vars = get_object_vars($this);

        if (isset($obj_vars['postElements'])) {
            $obj_vars['postElements'] = $this->getPostElements()->toArray();
        }

        return $obj_vars;
    }
754955
public function getInputData() {
		if ($this->data) {
			return array(
				'extension' => $this->extensionId,
				'dttm' => null,
				'data' => $this->data->asArray(),
			);
		}

		return null;
	}