APIgoat_API_wordpress_plugin/classes/APIgoatListModifiers.php

26 lines
737 B
PHP
Raw Normal View History

2020-09-03 22:10:06 +00:00
<?php
2020-12-06 22:21:31 +00:00
class APIgoatListModifiers
2020-09-03 22:10:06 +00:00
{
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']) {
2020-12-06 22:37:19 +00:00
$table = APIgoatDoc::getDocs($Behaviors['data'], ['Code' => 'Modifiers']);
2020-09-03 22:10:06 +00:00
return $content . div($table, '', "class='site-main'");
} else {
return $content . "<br>Error" . preprint($Behaviors);
}
}
}