예제 #1
0
 /**
  * A replacement for the built in SetTabHeader.
  * This method is a smart replacement that will automatically handle an active tab on the
  * requiest.
  *
  * @param string $name The tab name (for coding purposes)
  * @param string $str  The human readable label for the tab.
  * @param mixed  $state  If Empty or 'unknown' then detect any currently set tab.
  */
 function SetTabHeader($name, $str, $state = 'unknown')
 {
     if ($state == 'unknown' || $state == '') {
         $state = $name == $this->_current_tab;
     }
     return parent::SetTabHeader($name, $str, $state);
 }