original_string: static public function autocomplete( $args )
      {
          $http = eZHTTPTool::instance();
  
          $searchString = trim( $http->postVariable( 'search_string' ), '' );
          $autoCompleteType = eZINI::instance( 'eztags.ini' )->variable( 'GeneralSettings', 'AutoCompleteType' );
  
          if ( empty( $searchString ) )
              return array( 'status' => 'success', 'message' => '', 'tags' => array() );
  
          // Initialize transformation system
          $trans = eZCharTransform::instance();
          $searchString = $trans->transformByGroup( $http->postVariable( 'search_string' ), 'lowercase' );
          $searchString = $searchString . '%';
  
          if ( $autoCompleteType === 'any' )
          {
              $searchString = '%' . $searchString;
          }
  
          return self::generateOutput(
              array( 'LOWER( eztags_keyword.keyword )' => array( 'like', $searchString ) ),
              $http->postVariable( 'subtree_limit', 0 ),
              $http->postVariable( 'hide_root_tag', '0' ),
              $http->postVariable( 'locale', '' )
          );
      }
code: static public function autocomplete( $args )
      {
          $http = eZHTTPTool::instance();
  
          $searchString = trim( $http->postVariable( 'search_string' ), '' );
          $autoCompleteType = eZINI::instance( 'eztags.ini' )->variable( 'GeneralSettings', 'AutoCompleteType' );
  
          if ( empty( $searchString ) )
              return array( 'status' => 'success', 'message' => '', 'tags' => array() );
  
          // Initialize transformation system
          $trans = eZCharTransform::instance();
          $searchString = $trans->transformByGroup( $http->postVariable( 'search_string' ), 'lowercase' );
          $searchString = $searchString . '%';
  
          if ( $autoCompleteType === 'any' )
          {
              $searchString = '%' . $searchString;
          }
  
          return self::generateOutput(
              array( 'LOWER( eztags_keyword.keyword )' => array( 'like', $searchString ) ),
              $http->postVariable( 'subtree_limit', 0 ),
              $http->postVariable( 'hide_root_tag', '0' ),
              $http->postVariable( 'locale', '' )
          );
      }
code_tokens: static public function autocomplete ( $ args ) { $ http = eZHTTPTool :: instance ( ) ; $ searchString = trim ( $ http -> postVariable ( 'search_string' ) , '' ) ; $ autoCompleteType = eZINI :: instance ( 'eztags.ini' ) -> variable ( 'GeneralSettings' , 'AutoCompleteType' ) ; if ( empty ( $ searchString ) ) return array ( 'status' => 'success' , 'message' => '' , 'tags' => array ( ) ) ; // Initialize transformation system $ trans = eZCharTransform :: instance ( ) ; $ searchString = $ trans -> transformByGroup ( $ http -> postVariable ( 'search_string' ) , 'lowercase' ) ; $ searchString = $ searchString . '%' ; if ( $ autoCompleteType === 'any' ) { $ searchString = '%' . $ searchString ; } return self :: generateOutput ( array ( 'LOWER( eztags_keyword.keyword )' => array ( 'like' , $ searchString ) ) , $ http -> postVariable ( 'subtree_limit' , 0 ) , $ http -> postVariable ( 'hide_root_tag' , '0' ) , $ http -> postVariable ( 'locale' , '' ) ) ; }
docstring: Provides auto complete results when adding tags to object
  
  @static
  
  @param array $args
  
  @return array
docstring_tokens: Provides auto complete results when adding tags to object