public function __construct($id, $title) { $this->id = sanitize_title($id); $this->title = $title; $this->view = new WPDKView($id . '-view-root', array('wrap')); $this->viewHead = new WPDKHeaderView($id . '-header-view', $this->title); $this->view->addSubview($this->viewHead); }
/** * Create an instane of WPDKjQueryTabsViewController class * * @brief Construct * * @param string $id A lowercase id used in HTML markup * @param string $title The view controller title * @param WPDKjQueryTabsView $view An instance of WPDKjQueryTabView class * * @return WPDKjQueryTabsViewController */ public function __construct($id, $title, $view) { parent::__construct($id, $title); $this->view->addSubview($view); }