function get_actions()
 {
     if (!count($this->all_actions)) {
         return array();
     }
     $actions = array();
     foreach ($this->all_actions as $action => $params) {
         if (isset($params['extra'])) {
             $action_params = $params['extra'];
         } else {
             $action_params = array();
         }
         if (isset($params['popup']) && $params['popup'] === true) {
             $action_params['popup'] = 1;
         }
         if (isset($params['JIP']) && $params['JIP'] === true) {
             $actions[$action] = $params;
             $actions[$action]['action'] = $action;
             $action_params['action'] = $action;
             $action_params['node_id'] = $this->node_id;
             $actions[$action]['action_href'] = add_url_query_items('/root', $action_params);
         }
     }
     return $actions;
 }
	function prepare()
	{
		$params = array();
		$params['id'] = $this->get('node_id');
		$params['action'] = 'order';
		$params['rn'] = time();
		$params['popup'] = 1;
		
		$this->set('order_up_alt', strings :: get('order_up'));
		$this->set('order_down_alt', strings :: get('order_down'));
		
		if (!$this->get('is_first_child'))
		{
			$params['direction'] = 'up';
			$this->set('order_up_href', add_url_query_items($_SERVER['PHP_SELF'], $params));
		}	
		else
			$this->set('order_up_href', '');

		if (!$this->get('is_last_child'))
		{
			$params['direction'] = 'down';
			$this->set('order_down_href', add_url_query_items($_SERVER['PHP_SELF'], $params));
		}	
		else
			$this->set('order_down_href', '');
		
		return parent :: prepare();	
	} 
  function _get_actions_by_group($group_id, $limit, $offset)
  {
    if (!count($this->all_actions))
      return array();
    $actions = array();

    $current_item = 0;
    $actions_count = 0;
    foreach($this->all_actions as $action => $params)
    {
      if(!isset($params[$group_id]) && $params[$group_id] !== true)
        continue;

      $current_item++;
      $actions_count++;
      if($offset && $current_item <= $offset)
        continue;

      if($limit && $actions_count > $limit)
        break;

      if (isset($params['extra']))
        $action_params = $params['extra'];
      else
        $action_params = array();

      if(isset($params['popup']) && $params['popup'] === true)
          $action_params['popup'] = 1;


      {
        $actions[$action] = $params;
        $actions[$action]['action'] = $action;
        $action_params['action'] = $action;
        $action_params['node_id'] = $this->node_id;

        $actions[$action]['action_href'] = add_url_query_items('/root', $action_params);
      }
    }

    return $actions;
  }
 function _login_redirect($redirect)
 {
     $redirect = add_url_query_items($redirect, array('sid' => session::get('phpbb_sid')));
     reload($redirect);
 }
 function _login_redirect($redirect)
 {
     $redirect = add_url_query_items($redirect, array('sid' => session::get('phpbb_sid')));
     return new redirect_response(RESPONSE_STATUS_FORM_SUBMITTED, $redirect);
 }
 function _login_redirect($redirect, &$response)
 {
     $redirect = add_url_query_items($redirect, array('sid' => session::get('phpbb_sid')));
     $response->redirect($redirect);
 }