Get anime/manga all information.

@return array
350521
private function getAllInfo()
    {
        $data = [
            'id'        => $this->getId(),
            'cover'     => $this->getCover(),
            'title'     => $this->getTitle(),
            'title2'    => $this->getTitle2(),
            'video'     => $this->getVideo(),
            'synopsis'  => $this->getSynopsis(),
            'score'     => $this->getScore(),
            'voter'     => $this->getVoter(),
            'rank'      => $this->getRank(),
            'popularity'=> $this->getPopularity(),
            'members'   => $this->getMembers(),
            'favorite'  => $this->getFavorite(),
        ];

        $data = array_merge($data, $this->getOtherInfo());

        $data2 = [
            'related'        => $this->getRelated(),
            'character'      => $this->getCharacter(),
            'staff'          => $this->getStaff(),
            'song'           => $this->getSong(),
            'review'         => $this->getReview(),
            'recommendation' => $this->getRecommendation(),
        ];

        $data = array_merge($data, $data2);

        return $data;
    }
159255
public function getFileInfo()
    {
        return array(
            "originalName" => $this->oriName ,
            "name" => $this->fileName ,
            "url" => $this->fullName ,
            "size" => $this->fileSize ,
            "type" => $this->fileType ,
            "state" => $this->stateInfo
        );
    }
406778
public static function ListAll()
    {
        $data = [];
        //
        $folders = glob(Application::$root.'resources/translator/*');
        //
        foreach ($folders as $key => $value) {
            $folder = \Strings::splite($value, 'resources/translator/');
            $folder = $folder[1];
            //
            $data[] = '>'.$folder;
            //
            foreach (glob(Application::$root.'resources/translator/'.$folder.'/*.php') as $key2 => $value2) {
                $file = \Strings::splite($value2, "app/lang/$folder/");
                $file = $file[1];
                //
                $data[] = '   '.$file;
            }
        }
        //
        return $data;
    }
211959
protected static function getInfo()
    {
        $files = self::getFiles();
        //
        foreach ($files as $path) {
            $data = self::convert(self::readFile($path.'/vinala.json'), $path);
            $data = $data['system'];
            $data['path'] = $path;

            if (array_key_exists('alias', $data)) {
                self::$infos[$data['alias']] = $data;
            } else {
                // die($path."/.info");
            }
        }
        //
        return self::$infos;
    }
1346263
public function getAllMetadata()
    {
        foreach ($this->driver->getAllClassNames() as $className) {
            if (!isset($this->loadedMetadata[$className])) {
                $this->loadMetadata($className);
            }
        }

        return $this->loadedMetadata;
    }
1167869
final public static function getAllResources() {
        return array_merge(
            self::getReadWriteResources(), [
                self::KEYS_PUT,
                self::KEYS_HEAD,
                self::KEYS_DELETE,
                self::KEYS_OPTIONS,

                self::ACCESS_RULE_GET,
                self::ACCESS_RULE_HEAD,
                self::ACCESS_RULE_DELETE,
                self::ACCESS_RULE_OPTIONS,

                self::ACCESS_RULES_GET,
                self::ACCESS_RULES_HEAD,
                self::ACCESS_RULES_POST,
                self::ACCESS_RULES_OPTIONS,

                self::GROUPS_GET,
                self::GROUPS_HEAD,
                self::GROUPS_OPTIONS,

                self::GROUP_GET,
                self::GROUP_HEAD,
                self::GROUP_PUT,
                self::GROUP_DELETE,
                self::GROUP_OPTIONS,
            ]
        );
    }
207057
private function getGenre($each_anime)
    {
        $genre = [];
        $genre_area = $each_anime->find('div[class="genres js-genre"]', 0);
        foreach ($genre_area->find('a') as $each_genre) {
            $genre[] = $each_genre->plaintext;
        }

        return $genre;
    }
1258382
private function getSynopsis($each_anime)
    {
        $synopsis = $each_anime->find('div[class="synopsis js-synopsis"]', 0)->plaintext;
        preg_match('/(No synopsis)/', $synopsis, $temp_synopsis);
        if (!$temp_synopsis) {
            $synopsis = trim(preg_replace("/([\s])+/", ' ', $synopsis));
        } else {
            $synopsis = '';
        }

        return $synopsis;
    }
