diff options
author | xue <> | 2006-03-23 13:25:09 +0000 |
---|---|---|
committer | xue <> | 2006-03-23 13:25:09 +0000 |
commit | 29d40192ed3dc0085b5e513ec071c81e03e95d3b (patch) | |
tree | 87e228522e19c93f7d9d9cda6109bc4d6421072d /demos/quickstart/protected/controls/DocLink.php | |
parent | 502ef5c173b2ca1220725d9814022102ea5dd749 (diff) |
Reorganized quickstart tutorial.
Diffstat (limited to 'demos/quickstart/protected/controls/DocLink.php')
-rw-r--r-- | demos/quickstart/protected/controls/DocLink.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/DocLink.php b/demos/quickstart/protected/controls/DocLink.php new file mode 100644 index 00000000..74398efb --- /dev/null +++ b/demos/quickstart/protected/controls/DocLink.php @@ -0,0 +1,30 @@ +<?php
+
+class DocLink extends THyperLink
+{
+ const BASE_URL='http://www.pradosoft.com/docs/manual';
+
+ public function getClassPath()
+ {
+ return $this->getViewState('ClassPath','');
+ }
+
+ public function setClassPath($value)
+ {
+ $this->setViewState('ClassPath',$value,'');
+ }
+
+ public function onPreRender($param)
+ {
+ parent::onPreRender($param);
+ $paths=explode('.',$this->getClassPath());
+ if(count($paths)>1)
+ {
+ $classFile=array_pop($paths).'.html';
+ $this->setNavigateUrl(self::BASE_URL . '/' . implode('.',$paths) . '/' . $classFile);
+ $this->setText('API Manual');
+ }
+ }
+}
+
+?>
\ No newline at end of file |