<?php if (!defined('FW')) die('Forbidden');

class FW_Container_Type_Tab extends FW_Container_Type {
	public function get_type() {
		return 'tab';
	}

	protected function _get_defaults() {
		return array(
			'title' => '',
		);
	}

	protected function _enqueue_static($id, $option, $values, $data) {
		//
	}

	protected function _render($containers, $values, $data) {
		return fw_render_view(
			dirname(__FILE__) .'/view.php',
			array(
				'tabs'         => &$containers,
				'values'       => &$values,
				'options_data' => &$data,
			)
		);
	}
}
FW_Container_Type::register('FW_Container_Type_Tab');
