original_string: static public function fetchList( $params, $limits = null, $sorts = null, $mainTranslation = false, $locale = false )
      {
          $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );
  
          if ( is_array( $params ) )
          {
              $newParams = array();
              foreach ( $params as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newParams[$key] = $value;
                  else
                      $newParams['eztags_keyword.keyword'] = $value;
              }
  
              $params = $newParams;
          }
  
          if ( is_array( $sorts ) )
          {
              $newSorts = array();
              foreach ( $sorts as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newSorts[$key] = $value;
                  else
                      $newSorts['eztags_keyword.keyword'] = $value;
              }
  
              $sorts = $newSorts;
          }
          else if ( $sorts == null )
          {
              $sorts = array( 'eztags_keyword.keyword' => 'asc' );
          }
  
          $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                           $sorts, $limits, true, false,
                                                           array( 'DISTINCT eztags.*',
                                                                  array( 'operation' => 'eztags_keyword.keyword',
                                                                         'name'      => 'keyword' ),
                                                                  array( 'operation' => 'eztags_keyword.locale',
                                                                         'name'      => 'locale' ) ),
                                                           array( 'eztags_keyword' ), $customConds );
          return $tagsList;
      }
code: static public function fetchList( $params, $limits = null, $sorts = null, $mainTranslation = false, $locale = false )
      {
          $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );
  
          if ( is_array( $params ) )
          {
              $newParams = array();
              foreach ( $params as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newParams[$key] = $value;
                  else
                      $newParams['eztags_keyword.keyword'] = $value;
              }
  
              $params = $newParams;
          }
  
          if ( is_array( $sorts ) )
          {
              $newSorts = array();
              foreach ( $sorts as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newSorts[$key] = $value;
                  else
                      $newSorts['eztags_keyword.keyword'] = $value;
              }
  
              $sorts = $newSorts;
          }
          else if ( $sorts == null )
          {
              $sorts = array( 'eztags_keyword.keyword' => 'asc' );
          }
  
          $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                           $sorts, $limits, true, false,
                                                           array( 'DISTINCT eztags.*',
                                                                  array( 'operation' => 'eztags_keyword.keyword',
                                                                         'name'      => 'keyword' ),
                                                                  array( 'operation' => 'eztags_keyword.locale',
                                                                         'name'      => 'locale' ) ),
                                                           array( 'eztags_keyword' ), $customConds );
          return $tagsList;
      }
code_tokens: static public function fetchList ( $ params , $ limits = null , $ sorts = null , $ mainTranslation = false , $ locale = false ) { $ customConds = self :: fetchCustomCondsSQL ( $ params , $ mainTranslation , $ locale ) ; if ( is_array ( $ params ) ) { $ newParams = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( $ key != 'keyword' ) $ newParams [ $ key ] = $ value ; else $ newParams [ 'eztags_keyword.keyword' ] = $ value ; } $ params = $ newParams ; } if ( is_array ( $ sorts ) ) { $ newSorts = array ( ) ; foreach ( $ sorts as $ key => $ value ) { if ( $ key != 'keyword' ) $ newSorts [ $ key ] = $ value ; else $ newSorts [ 'eztags_keyword.keyword' ] = $ value ; } $ sorts = $ newSorts ; } else if ( $ sorts == null ) { $ sorts = array ( 'eztags_keyword.keyword' => 'asc' ) ; } $ tagsList = parent :: fetchObjectList ( self :: definition ( ) , array ( ) , $ params , $ sorts , $ limits , true , false , array ( 'DISTINCT eztags.*' , array ( 'operation' => 'eztags_keyword.keyword' , 'name' => 'keyword' ) , array ( 'operation' => 'eztags_keyword.locale' , 'name' => 'locale' ) ) , array ( 'eztags_keyword' ) , $ customConds ) ; return $ tagsList ; }
docstring: Returns array of eZTagsObject objects for given params
  
  @static
  
  @param array $params
  @param array $limits
  @param array $sorts
  @param bool $mainTranslation
  @param mixed $locale
  
  @return eZTagsObject[]
docstring_tokens: Returns array of eZTagsObject objects for given params