本文整理匯總了PHP中CommonDevice::getHTMLTableHeader方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDevice::getHTMLTableHeader方法的具體用法?PHP CommonDevice::getHTMLTableHeader怎麽用?PHP CommonDevice::getHTMLTableHeader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonDevice
的用法示例。
在下文中一共展示了CommonDevice::getHTMLTableHeader方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getHTMLTableHeader
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableHeader()
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options);
if ($column == $father) {
return $father;
}
switch ($itemtype) {
case 'Computer':
Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
break;
}
}
示例2: getHTMLTableHeader
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableHeader()
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options);
if ($column == $father) {
return $father;
}
switch ($itemtype) {
case 'Computer':
Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
$base->addHeader('devicebiosdata_tag', __('Asset Tag', 'ocsinventoryng'), $super, $father);
$base->addHeader('devicebiosdata_date', __('Date'), $super, $father);
break;
}
}
示例3: getHTMLTableHeader
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableHeader()
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options);
if ($column == $father) {
return $father;
}
switch ($itemtype) {
case 'Computer':
Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
$base->addHeader('devicememory_type', __('Type'), $super, $father);
$base->addHeader('devicememory_frequency', __('Frequency'), $super, $father);
break;
}
}
示例4: getHTMLTableHeader
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableHeader()
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options);
if ($column == $father) {
return $father;
}
switch ($itemtype) {
case 'Computer':
Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
$base->addHeader('devicedrive_writer', __('Writing ability'), $super, $father);
$base->addHeader('devicedrive_speed', __('Speed'), $super, $father);
InterfaceType::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
break;
}
}
示例5: getHTMLTableHeader
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableHeader()
**/
static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = array())
{
$column_name = __CLASS__;
if (isset($options['dont_display'][$column_name])) {
return;
}
if (in_array($itemtype, NetworkPort::getNetworkPortInstantiations())) {
$base->addHeader($column_name, __('Interface'), $super, $father);
} else {
$column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options);
if ($column == $father) {
return $father;
}
Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options);
$base->addHeader('devicenetworkcard_bandwidth', __('Flow'), $super, $father);
}
}