本文整理汇总了PHP中IPAddress::getHTMLTableHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP IPAddress::getHTMLTableHeader方法的具体用法?PHP IPAddress::getHTMLTableHeader怎么用?PHP IPAddress::getHTMLTableHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPAddress
的用法示例。
在下文中一共展示了IPAddress::getHTMLTableHeader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTMLTableHeader
/**
* @since version 0.84
*
* @param $itemtype
* @param $base HTMLTableBase object
* @param $super HTMLTableSuperHeader object (default NULL
* @param $father HTMLTableHeader object (default NULL)
* @param $options array
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column_name = __CLASS__;
if (isset($options['massiveactionnetworkname']) && $options['massiveactionnetworkname']) {
$delete_all_column = $base->addHeader('delete', Html::getCheckAllAsCheckbox('mass' . __CLASS__ . $options['rand']), $super, $father);
$delete_all_column->setHTMLClass('center');
}
if (!isset($options['dont_display'][$column_name])) {
$content = self::getTypeName();
if (isset($options['column_links'][$column_name])) {
$content = "<a href='" . $options['column_links'][$column_name] . "'>{$content}</a>";
}
$father = $base->addHeader($column_name, $content, $super, $father);
$father->setItemType('NetworkName');
if (isset($options['display_isDynamic']) && $options['display_isDynamic']) {
$father = $base->addHeader($column_name . '_dynamic', __('Automatic inventory'), $super, $father);
}
}
NetworkAlias::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
IPAddress::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
}