コード例 #1
0
 /**
  * Draws the editor's toolbar
  * 
  * @return string
  *
  */
 protected function drawToolbar($toolbarFile)
 {
     $toolbar = new w3sToolbarHorizontal();
     $toolbar->fromYml($toolbarFile);
     return $toolbar->renderToolbar();
 }
コード例 #2
0
 /**
  * Draws the menu.
  *   
  * @return string - The rendered menu
  *
  */
 function drawMenu()
 {
     $toolbar = new w3sToolbarHorizontal($this->user);
     $toolbar->fromYml($this->toolbarFile);
     return sprintf($this->skeleton, $toolbar->renderToolbar());
 }
コード例 #3
0
 /**
  * Draws the menu.
  *   
  * @return string - The rendered menu
  *
  */
 protected function drawPartialMenu()
 {
     $toolbar = new w3sToolbarHorizontal($this->user);
     $toolbar->fromYml($this->toolbarFile);
     return $toolbar->renderToolbar();
 }