This commit is contained in:
2020-09-04 06:10:06 +08:00
commit 7cd6339996
33 changed files with 3380 additions and 0 deletions

25
classes/APIgoatList.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
class APIgoatList
{
static function init($atts, $content = null)
{
$APIgoatFetchAPI = new APIgoatFetchAPI();
$Behaviors = $APIgoatFetchAPI->fetchBehaviors();
/*if (isset($Behaviors['debug'])) {
echo "<br>" . preprint($Behaviors['debug']) . "<br>";
}
if (isset($Behaviors['messages'])) {
echo "<br>" . preprint($Behaviors['messages']) . "<br>";
}*/
if ($Behaviors['data']) {
$table = APIgoatDoc::getDocs($Behaviors['data'], ['Code' => 'Parameters']);
return $content . div($table, '', "class='site-main'");
} else {
return $content . "<br>Error" . preprint($Behaviors);
}
}
}