private function addContextMenu($compID)
 {
     $myContextMenu = new CContextMenu();
     $myContextMenu->setCssClass('menu desktop');
     $myContextMenu->OnMenuItemSelected('myTreeMenuCommand');
     $myContextMenu->setForControl($compID);
     $firstItem = new CContextMenuItem();
     $firstItem->setText("Punkt 1");
     $firstItem->setCommandName("logout");
     $myContextMenu->getItems()->add($firstItem);
     $sndItem = new CContextMenuItem();
     $sndItem->setText("Punkt 2");
     $sndItem->setCommandName("Punkttwo");
     $myContextMenu->getItems()->add($sndItem);
     $this->getControls()->add($myContextMenu);
 }
 /**
  * Creates a new callback control, sets the adapter to
  * TActiveControlAdapter. If you override this class, be sure to set the
  * adapter appropriately by, for example, by calling this constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setAdapter(new TActiveControlAdapter($this));
 }