addSubview() public method

Add a view in queue views
public addSubview ( WPDKView $view ) : WPDKView
$view WPDKView
return WPDKView
Beispiel #1
0
 /**
  * Create an instance of WPDKViewController class
  *
  * @brief Construct
  *
  * @param string $id         The unique id for this view controller
  * @param string $title      The title of this view controller. This is displayed on top header
  *
  * @return WPDKViewController
  */
 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);
 }