original_string: static function fetchByContentObjectID( $contentObjectID, $languageID, $status = null, $sorts = null, $offset = null, $length = null )
      {
          $cond = array();
          $cond['contentobject_id'] = $contentObjectID;
          if ( $languageID !== false )
          {
              $cond['language_id'] = $languageID;
          }
          if( !is_null( $status ) )
          {
              $cond['status'] = $status;
          }
          if ( is_null( $offset ) || is_null( $length ) )
          {
              return null;
          }
          else
          {
              $limit = array( 'offset' => $offset, 'length' => $length);
              $return = eZPersistentObject::fetchObjectList( self::definition(), null, $cond, $sorts, $limit );
              return $return;
          }
      }
code: static function fetchByContentObjectID( $contentObjectID, $languageID, $status = null, $sorts = null, $offset = null, $length = null )
      {
          $cond = array();
          $cond['contentobject_id'] = $contentObjectID;
          if ( $languageID !== false )
          {
              $cond['language_id'] = $languageID;
          }
          if( !is_null( $status ) )
          {
              $cond['status'] = $status;
          }
          if ( is_null( $offset ) || is_null( $length ) )
          {
              return null;
          }
          else
          {
              $limit = array( 'offset' => $offset, 'length' => $length);
              $return = eZPersistentObject::fetchObjectList( self::definition(), null, $cond, $sorts, $limit );
              return $return;
          }
      }
code_tokens: static function fetchByContentObjectID ( $ contentObjectID , $ languageID , $ status = null , $ sorts = null , $ offset = null , $ length = null ) { $ cond = array ( ) ; $ cond [ 'contentobject_id' ] = $ contentObjectID ; if ( $ languageID !== false ) { $ cond [ 'language_id' ] = $ languageID ; } if ( ! is_null ( $ status ) ) { $ cond [ 'status' ] = $ status ; } if ( is_null ( $ offset ) || is_null ( $ length ) ) { return null ; } else { $ limit = array ( 'offset' => $ offset , 'length' => $ length ) ; $ return = eZPersistentObject :: fetchObjectList ( self :: definition ( ) , null , $ cond , $ sorts , $ limit ) ; return $ return ; } }
docstring: fetch comment list by contentobject id
  @param string $contentObjectID
  @param string $languageID
  @param integer $status
  @param array $sorts
  @param integer $offset
  @param integer $length
  @return array comment list
docstring_tokens: fetch comment list by contentobject id