#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:
Romain Quetiez
2010-11-16 16:16:47 +00:00
parent 8d80d73f35
commit 5ea71a3d51
212 changed files with 3010 additions and 36 deletions

View File

@@ -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