original_string: protected function _getAnnotateMoreEntry($name)
      {
          if (substr($name, 0, 7) === '/shared') {
              return array(substr($name, 7), 'value.shared');
          } else if (substr($name, 0, 8) === '/private') {
              return array(substr($name, 8), 'value.priv');
          }
  
          $e = new Horde_Imap_Client_Exception(
              Horde_Imap_Client_Translation::r("Invalid METADATA entry: \"%s\"."),
              Horde_Imap_Client_Exception::METADATA_INVALID
          );
          $e->messagePrintf(array($name));
          throw $e;
      }
code: protected function _getAnnotateMoreEntry($name)
      {
          if (substr($name, 0, 7) === '/shared') {
              return array(substr($name, 7), 'value.shared');
          } else if (substr($name, 0, 8) === '/private') {
              return array(substr($name, 8), 'value.priv');
          }
  
          $e = new Horde_Imap_Client_Exception(
              Horde_Imap_Client_Translation::r("Invalid METADATA entry: \"%s\"."),
              Horde_Imap_Client_Exception::METADATA_INVALID
          );
          $e->messagePrintf(array($name));
          throw $e;
      }
code_tokens: protected function _getAnnotateMoreEntry ( $ name ) { if ( substr ( $ name , 0 , 7 ) === '/shared' ) { return array ( substr ( $ name , 7 ) , 'value.shared' ) ; } else if ( substr ( $ name , 0 , 8 ) === '/private' ) { return array ( substr ( $ name , 8 ) , 'value.priv' ) ; } $ e = new Horde_Imap_Client_Exception ( Horde_Imap_Client_Translation :: r ( "Invalid METADATA entry: \"%s\"." ) , Horde_Imap_Client_Exception :: METADATA_INVALID ) ; $ e -> messagePrintf ( array ( $ name ) ) ; throw $ e ; }
docstring: Split a name for the METADATA extension into the correct syntax for the
  older ANNOTATEMORE version.
  
  @param string $name  A name for a metadata entry.
  
  @return array  A list of two elements: The entry name and the value
  type.
  
  @throws Horde_Imap_Client_Exception
docstring_tokens: Split a name for the METADATA extension into the correct syntax for the older ANNOTATEMORE version .