public function __toString()
 {
     # if the collection hasn't been officially created, return empty
     if (!$this->_wasCreated) {
         return '';
     }
     $options = $this->options();
     $options[$this->_contentToken] = parent::__toString();
     return $this->safeInsertData($this->_pattern, $options);
 }
 public function __construct(View $view, $settings = array())
 {
     parent::__construct($view, $settings);
     $this->Tabs = new BootstrapTabCollection($view, $settings);
     $this->Panes = new BootstrapPaneCollection($view, $settings);
 }