1345098
public function getAll()
    {
        $data = [];
        foreach ($this->pluginClasses as $id => $class) {
            $plugin = $this->getById($id);
            if ($plugin) {
                $data[] = $plugin;
            }
        }

        return $data;
    }
1352669
public function getItemsAsArray()
    {
        $items = [];

        foreach ($this->teasers as $page => $teaser) {
            if ($page == $this->intPage) {
                $items[] = [
                    'page' => $page,
                    'href' => null,
                    'title' => null,
                    'text' => $teaser,
                ];
            } else {
                $items[] = [
                    'page' => $page,
                    'href' => $this->linkToPage($page),
                    'title' => StringUtil::specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['goToPage'], $page)),
                    'text' => $teaser,
                ];
            }
        }

        if ($this->singlePageUrl) {
            $items[] = [
                'page' => 'singlePage',
                'href' => $this->singlePageUrl,
                'title' => null,
                'text' => $GLOBALS['TL_LANG']['MSC']['readOnSinglePage'],
            ];
        }

        return $items;
    }
732654
public function getContentItemArray()
    {
        return [
            'content' => $this->content,
            'id' => $this->id,
            'created' => $this->created,
            'updated' => $this->updated,
            'contenttype' => $this->contenttype,
            'language' => $this->language,
            'parentid' => $this->parentid,
            'reply' => $this->reply,
            'forward' => $this->forward,
        ];
    }
1352634
private function getAnimeId($anime_area)
    {
        $anime_id = $anime_area->find('a', 0)->href;
        $parsed_anime_id = explode('/', $anime_id);

        return $parsed_anime_id[4];
    }
599693
final public static function getReadOnlyResources() {
        return [
            self::USER_GET,
            self::USER_HEAD,
            self::USER_OPTIONS,

            self::IMAGE_GET,
            self::IMAGE_HEAD,
            self::IMAGE_OPTIONS,

            self::IMAGES_GET,
            self::IMAGES_HEAD,
            self::IMAGES_OPTIONS,

            self::METADATA_GET,
            self::METADATA_HEAD,
            self::METADATA_OPTIONS,

            self::SHORTURL_GET,
            self::SHORTURL_HEAD,
            self::SHORTURL_OPTIONS,

            self::GLOBAL_IMAGES_GET,
            self::GLOBAL_IMAGES_HEAD,
            self::GLOBAL_IMAGES_OPTIONS,

            self::SHORTURLS_OPTIONS,
        ];
    }
396960
protected function get_media_types() {
		$media_types = array();
		foreach ( get_allowed_mime_types() as $mime_type ) {
			$parts = explode( '/', $mime_type );
			if ( ! isset( $media_types[ $parts[0] ] ) ) {
				$media_types[ $parts[0] ] = array();
			}
			$media_types[ $parts[0] ][] = $mime_type;
		}
		return $media_types;
	}
801469
public function getTranslations(): array
    {
        // Get english name
        $name = [
            'eng' => [
                'common' => $this->getName(),
                'official' => $this->getOfficialName(),
            ],
        ];

        // Get native names
        $natives = $this->getNativeNames() ?: [];

        // Get other translations
        $file = __DIR__.'/../resources/translations/'.mb_strtolower($this->getIsoAlpha2()).'.json';
        $translations = file_exists($file) ? json_decode(file_get_contents($file), true) : [];

        // Merge all names together
        $result = array_merge($translations, $natives, $name);

        // Sort alphabetically
        ksort($result);

        return $result;
    }
371503
public function getAllItems() {
    if (version_compare(phpversion(), '5.3.0', '<')) {
      return json_encode($this->m_aItems);
    }
    else {
      return json_encode($this->m_aItems, JSON_UNESCAPED_UNICODE);
    }
  }
1156699
public function getMediaFiles()
    {
        if ($this->_aMediaFiles === null) {
            $aMediaFiles = $this->getProduct()->getMediaUrls();
            $this->_aMediaFiles = count($aMediaFiles) ? $aMediaFiles : false;
        }

        return $this->_aMediaFiles;
    }