From c0239466d7e7142a67f6233169377b10fd93e6ec Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 1 Dec 2006 21:39:16 +0000 Subject: merge from 3.0 branch till 1537. --- HISTORY | 2 + framework/Exceptions/messages.txt | 2 + framework/Web/UI/TTemplateManager.php | 4 +- framework/Web/UI/TThemeManager.php | 53 ++++++++++++++++------ .../quickstart/Controls/DataGrid1TestCase.php | 2 - .../tickets/protected/pages/Ticket205.page | 2 +- .../tickets/protected/pages/Ticket207.page | 2 +- 7 files changed, 48 insertions(+), 19 deletions(-) diff --git a/HISTORY b/HISTORY index 18cab7ce..df900d9a 100644 --- a/HISTORY +++ b/HISTORY @@ -18,11 +18,13 @@ CHG: All validators ClientSide.OnError becomes ClientSide.OnValidationError, and Version 3.0.6 December 4, 2006 ============================== BUG: Ticket#442 - TPageService getBasePath in namespace form (Qiang) +BUG: Ticket#443 - Template comment tag messed up with HTML comment tag (Qiang) BUG: Ticket#467 - typo in TUrlMapping.php (Qiang) BUG: TTableCell should render   only when Text is not set and there's no child (Qiang) BUG: global state was not saved when redirect() is invoked (Qiang) BUG: TPager would not display if it was invisible previously (Qiang) ENH: Ticket#446 - Added TMetaTagCollection.getMetaTagByID method (Qiang) +ENH: Ticket#468 - Added support of using all property tags in skins (Qiang) ENH: Ticket#471 - Added methods in TAssetManager to expose published path and URL (Qiang) CHG: Ticket#437 - __autoload is replaced by spl_autoload_register (Qiang) CHG: Ticket#454 - Redundant PHP Version Check (Qiang) diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt index f3032eb3..3afc7c3d 100644 --- a/framework/Exceptions/messages.txt +++ b/framework/Exceptions/messages.txt @@ -125,6 +125,7 @@ template_controlid_invalid = {0}.ID can only accept a static text string. template_controlskinid_invalid = {0}.SkinID can only accept a static text string. template_content_unexpected = Unexpected content is encountered when instantiating template: {0}. template_include_invalid = Invalid template inclusion. Make sure {0} is a valid namespace pointing to an existing template file whose extension is .tpl. +template_tag_unexpected = Initialization for property {0} contains an unknown tag type {1}. xmldocument_file_read_failed = TXmlDocument is unable to read file '{0}'. xmldocument_file_write_failed = TXmlDocument is unable to write file '{0}'. @@ -157,6 +158,7 @@ theme_skinid_duplicated = SkinID '{0}.{1}' is duplicated in theme '{2}'. theme_databind_forbidden = Databind cannot be used in theme '{0}' for control skin '{1}.{2}' about property '{3}'. theme_property_readonly = Skin is being applied to a read-only control property '{0}.{1}'. theme_property_undefined = Skin is being applied to an inexistent control property '{0}.{1}'. +theme_tag_unexpected = Initialization for property {0} contains an unknown tag type {1}. control_object_reregistered = Duplicated object ID '{0}' found. control_id_invalid = {0}.ID '{1}' is invalid. Only alphanumeric and underline characters are allowed. The first character must be an alphabetic or underline character. diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 950f2c70..332ed7ab 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -177,7 +177,7 @@ class TTemplate extends TApplicationComponent implements ITemplate * '<%[%#~\\$=\\[](.*?)%>' - expressions * ')*)\s*\/>' - group subproperty tags */ - const REGEX_RULES='/||<\/?com:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/?>|<\/?prop:([\w\.]+)\s*>|<%@\s*((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?")*)\s*%>|<%[%#~\\$=\\[](.*?)%>|)*)\s*\/>/msS'; + const REGEX_RULES='/