本文整理汇总了PHP中Artists::getListArtists方法的典型用法代码示例。如果您正苦于以下问题:PHP Artists::getListArtists方法的具体用法?PHP Artists::getListArtists怎么用?PHP Artists::getListArtists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Artists
的用法示例。
在下文中一共展示了Artists::getListArtists方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: error_reporting
<html>
<head>
<title>Logos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
error_reporting(E_ALL);
$_PATH['classes'] = 'classes/';
include_once $_PATH['classes'] . 'Config.class.php';
include_once $_PATH['classes'] . 'Artists.class.php';
include_once $_PATH['classes'] . 'util/UnicodeEntities.class.php';
$_PATH['logos'] = Config::FOLDER_LOGOS;
$artists = Artists::getListArtists();
$uniReplace = new UnicodeEntities();
echo "\n<h2>Logos</h2>Currently " . count($artists) . " different logos are included.<br/>\n\n<hr color=\"#000\"/>";
//List of letters
echo "<center>";
$letter = 35;
echo "<a href=\"#" . chr($letter) . "\">" . chr($letter) . "</a> ";
for ($letter = 65; $letter < 91; $letter++) {
echo "<a href=\"#" . chr($letter) . "\">" . chr($letter) . "</a> ";
}
echo "</center>\n\n";
$uniReplace = new UnicodeEntities();
$prevAscii = -1;
//List of artists
foreach ($artists as $a) {
$name = $a->getName();
$file = $a->getPathLogo();