Esempio n. 1
0
 /**
  * Toggle the visibility of a page given by the $page object
  *
  */
 static function TogglePage($page, $visibility)
 {
     global $gp_titles;
     \gp\tool\Visibility::Toggle($page->gp_index, $visibility);
     $page->visibility = null;
     if (isset($gp_titles[$page->gp_index]['vis'])) {
         $page->visibility = $gp_titles[$page->gp_index]['vis'];
     }
 }
Esempio n. 2
0
 /**
  * Toggle the visibility of the current page
  *
  */
 public function ToggleVisibility()
 {
     $_REQUEST += array('visibility' => '');
     \gp\tool\Visibility::TogglePage($this, $_REQUEST['visibility']);
 }
Esempio n. 3
0
 /**
  * Toggle Page Visibility
  *
  */
 public function ToggleVisibility()
 {
     $_REQUEST += array('index' => '', 'visibility' => '');
     \gp\tool\Visibility::Toggle($_REQUEST['index'], $_REQUEST['visibility']);
 }
Esempio n. 4
0
 /**
  * Toggle the visibility of the current page
  *
  */
 function ToggleVisibility()
 {
     global $gp_titles;
     $_REQUEST += array('visibility' => '');
     \gp\tool\Visibility::Toggle($this->gp_index, $_REQUEST['visibility']);
     $this->visibility = display::OrConfig($this->gp_index, 'vis');
 }