original_string: protected function _makePartialId($arrayName, $bool1, $bool2)
      {
          switch ($arrayName) {
          case 'Get':
              $var = $_GET;
              break;
          case 'Post':
              $var = $_POST;
              break;
          case 'Session':
              if (isset($_SESSION)) {
                  $var = $_SESSION;
              } else {
                  $var = null;
              }
              break;
          case 'Cookie':
              if (isset($_COOKIE)) {
                  $var = $_COOKIE;
              } else {
                  $var = null;
              }
              break;
          case 'Files':
              $var = $_FILES;
              break;
          default:
              return false;
          }
          if ($bool1) {
              if ($bool2) {
                  return serialize($var);
              }
              return '';
          }
          if (count($var) > 0) {
              return false;
          }
          return '';
      }
code: protected function _makePartialId($arrayName, $bool1, $bool2)
      {
          switch ($arrayName) {
          case 'Get':
              $var = $_GET;
              break;
          case 'Post':
              $var = $_POST;
              break;
          case 'Session':
              if (isset($_SESSION)) {
                  $var = $_SESSION;
              } else {
                  $var = null;
              }
              break;
          case 'Cookie':
              if (isset($_COOKIE)) {
                  $var = $_COOKIE;
              } else {
                  $var = null;
              }
              break;
          case 'Files':
              $var = $_FILES;
              break;
          default:
              return false;
          }
          if ($bool1) {
              if ($bool2) {
                  return serialize($var);
              }
              return '';
          }
          if (count($var) > 0) {
              return false;
          }
          return '';
      }
code_tokens: protected function _makePartialId ( $ arrayName , $ bool1 , $ bool2 ) { switch ( $ arrayName ) { case 'Get' : $ var = $ _GET ; break ; case 'Post' : $ var = $ _POST ; break ; case 'Session' : if ( isset ( $ _SESSION ) ) { $ var = $ _SESSION ; } else { $ var = null ; } break ; case 'Cookie' : if ( isset ( $ _COOKIE ) ) { $ var = $ _COOKIE ; } else { $ var = null ; } break ; case 'Files' : $ var = $ _FILES ; break ; default : return false ; } if ( $ bool1 ) { if ( $ bool2 ) { return serialize ( $ var ) ; } return '' ; } if ( count ( $ var ) > 0 ) { return false ; } return '' ; }
docstring: Make a partial id depending on options
  
  @param  string $arrayName Superglobal array name
  @param  bool   $bool1     If true, cache is still on even if there are some variables in the superglobal array
  @param  bool   $bool2     If true, we have to use the content of the superglobal array to make a partial id
  @return mixed|false Partial id (string) or false if the cache should have not to be used
docstring_tokens: Make a partial id depending on options