From a433c6c39bdaa5a53238596853617228be8ad07f Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 26 Dec 2005 03:18:00 +0000 Subject: --- .gitattributes | 1 + demos/quickstart/protected/pages/ViewSource.php | 2 +- .../protected/pages/chap2/KeyConcepts.page | 37 ++++++++++++++++++++++ demos/quickstart/themes/Simple/style.css | 5 --- 4 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 demos/quickstart/protected/pages/chap2/KeyConcepts.page diff --git a/.gitattributes b/.gitattributes index ca235386..ce2efce3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -26,6 +26,7 @@ demos/quickstart/protected/pages/chap1/Installation.page -text demos/quickstart/protected/pages/chap1/Introduction.page -text demos/quickstart/protected/pages/chap1/config.xml -text demos/quickstart/protected/pages/chap2/Configurations.page -text +demos/quickstart/protected/pages/chap2/KeyConcepts.page -text demos/quickstart/protected/pages/chap2/Templates1.page -text demos/quickstart/protected/pages/chap2/Templates2.page -text demos/quickstart/protected/pages/chap2/Templates3.page -text diff --git a/demos/quickstart/protected/pages/ViewSource.php b/demos/quickstart/protected/pages/ViewSource.php index 9509e400..4ac2c816 100644 --- a/demos/quickstart/protected/pages/ViewSource.php +++ b/demos/quickstart/protected/pages/ViewSource.php @@ -37,7 +37,7 @@ class ViewSource extends TPage $basePath=dirname($this->_fullPath); if($dh=opendir($basePath)) { - $str="
+A component is an instance of TComponent
or its child class. The base class TComponent
implements the mechanism of component properties and events.
+
+A property can be viewed as a public variable describing a specific aspect of the component, such as the background color, the font size, etc. A property is defined by the existence of a getter and/or a setter method of a component class. For example, in TControl
, we have
+
+class TControl extends TComponent { + public function getID() { + ... + } + public function setID($value) { + ... + } +} ++This defines a property named
ID
. Reading the property (e.g. echo $component->ID;
) is equivalent to invoking the getter method (e.g. echo $component->getID();
); and writing the property (e.g. $component->ID='Button';
) is equivalent to invoking the setter method (e.g. $component->setID('Button');
).
+
++A property is read-only if it only has a getter method and no setter method. Since PHP method names are case-insensitive, property names are also case-insensitive. +
+ +
+A control is an instance of class TControl
or its subclass. A control is a component defined in addition with user interface. The base class TControl
defines the parent-child relationship among controls which reflects the containment relationship among user interface elements.
+