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;
        }
    }
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;
        }
    }
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 ; } }
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
fetch comment list by contentobject id