- Timestamp:
- 07/11/2007 03:30:26 AM (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Utilities/CSitemap/trunk/src/CSitemap/CSitemapPath.php
r30 r31 13 13 * CSitemapPath class 14 14 * 15 * TODO: documentation ! 15 * This control is a bread crumb, looking for the current path in the sitemap module manager 16 * It needs the CsitemapManager module to be loaded in your application.xml 17 * 18 * You can specify a CSitemapSeparatorClass to provide a new component for separator (must be a TWebControl) 19 * By default, CSitemapSeparator just draw a static > 20 * 16 21 */ 17 22 class CSitemapPath extends TCompositeControl { … … 43 48 public function setSeparatorClass ($value) 44 49 { 45 if (prado::createComponent($value) instanceof CSitemapNodeSeparator)50 if (prado::createComponent($value) instanceof TWebControl) 46 51 $this->setViewState('separatorClass', TPropertyValue::ensureString($value)); 47 52 else 48 throw new TInvalidDataValueException ('SeparatorClass must be an instance of CSitemapNodeSeparator');53 throw new TInvalidDataValueException ('SeparatorClass must be an instance of TWebControl'); 49 54 } 50 55 … … 73 78 } 74 79 parent::createChildControls(); 80 } 81 82 public function addParsedObject ($object) 83 { 84 $this->ensureChildControls(); 85 parent::addParsedObject ($object); 75 86 } 76 87
