devilbox/.devilbox/www/htdocs/vendor/adminer-4.3.1/plugins/struct-comments.php
2017-05-16 20:40:02 +02:00

15 lines
606 B
PHP

<?php
/** Show comments of sql structure in more places (mainly where you edit things)
* @link https://www.adminer.org/plugins/#use
* @author Adam Kuśmierz, http://kusmierz.be/
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerStructComments {
function fieldName(&$field, $order = 0) {
return '<span title="' . h($field["full_type"]) . (!empty($field["comment"]) ? ': ' . $field["comment"] : '') . '">' . h($field["field"]) . '</span>';
}
}