function perform() { $result = $this->set_publish_status(get_ini_option('doc_flow.ini', 'default', 'unpublished')); if ($result !== false) { close_popup(); } else { return false; } }
function _valid_perform() { if (!isset($_REQUEST['class_id'])) { return false; } $data = $this->_export(); $access_policy =& access_policy::instance(); $access_policy->save_group_action_access($_REQUEST['class_id'], $data['policy']); close_popup(); }
function _init_dataspace() { $object_data =& fetch_mapped_by_url(); if (!isset($_REQUEST['class_id'])) { close_popup($object_data['path']); } $access_policy =& access_policy::instance(); $data['policy'] = $access_policy->get_group_action_access_by_class($_REQUEST['class_id']); $this->_import($data); }
function _valid_perform() { $object_data =& fetch_mapped_by_url(); $object =& site_object_factory::create($this->definition['site_object']); $object->import_attributes($object_data); if (!$object->delete()) { return false; } $parent_object_data = fetch_one_by_node_id($object_data['parent_id']); close_popup(null, true); }
function _valid_perform() { $parent_object_data =& $this->_load_parent_object_data(); $data['parent_id'] = $parent_object_data['node_id']; $this->_valid_perform_prepare_data($data); $this->object->import_attributes($data); if (($object_id = $this->_create_object_operation()) === false) { return false; } $this->indexer->add($this->object); $this->_write_create_access_policy(); if (!isset($_REQUEST['popup']) || !$_REQUEST['popup']) { return $object_id; } close_popup(); }
function _valid_perform() { $parent_object_data =& fetch_mapped_by_url(); $data['parent_id'] = $parent_object_data['node_id']; $this->_valid_perform_prepare_data($data); $object =& site_object_factory::create($this->definition['site_object']); $object->import_attributes($data); if (($object_id = $this->_create_object_operation($object)) === false) { return false; } $this->indexer->add($object); $this->_write_create_access_policy($object); if (!isset($_REQUEST['popup']) || !$_REQUEST['popup']) { return $object_id; } close_popup(); }
function perform() { $tree =& limb_tree::instance(); if (isset($_REQUEST['id'])) { $node_id = (int) $_REQUEST['id']; } else { $node_id = get_mapped_id(); } if (!isset($_REQUEST['direction'])) { return false; } if (!($object_data = fetch_one_by_node_id($node_id))) { debug::write_error('Node is not accessible', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('node_id' => $node_id)); close_popup(); } $direction = $_REQUEST['direction']; if (!($direction == 'up' || $direction == 'down')) { debug::write_error('Direction is not correct', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('direction' => $direction)); close_popup(); } $tree->change_node_order($node_id, $direction); close_popup(); }
function perform() { close_popup($this->parent_reload_url, $this->search_for_node); exit; }
// this will determine if we need to show a pop-up and fetch the auth url, // or fetch the user's social data. $hasSession = YahooSession::hasSession(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_APP_ID); if ($hasSession == FALSE) { // create the callback url, $callback = YahooUtil::current_url() . "?in_popup"; // pass the credentials to get an auth url. // this URL will be used for the pop-up. $auth_url = YahooSession::createAuthorizationUrl(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, $callback); } else { // pass the credentials to initiate a session $session = YahooSession::requireSession(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_APP_ID); // if the in_popup flag is detected, // the pop-up has loaded the callback_url and we can close this window. if (array_key_exists("in_popup", $_GET)) { close_popup(); exit; } // if a session is initialized, fetch the user's profile information if ($session) { // Get the currently sessioned user. $user = $session->getSessionedUser(); // Load the profile for the current user. $profile = $user->getProfile(); } } /** * Helper method to close the pop-up window via javascript. */ function close_popup() {
function perform() { $this->set_publish_status(get_ini_option('doc_flow.ini', 'default', 'unpublished')); close_popup(); }