本文整理匯總了PHP中Manufacturer::getHTMLTableCellsForItem方法的典型用法代碼示例。如果您正苦於以下問題:PHP Manufacturer::getHTMLTableCellsForItem方法的具體用法?PHP Manufacturer::getHTMLTableCellsForItem怎麽用?PHP Manufacturer::getHTMLTableCellsForItem使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Manufacturer
的用法示例。
在下文中一共展示了Manufacturer::getHTMLTableCellsForItem方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
break;
}
}
示例2: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
if ($this->fields["assettag"]) {
$row->addCell($row->getHeaderByName('devicebiosdata_tag'), Dropdown::getYesNo($this->fields["assettag"]), $father);
}
if ($this->fields["date"]) {
$row->addCell($row->getHeaderByName('devicebiosdata_date'), $this->fields["date"], $father);
}
}
}
示例3: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
if ($this->fields["is_writer"]) {
$row->addCell($row->getHeaderByName('devicedrive_writer'), Dropdown::getYesNo($this->fields["is_writer"]), $father);
}
if ($this->fields["speed"]) {
$row->addCell($row->getHeaderByName('devicedrive_speed'), $this->fields["speed"], $father);
}
InterfaceType::getHTMLTableCellsForItem($row, $this, NULL, $options);
}
}
示例4: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
InterfaceType::getHTMLTableCellsForItem($row, $this, NULL, $options);
if (!empty($this->fields["chipset"])) {
$row->addCell($row->getHeaderByName('devicegraphiccard_chipset'), $this->fields["chipset"], $father);
}
break;
}
}
示例5: getHTMLTableCellForItem
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
if ($this->fields["rpm"]) {
$row->addCell($row->getHeaderByName('deviceharddriver_rpm'), $this->fields["rpm"]);
}
if ($this->fields["cache"]) {
$row->addCell($row->getHeaderByName('deviceharddriver_cache'), $this->fields["cache"]);
}
InterfaceType::getHTMLTableCellsForItem($row, $this, NULL, $options);
break;
}
}
示例6: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
if ($this->fields["type"]) {
$row->addCell($row->getHeaderByName('devicesoundcard_type'), $this->fields["type"], $father);
}
}
}
示例7: getHTMLTableCellForItem
/**
* @since version 0.84
*
* @see CommonDevice::getHTMLTableCellForItem()
**/
function getHTMLTableCellForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array())
{
$column = parent::getHTMLTableCellForItem($row, $item, $father, $options);
if ($column == $father) {
return $father;
}
switch ($item->getType()) {
case 'Computer':
Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options);
if ($this->fields["devicememorytypes_id"]) {
$row->addCell($row->getHeaderByName('devicememory_type'), Dropdown::getDropdownName("glpi_devicememorytypes", $this->fields["devicememorytypes_id"]), $father);
}
if (!empty($this->fields["frequence"])) {
$row->addCell($row->getHeaderByName('devicememory_frequency'), $this->fields["frequence"], $father);
}
break;
}
}