mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
#320 Integrated an HTML Editor -still, no attribute has been changed, because it would require a migration procedure... to be continued
SVN:trunk[946]
This commit is contained in:
@@ -1075,6 +1075,23 @@ class AttributeText extends AttributeString
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Map a text column (size > ?), containing HTML code, to an attribute
|
||||
*
|
||||
* @package iTopORM
|
||||
*/
|
||||
class AttributeHTML extends AttributeText
|
||||
{
|
||||
public function GetType() {return "HTML";}
|
||||
public function GetTypeDesc() {return "HTML string";}
|
||||
public function GetEditClass() {return "HTML";}
|
||||
|
||||
public function GetAsHTML($sValue)
|
||||
{
|
||||
return $sValue;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Specialization of a string: email
|
||||
*
|
||||
@@ -1123,7 +1140,7 @@ class AttributeOQL extends AttributeText
|
||||
}
|
||||
|
||||
/**
|
||||
* Specialization of a string: template
|
||||
* Specialization of a string: template (contains iTop placeholders like $current_contact_id$ or $this->name$)
|
||||
*
|
||||
* @package iTopORM
|
||||
*/
|
||||
@@ -1133,7 +1150,7 @@ class AttributeTemplateString extends AttributeString
|
||||
}
|
||||
|
||||
/**
|
||||
* Specialization of a text: template
|
||||
* Specialization of a text: template (contains iTop placeholders like $current_contact_id$ or $this->name$)
|
||||
*
|
||||
* @package iTopORM
|
||||
*/
|
||||
@@ -1142,6 +1159,23 @@ class AttributeTemplateText extends AttributeText
|
||||
public function GetTypeDesc() {return "Multiline template string";}
|
||||
}
|
||||
|
||||
/**
|
||||
* Specialization of a HTML: template (contains iTop placeholders like $current_contact_id$ or $this->name$)
|
||||
*
|
||||
* @package iTopORM
|
||||
*/
|
||||
class AttributeTemplateHTML extends AttributeText
|
||||
{
|
||||
public function GetType() {return "HTML";}
|
||||
public function GetTypeDesc() {return "HTML template";}
|
||||
public function GetEditClass() {return "HTML";}
|
||||
|
||||
public function GetAsHTML($sValue)
|
||||
{
|
||||
return $sValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Specialization of a text: wiki formatting
|
||||
|
||||
Reference in New Issue
Block a user