From 2f29591dc5a20086ad2c0e4e3689f7c0b9ab7b02 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 21 Feb 2006 19:32:36 +0000 Subject: Added DTD and XSD for app and page configurations. --- .gitattributes | 4 + .../protected/pages/Configurations/AppConfig.page | 3 + .../protected/pages/Configurations/PageConfig.page | 5 + framework/Specs/ApplicationConfiguration.dtd | 40 +++++ framework/Specs/ApplicationConfiguration.xsd | 200 +++++++++++++++++++++ framework/Specs/PageConfiguration.dtd | 54 ++++++ framework/Specs/PageConfiguration.xsd | 143 +++++++++++++++ 7 files changed, 449 insertions(+) create mode 100644 framework/Specs/ApplicationConfiguration.dtd create mode 100644 framework/Specs/ApplicationConfiguration.xsd create mode 100644 framework/Specs/PageConfiguration.dtd create mode 100644 framework/Specs/PageConfiguration.xsd diff --git a/.gitattributes b/.gitattributes index 9f3c92e4..338130f2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -584,6 +584,10 @@ framework/Security/TAuthorizationRule.php -text framework/Security/TMembershipManager.php -text framework/Security/TSecurityManager.php -text framework/Security/TUserManager.php -text +framework/Specs/ApplicationConfiguration.dtd -text +framework/Specs/ApplicationConfiguration.xsd -text +framework/Specs/PageConfiguration.dtd -text +framework/Specs/PageConfiguration.xsd -text framework/TApplication.php -text framework/TApplicationComponent.php -text framework/TComponent.php -text diff --git a/demos/quickstart/protected/pages/Configurations/AppConfig.page b/demos/quickstart/protected/pages/Configurations/AppConfig.page index 8d998f85..f72ab876 100644 --- a/demos/quickstart/protected/pages/Configurations/AppConfig.page +++ b/demos/quickstart/protected/pages/Configurations/AppConfig.page @@ -37,6 +37,9 @@ Note, if the value attribute is not specified, the whole parameter XML

+Complete specification of application configurations can be found in the DTD and XSD files. +

+

By default without explicit configuration, a PRADO application when running will load a few core modules, such as THttpRequest, THttpResponse, etc. It will also provide the TPageService as a default service. Configuration and usage of these modules and services are covered in individual sections of this tutorial. Note, if your application takes default settings for these modules and service, you do not need to provide an application configuration. However, if these modules or services are not sufficient, or you want to change their behavior by configuring their property values, you will need an application configuration.

diff --git a/demos/quickstart/protected/pages/Configurations/PageConfig.page b/demos/quickstart/protected/pages/Configurations/PageConfig.page index bd8a7186..6f489987 100644 --- a/demos/quickstart/protected/pages/Configurations/PageConfig.page +++ b/demos/quickstart/protected/pages/Configurations/PageConfig.page @@ -9,6 +9,7 @@ When a user requests a page stored under <BasePath>/dir1/dir2, th

The format of a page configuration file is as follows, +

@@ -30,7 +31,11 @@ The format of a page configuration file is as follows, +

The <paths>, <modules> and <parameters> are similar to those in an application configuration. The <authorization> specifies the authorization rules that apply to the current page directory and all its subdirectories. It will be explained in more detail in future sections. The <pages> element specifies the initial values for the properties of pages. Each <page> element specifies the initial property values for a particular page identified by the id attribute. Initial property values given in the <pages> element apply to all pages in the current directory and all its subdirectories.

+

+Complete specification of page configurations can be found in the DTD and XSD files. +

\ No newline at end of file diff --git a/framework/Specs/ApplicationConfiguration.dtd b/framework/Specs/ApplicationConfiguration.dtd new file mode 100644 index 00000000..b85a0595 --- /dev/null +++ b/framework/Specs/ApplicationConfiguration.dtd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/Specs/ApplicationConfiguration.xsd b/framework/Specs/ApplicationConfiguration.xsd new file mode 100644 index 00000000..c66dfed5 --- /dev/null +++ b/framework/Specs/ApplicationConfiguration.xsd @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + configuration content for page sections in prado3 framework + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/Specs/PageConfiguration.dtd b/framework/Specs/PageConfiguration.dtd new file mode 100644 index 00000000..e140f468 --- /dev/null +++ b/framework/Specs/PageConfiguration.dtd @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/Specs/PageConfiguration.xsd b/framework/Specs/PageConfiguration.xsd new file mode 100644 index 00000000..c1d9a1ef --- /dev/null +++ b/framework/Specs/PageConfiguration.xsd @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + configuration content for the whole application in prado3 framework + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3