本文整理匯總了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);
}