Get the array representation of this attachment action.

@return array
427522
public function toArray()
    {
        return [
            'name' => $this->getName(),
            'text' => $this->getText(),
            'style' => $this->getStyle(),
            'type' => $this->getType(),
            'value' => $this->getValue(),
            'confirm' => $this->getConfirm()->toArray(),
        ];
    }
1231663
public function toArray(): array
    {
        return [
            'scheme'    => $this->scheme,
            'authority' => $this->authority,
            'path'      => $this->path,
            'query'     => $this->query,
            'fragment'  => $this->fragment
        ];
    }
1224709
public function toArray()
    {
        $result             = parent::toArray();
        $result['mediaId']  = $this->mediaId;
        $result['picUrl']   = $this->picUrl;

        return $result;
    }
132357
public function getAsArray(): array
	{
		$data = [];

		foreach ($this->getBindings() as $bind) {
			$data[$bind->getParameter()] = $bind->getValue();
		}

		return $data;
	}
1091612
public function toArray()
    {
        return [
            'name'     => $this->getName(),
            'label'    => $this->getLabel(),
            'width'    => $this->getWidth(),
            'fixed'    => $this->isFixed(),
            'minWidth' => $this->getMinWidth(),
            'sortable' => $this->getSortable(),
            'type'     => $this->getType(),
        ];
    }
618343
public function toArray()
    {
        return array(
            'name' => $this->_name,
            'type' => $this->_datatype,
            'length' => $this->_length,
            'notnull' => $this->_notnull,
            'default' => $this->_default,
            'autoincrement' => $this->_autoIncrement,
            'comment' => $this->_comment,
        );
    }
1201603
public function toArray()
	{
		$attributes = parent::toArray();

		if (isset($attributes['permissions']))
		{
			$attributes['permissions'] = $this->getPermissionsAttribute($attributes['permissions']);
		}

		return $attributes;
	}
1340824
public function toArray()
    {
        return [
            'field' => $this->getRawProperty('field'),
            'from-field' => $this->getRawProperty('fromField'),
            'to-field' => $this->getRawProperty('toField'),
            'is-deleted' => $this->isDeleted,
            'is-added' => $this->isAdded,
        ];
    }
477464
public function getAsArray() {
        $a = [];
        if (isset($this->type)) {
            $a['type'] = $this->type;
        }
        if (isset($this->title)) {
            $a['title'] = $this->title;
        }
        if (isset($this->content)) {
            $a['content'] = $this->content;
        }
        return $a;
    }
1350008
public function toArray() {
        $r = [
            'from' => $this->from,
            'where' => $this->where,
            'order' => $this->order,
            'limit' => $this->limit,
            'offset' => $this->offset
        ];

        return $r;
    }
211490
public function toArray() {
		return [
			'key' => $this->key(),
			'url' => $this->url(),
			'formData' => $this->formData(),
			'cacheControl' => $this->cacheControl(),
			'expires' => $this->expires(),
			'acl' => $this->acl()
		];
	}
1078957
public function toArray()
    {
        return [
            'text' => $this->getText($this->getModel()),
            'attributes' => $this->getConditionAttributes($this->model)->htmlAttributesToString(),
            'url' => $this->getUrl($this->getModel()),
            'position' => $this->getPosition(),
            'icon' => $this->getIcon(),
            'hideText' => $this->hideText,
        ];
    }
383169
public static function asArray()
    {
        return array(
            'DEF' => self::DEF,
            'RECT' => self::RECT,
            'CIRCLE' => self::CIRCLE,
            'POLY' => self::POLY,
            'ELLIPSE' => self::ELLIPSE
        );
    }
532119
public function toArray() {
        $arr              = parent::toArray();
        $arr['json']      = $this->json;
        $arr['file_name'] = $this->fileName;
        $arr['file_path'] = $this->path;
        return $arr;
    }
316091
public function attachmentContent()
    {
        $output = [];

        if (wp_attachment_is_image()) {
            $output[] = sprintf(
                '<div class="attachment-image">%s</div>',
                wp_get_attachment_image(
                    get_the_ID(),
                    apply_filters('novusopress_view_attachment_image_size', 'medium')
                )
            );
        } else {
            $output[] = sprintf(
                '<div class="attachment-link"><a href="%s">%s</a></div>',
                wp_get_attachment_url(get_the_ID()),
                get_the_title()
            );
        }

        if (has_excerpt()) {
            $output[] = sprintf('<div class="entry-caption">%s</div>', get_the_excerpt());
        }

        return apply_filters('novusopress_view_attachment_content_output', implode('', $output));
    }
234710
public function toArray()
    {
        return array(
            'id' => $this->getId(),
            'nome' => $this->getNome(),
            'logo' => $this->getLogo(),
            'intro' => $this->getIntro(),
            'copyright' => $this->getCopyright()
        );
    }
1370092
public function toArray()
    {
        return [
            'fileId' => $this->file->getId(),
            'fileVersion' => $this->file->getVersion(),
            'usageType' => $this->usageType,
            'usageId' => $this->usageId,
            'status' => $this->status,
        ];
    }