Extracts data about each Title

@return array[]
513441
protected function extractTitles()
    {
        $result = [];
        $count = count($this->registries) - 1;
        for ($lot_id = 1; $lot_id < $count; $lot_id++) {
            $buffer = [];

            foreach ($this->registries[$lot_id][1] as $registry) {
                switch ($registry->getType()) {
                    case 'TITLE_T':
                        $data = [
                            'assignment' => $this->detectAssignment($registry)->id ?? null,
                            'our_number' => (int) $registry->our_number,
                            'value' => (float) ($registry->value / 100.0),
                            'tax' => (float) ($registry->tax / 100.0),
                            'due' => static::parseDate($registry->due),
                            'occurrence' => $this->occurrence($registry) ?? $registry->occurrence,
                        ];
                        $data['id'] = static::detectTitle($data);
                        break;

                    case 'TITLE_U':
                        $data = [
                            'value_received' => (float) ($registry->value_received / 100.0),
                            'occurrence_date' => static::parseDate($registry->occurrence_date),
                        ];
                        break;
                }

                $key = $registry->lot_registry;
                $buffer[$key] = array_merge($buffer[$key] ?? [], $data);
            }

            $result = array_merge($result, array_values($buffer));
        }

        return $result;
    }
27589
private function getAllInfo()
    {
        $data = [];

        $anime_table = $this->_parser->find('div[class="seasonal-anime js-seasonal-anime"]');
        foreach ($anime_table as $each_anime) {
            $result = [];

            $name_area = $each_anime->find('div[class=title]', 0);
            $producer_area = $each_anime->find('div[class=prodsrc]', 0);
            $info_area = $each_anime->find('.information', 0);

            $result['image'] = $this->getImage($each_anime);
            $result['id'] = $this->getId($name_area);
            $result['title'] = $this->getTitle($name_area);
            $result['producer'] = $this->getProducer($producer_area);
            $result['episode'] = $this->getEpisode($producer_area);
            $result['source'] = $this->getSource($producer_area);
            $result['genre'] = $this->getGenre($each_anime);
            $result['synopsis'] = $this->getSynopsis($each_anime);
            $result['licensor'] = $this->getLicensor($each_anime);
            $result['type'] = $this->getType($info_area);
            $result['airing_start'] = $this->getAiring($info_area);
            $result['member'] = $this->getMember($info_area);
            $result['score'] = $this->getScore($info_area);

            $data[] = $result;
        }

        return $data;
    }
316651
private function getAllInfo()
    {
        $data = [];
        $result_table = $this->_parser->find('table', 0);
        $result_area = $result_table->find('tr', 0)->next_sibling();
        while (true) {
            $result = [];

            $name_area = $result_area->find('td', 1);

            $result['image'] = $this->getImage($result_area);
            $result['id'] = $this->getId($name_area);
            $result['name'] = $this->getName($name_area);
            $result['nickname'] = $this->getNickname($name_area);

            if ($this->_type == 'character') {
                $role = $this->getRole($result_area);
                $result = array_merge($result, $role);
            }

            $data[] = $result;

            $result_area = $result_area->next_sibling();
            if (!$result_area) {
                break;
            }
        }

        return $data;
    }
1049971
public function getAllEntitiesToArray()
    {
        $entities = $this->getAll();
        $array = [];
        foreach ($entities as $entity) {
            $depth = isset($entity->depth) ? str_repeat('— ', $entity->depth) : '';
            $title = $entity->title ?? $entity->name;
            $array[$entity->id] = $depth . $title;
        }
        return $array;
    }
269671
public function toArray()
	{
		return [
			'name' => SerializationHelper::stringOrNull($this->name),
			'desc' => SerializationHelper::stringOrNull($this->description),
			'author' => SerializationHelper::serialize($this->author),
			'copyright' => SerializationHelper::serialize($this->copyright),
			'links' => SerializationHelper::serialize($this->links),
			'time' => DateTimeHelper::formatDateTime($this->time),
			'keywords' => SerializationHelper::stringOrNull($this->keywords),
			'bounds' => SerializationHelper::serialize($this->bounds),
			'extensions' => SerializationHelper::serialize($this->extensions)
		];
	}
1196553
public function getTitleFields() {
        return array(
            // Information
            LabelField::create('FaviconDescription', 'A title tag is the main text that describes an online document. Title elements have long been considered one of the most important on-page SEO elements (the most important being overall content), and appear in three key places: browsers, search engine results pages, and external websites.<br />@ <a href="https://moz.com/learn/seo/title-tag" target="_blank">Title Tag - Learn SEO - Mozilla</a>')
                ->addExtraClass('information'),
            // Title Order
            DropdownField::create('TitleOrder', 'Page Title Order', self::$TitleOrderOptions),
            // Title Separator
            TextField::create('TitleSeparator', 'Page Title Separator')
                ->setAttribute('placeholder', self::$TitleSeparatorDefault)
                ->setAttribute('size', 1)
                ->setMaxLength(1)
                ->setDescription('max 1 character'),
            // Title
            TextField::create('Title', 'Website Name'),
            // Tagline Separator
            TextField::create('TaglineSeparator', 'Tagline Separator')
                ->setAttribute('placeholder', self::$TaglineSeparatorDefault)
                ->setAttribute('size', 1)
                ->setMaxLength(1)
                ->setDescription('max 1 character'),
            // Tagline
            TextField::create('Tagline', 'Tagline')
                ->setDescription('optional')
        );
    }
