mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°2847 - Object details: Preliminary work
- Add ObjectFactory for ObjectDetails, ObjectCard, ... - Update SCSS files to integrate its components Note: A big part of the CSS is hardcoded in cmdbAbstract for now as we still need to discuss / work on the migration of the cmdbAbstract APIs (DisplayBareHeader, DisplayBareProperties, ...)
This commit is contained in:
30
sources/application/UI/Layout/Object/ObjectFactory.php
Normal file
30
sources/application/UI/Layout/Object/ObjectFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Layout\Object;
|
||||
|
||||
|
||||
use Combodo\iTop\Application\UI\Layout\Object\ObjectDetails;
|
||||
use DBObject;
|
||||
|
||||
/**
|
||||
* Class ObjectFactory
|
||||
*
|
||||
* @internal
|
||||
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
|
||||
* @package Combodo\iTop\Application\UI\Layout\Object
|
||||
* @since 2.8.0
|
||||
*/
|
||||
class ObjectFactory {
|
||||
/**
|
||||
* Make a standard object details layout.
|
||||
*
|
||||
* @return \Combodo\iTop\Application\UI\Layout\Object\ObjectDetails
|
||||
*/
|
||||
public static function MakeDetails(DBObject $oObject) {
|
||||
return new ObjectDetails();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user