Author: nathangray
New Revision: 31015
URL: http://www.egroupware.org/viewvc/egroupware?rev=31015&view=rev
Log:
Tabs can understand and be loaded from .xet files
Modified:
branches/etemplate2/etemplate/inc/class.etemplate_tabs.inc.php
Modified: branches/etemplate2/etemplate/inc/class.etemplate_tabs.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/etemplate2/etemplate/inc/class.etemplate_tabs.inc.php?rev=31015&r1=31014&r2=31015&view=diff
— branches/etemplate2/etemplate/inc/class.etemplate_tabs.inc.php (original)
+++ branches/etemplate2/etemplate/inc/class.etemplate_tabs.inc.php Wed Jun 23 09:53:00 2010
@@ -40,6 +40,34 @@
parent::__construct($type,$attrs,$id);
}
- /**
-
- Load a portion of the xml tree
-
-
- @param SimpleXMLElement $xml
- */
- protected static function loadWidget(SimpleXMLElement $xml)
- {
-
if($xml->tabs) -
{ -
$tab_list = array(); -
foreach($xml->tabs->children() as $tab) -
{ -
$tab_list[] = (string)$tab['label']; -
} -
$this->tabs = implode('|', $tab_list); -
} -
if($xml->tabpanels) -
{ -
foreach($xml->tabpanels->children() as $child) -
{ -
$c_widget = self::loadWidget($child); -
if(is_a($c_widget, 'etemplate_widget')) $this->addChild($c_widget); -
} -
return true; -
} -
return false; - }
- public function render($return_content=false)
{
// Have to call this so value is set
ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs