Returns an array for the row

@return array
338025
public function toArray()
    {
        $rowData = array();
        foreach ($this->cells as $cell) {
            $rowData[] = $cell->getValue();
        }
        
        return $rowData;
    }
241655
public function getRows()
    {
        $data = $this->datatable->setPerPage(3)->ajax()->original;
        $rows = [];
        foreach ($data['data'] as $row) {
            $decorated = array_merge($this->datatable->getQuickSearchRow($row), ['total' => $data['recordsFiltered']]);
            $rows[]    = $decorated;
        }
        return $rows;
    }
1370103
public function toArray(): array
	{
		$results = [];

		foreach($this->items as $item)
		{
			$results[] = $item->toArray();
		}

		return $results;
	}
1196341
public function toArray()
    {
        return [
            'id' => $this->id,
            'terms' => $this->terms,
            'descriptor' => $this->descriptor,
            'subdescriptor' => $this->subdescriptor,
            'score' => $this->score,
        ];
    }
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,
			];
	}
1088770
public function toArray()
    {
        $result = [];
        $result['id']            = $this->id;
        $result['toUserName']    = $this->toUserName;
        $result['fromUserName']  = $this->fromUserName;
        $result['createTime']    = $this->createTime;
        $result['msgType']       = $this->msgType;
        return $result;
    }
1199519
public function getRows()
    {
        if (!$this->rows) {
            $this->rows = new Rows([$this->dbData], $this->newTable(), null, get_class($this));
        }
        return $this->rows;
    }
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,
        ];
    }
883340
public function toArray()
    {
        $arrayResult = array(
            'affected' => $this->getAffected(),
            'insertId' => $this->getInsertId(),
            'startRow' => $this->getStartRow(),
            'totalRows' => $this->getTotalRows(),
            'totalShows' => $this->getTotalShows(),
            'start' => $this->getStart(),
            'end' => $this->getEnd(),
            'seconds' => $this->getSeconds(),
            'types' => $this->getTypes(),
            'columns' => $this->getColumns(),
            'data' => array(),
        );

        if ($this->dataType instanceof DataInterface) {
            for ($i = 0; $i < $this->length(); ++$i) {
                if ($this->hasIndex($i)) {
                    $arrayResult['data'][] = $this->getIndex($i)->toArray();
                }
            }
        } else {
            $arrayResult['data'] = $this->getArrayCopy();
        }

        return $arrayResult;
    }
1272588
public function toArray()
    {
        $query = $this->dataQuery->query();
        $rows = $query->execute();
        $results = [];

        foreach ($rows as $row) {
            $results[] = $this->createDataObject($row);
        }

        return $results;
    }
775360
public function getAsArray(): array
    {
        $result = array();

        foreach ($this->_definition as $key => $def) {
            $result[$key] = $this->getFieldAsArray($key);
        }

        return $result;
    }
1041141
protected function collectRows()
    {
        $rows = collect($this->collection->all())
            ->filter(function ($template) {
                return $template['is_alias'] == false;
            })
            ->sortBy('name')
            ->map(function ($template) {
                $row = [];

                $names = array_merge([$template['name']], $template['aliases']);
                $row[] = implode("\n/ ", $names);
                $row[] = wordwrap($template['path'], 65, "\n", true);
                $row[] = wordwrap($template['description'], 25, "\n", true);

                return $row;
            });

        return $this->separateRows($rows);
    }
314238
public function toArray()
    {
        $returnValue = array();

        

		//sort columns:
		$this->sortColumns();

		foreach($this->rows as $rowId => $cells){
			$returnValue[$rowId] = array();

			foreach($this->columns as $columnId => $column){
				if($column->hasAdapter()){

					//fill content with adapter:
					$data = null;
					if(isset($returnValue[$rowId][$columnId])){
						$data = $returnValue[$rowId][$columnId];
					}else if(isset($cells[$columnId])){
						$data = $cells[$columnId];
					}
					$returnValue[$rowId][$columnId] = $column->getAdaptersData($rowId, $data);

				}else if(isset($cells[$columnId])){

					if($cells[$columnId] instanceof tao_helpers_grid_Grid){
						$returnValue[$rowId][$columnId] = $cells[$columnId]->toArray();
					}else{
						$returnValue[$rowId][$columnId] = $cells[$columnId];
					}

				}else{
					$returnValue[$rowId][$columnId] = null;//empty cell
				}
			}

		}
        

        return (array) $returnValue;
    }
316560
public function toArray()
    {
        $arr = array();
        foreach ($this as $key => $value) {
            $method = 'get' . $key;
            if (method_exists($this, $method)) {
                $arr[$key] = $this->$method();
            }
        }

        return $arr;
    }
1173971
public function get()
    {
        $rows = [];

        foreach ($this->db as $key => $value) {
            $rows[] = (object) [
                'key'   => $key,
                'value' => is_string($value) ? $value : print_r($value, true),
            ];
        }

        return $rows;
    }
860078
public function toArray()
    {
        return [
            'id' => $this->id,
            'author_name' => $this->authorName,
            'author_email' => $this->authorEmail,
            'committer_name' => $this->committerName,
            'committer_email' => $this->committerEmail,
            'message' => $this->message,
        ];
    }
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,
        ];
    }