Get an array that represents the array form of each batch action to be sent to LDAP.

@return array
964160
public function getBatchArray()
    {
        $batchEntry = [];

        foreach ($this->batches as $batch) {
            $batchEntry[] = $batch->toArray();
        }

        return $batchEntry;
    }
1249719
public function toArray()
    {
        return [
            'name'                      => $this->name,
            'label'                     => $this->label,
            'description'               => $this->description,
            'sandboxed'                 => $this->sandboxed,
            'supports_inline_execution' => $this->supportsInlineExecution,
        ];
    }
887748
public function getActionIDs()
    {
        $actions = preg_split('/[\s,]+/', $this->actions, -1, PREG_SPLIT_NO_EMPTY);
        if (!empty($this->modelClass) && !empty($this->formActions)) {
            $actions = array_merge($actions, preg_split('/[\s,]+/', $this->formActions, -1, PREG_SPLIT_NO_EMPTY));
        }
        $actions = array_unique($actions);

        return $actions;
    }
1057861
public function toArray(): array
    {
        return array_filter([
            'user' => $this->user->toArray(),
            'item_uuid' => $this->itemUUID->toArray(),
            'event_name' => $this->eventName,
            'metadata' => $this->metadata,
        ]);
    }
1134126
public function toArray()
    {
        if ($this->jobIdPrefix) {
            $this->config['jobReference']['jobId'] = sprintf(
                '%s-%s',
                $this->jobIdPrefix,
                $this->config['jobReference']['jobId']
            );
        }

        return $this->config;
    }
97850
public function toArray()
    {
        return array(

            'namespace'            => $this->namespace,
            'className'            => $this->className,
            'fileName'             => $this->fileName,
            'callableName'         => $this->callableName,
            'description'          => $this->description,
            'service'              => $this->service,
            'servers'              => $this->servers,
            'iterations'           => $this->iterations,
            'minimumExecutionTime' => $this->minimumExecutionTime,
            'timeout'              => $this->timeout,
            'jobs'                 => $this->jobCollection->toArray(),
        );
    }
546104
public function getAttributes()
    {
        $data = @ldap_get_attributes($this->connection, $this->entry);

        $result = array();

        for ($i = 0; $i < $data['count']; $i++) {
            $key = $data[$i];
            $result[$key] = array();
            for ($j = 0; $j < $data[$key]['count']; $j++) {
                $result[$key][] = $data[$key][$j];
            }
        }

        return $result;
    }
930833
public function getDirty()
    {
        $dirty = [];

        foreach ($this->attributes as $key => $value) {
            if (! $this->originalIsEquivalent($key)) {
                // We need to reset the array's indices using array_values due to
                // LDAP requiring consecutive indices (0, 1, 2 etc.)
                $dirty[$key] = array_values($value);
            }
        }

        return $dirty;
    }
255257
public function toArray()
    {
        $arrayResult = array(
            'id' => $this->id,
            'string' => $this->sql,
            'command' => $this->getCommand(),
            'executed' => $this->executed,
            'isDDL' => $this->isDDL(),
            'isDML' => $this->isDML(),
            'isDCL' => $this->isDCL(),
            'isTCL' => $this->isTCL(),
            'isAnon' => $this->isAnon(),
            'isRead' => $this->isRead(),
            'isWrite' => $this->isWrite(),
            'result' => $this->result->toarray(),
        );

        return $arrayResult;
    }
119698
public function toArray()
	{
		return
			[
				"id" => $this->id,
				"name" => $this->name,
				"title" => $this->title,
				"route" => $this->route,
				"support" => $this->support,
				"version" => $this->version,
				"data" => $this->data,
				"key" => $this->key,
				"name_space" => $this->name_space,
				"path" => $this->path,
			];
	}
53439
public function toArray(): array
    {
        $array = [];
        if (isset($_SESSION[$this->name])) {
            $array = to_array($_SESSION[$this->name], true);
        }

        return $array;
    }
281779
public function toArray()
    {
        return [
            'methods'    => $this->methods,
            'uri'        => $this->uri,
            'params'     => $this->params,
            'action'     => $this->action,
            'name'       => $this->name,
            'middleware' => $this->middleware,
            'domain'     => $this->domain,
        ];
    }
1209882
public function toArray()
	{
		$result = parent::toArray();

		if (isset($result['activated']))
		{
			$result['activated'] = $this->getActivatedAttribute($result['activated']);
		}
		if (isset($result['permissions']))
		{
			$result['permissions'] = $this->getPermissionsAttribute($result['permissions']);
		}
		if (isset($result['suspended_at']))
		{
			$result['suspended_at'] = $result['suspended_at']->format('Y-m-d H:i:s');
		}

		return $result;
	}
282790
public function getAttributes(): array
    {
        $search = array_column($this->map, 'attr');
        $result = ldap_read($this->ldap->getResource(), $this->ldap_dn, '(objectClass=*)', $search);
        $entries = ldap_get_entries($this->ldap->getResource(), $result);
        $attributes = $entries[0];

        $this->logger->info("get ldap user [{$this->ldap_dn}] attributes", [
            'category' => get_class($this),
            'params' => $attributes,
        ]);

        return $attributes;
    }
672757
public function toData()
    {
        if ($this->action === self::TYPE_READ) {
            return [
                'fields' => 'whitelisted_domains',
            ];
        }

        if ($this->action === self::TYPE_DELETE) {
            return [
                'fields' => [
                    'whitelisted_domains',
                ],
            ];
        }

        return [
            'whitelisted_domains' => $this->domains,
        ];
    }
711199
public function toArray()
    {
        return [
            'level' => $this->level,
            'subject' => $this->subject,
            'greeting' => $this->greeting,
            'salutation' => $this->salutation,
            'introLines' => $this->introLines,
            'outroLines' => $this->outroLines,
            'actionText' => $this->actionText,
            'actionUrl' => $this->actionUrl,
        ];
    }
527928
public function toArray()
    {
        if (null === $this->alBlock) {
            return array();
        }

        $content = $this->replaceHtmlCmsActive();
        if (null === $content) {
            $content = $this->getHtml();
        }

        $blockManager = array();
        $blockManager["HideInEditMode"] = $this->getHideInEditMode();
        $blockManager["Content"] = $content;
        $blockManager["EditInline"] = $this->editInline();
        $blockManager["Block"] = $this->alBlock->toArray();

        return $blockManager;
    }