/** * 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']; } }
/** * Toggle the visibility of the current page * */ public function ToggleVisibility() { $_REQUEST += array('visibility' => ''); \gp\tool\Visibility::TogglePage($this, $_REQUEST['visibility']); }
/** * Toggle Page Visibility * */ public function ToggleVisibility() { $_REQUEST += array('index' => '', 'visibility' => ''); \gp\tool\Visibility::Toggle($_REQUEST['index'], $_REQUEST['visibility']); }
/** * 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'); }