1115585
public function getTitleColumnName()
    {
        // If we specified a specific fieldname or array of fieldnames as 'title'.
        if (!empty($this->contenttype['title_format'])) {
            return (array) $this->contenttype['title_format'];
        }

        // Sets the names of some 'common' names for the 'title' column.
        $names = ['title', 'name', 'caption', 'subject', 'heading'];

        // Some localised options as well
        $names = array_merge($names, ['titel', 'naam', 'onderwerp']); // NL
        $names = array_merge($names, ['nom', 'sujet']); // FR
        $names = array_merge($names, ['nombre', 'sujeto']); // ES

        foreach ($names as $name) {
            if (isset($this->values[$name])) {
                return [$name];
            }
        }

        // Otherwise, grab the first field of type 'text', and assume that's the title.
        if (!empty($this->contenttype['fields'])) {
            foreach ($this->contenttype['fields'] as $key => $field) {
                if ($field['type'] === 'text') {
                    return [$key];
                }
            }
        }

        // Nope, no title was found.
        return [];
    }
460946
public function getTitleAttribute()
    {
        $data = unserialize($this->attributes['data']);

        return $data === false ? null : (isset($data['title']) ? $data['title'] : null);
    }
46582
public function getIncludes(): array
    {
        if ($this->includes === null) {
            $this->includes = TransformerHelper::normalizeIncludes(
                $this->defineIncludes()
            );
        }

        return $this->includes;
    }
412554
private static function extractRecord(): array
    {
        $record = [];
        self::$line = self::$document->fgets();
        do {
            $method = 'extractFieldContent';
            $buffer = ltrim(self::$line, self::$trim_mask);
            if (($buffer[0] ?? '') === self::$enclosure) {
                $method = 'extractEnclosedFieldContent';
                self::$line = $buffer;
            }

            $record[] = self::$method();
        } while (false !== self::$line);

        return $record;
    }
234710
public function toArray()
    {
        return array(
            'id' => $this->getId(),
            'nome' => $this->getNome(),
            'logo' => $this->getLogo(),
            'intro' => $this->getIntro(),
            'copyright' => $this->getCopyright()
        );
    }
46557
public function getTitles()
    {
        $titles = array();
        $levels = array(&$titles);

        foreach ($this->nodes as $node) {
            if ($node instanceof TitleNode) {
                $level = $node->getLevel();
                $text = (string)$node->getValue();
                $redirection = $node->getTarget();
                $value = $redirection ? array($text, $redirection) : $text;

                if (isset($levels[$level-1])) {
                    $parent = &$levels[$level-1];
                    $element = array($value, array());
                    $parent[] = $element;
                    $levels[$level] = &$parent[count($parent)-1][1];
                }
            }
        }

        return $titles;
    }
210165
protected function getFuzzyChapterTitles() {

		$chapters = [];

		$xml = $this->getZipContent( 'content.xml' );

		// introduce a stylesheet
		$proc = new \XSLTProcessor();
		$xsl = new \DOMDocument();
		$xsl->load( __DIR__ . '/xsl/odt2html.xsl' );
		$proc->importStylesheet( $xsl );

		// throw it back into the DOM
		$dom_doc = $proc->transformToDoc( $xml );

		// get all headings
		$headings = $dom_doc->getElementsByTagName( $this->tag );

		// populate chapters with title names
		for ( $i = 0; $i < $headings->length; $i++ ) {
			$chapters[] = trim( $headings->item( $i )->nodeValue );
		}

		// get rid of h1 tags with empty values
		$chapters = array_values( array_filter( $chapters ) );

		// default chapter title if there are no h1 headings in the document
		if ( 0 === count( $chapters ) ) {
			$chapters[] = '__UNKNOWN__';
		}

		return $chapters;
	}
444820
private function getAllInfo()
    {
        $data = [];
        $episode_area = $this->_parser->find('table.episode_list', 0);
        if ($episode_area) {
            foreach ($episode_area->find('.episode-list-data') as $each_episode) {
                $temp = [];

                $temp['episode'] = $this->getEpisodeNo($each_episode);
                $temp['link'] = $this->getEpisodeLink($each_episode);
                $temp['title'] = $this->getEpisodeTitle($each_episode);
                $temp['japanese_title'] = $this->getEpisodeTitle($each_episode, true);
                $temp['aired'] = $this->getEpisodeAired($each_episode);

                $data[] = $temp;
            }
        }

        return $data;
    }
313843
public function toArray(): array
    {
        return [
            'name' => $this->name,
            'text' => $this->text,
            'type' => $this->type,
            'value' => $this->value,
            'style' => $this->style,
            'confirm' => $this->confirmation,
        ];
    }
1127001
private function getSynopsis()
    {
        $synopsis = $this->_parser->find('span[itemprop=description]', 0);
        if ($synopsis) {
            $synopsis = $synopsis->plaintext;

            return trim(preg_replace('/\n[^\S\n]*/', "\n", $synopsis));
        } else {
            return;
        }
    }
141951
def extract_books
      booklist = []
      if @doc.count != 0
        @doc.each do |book_data|
          book = {}
          book['title'] = book_data['titleMain']
          book['book_url'] = BOOK_URL + book_data['prodId']
          book['crt_time'] = book_data['crtTime'].split(' ')[0]
          booklist << book
        end
      end
      booklist
    end