kernel/classes/ezcontentobjecttrashnode.php
public static function fetchByContentObjectID( $contentObjectID, $asObject = true, $contentObjectVersion = false )
    {
        $conds = array( 'contentobject_id' => $contentObjectID );
        if ( $contentObjectVersion !== false )
        {
            $conds['contentobject_version'] = $contentObjectVersion;
        }

        return self::fetchObject(
            self::definition(),
            null,
            $conds,
            $asObject
        );
    }
public static function fetchByContentObjectID( $contentObjectID, $asObject = true, $contentObjectVersion = false )
    {
        $conds = array( 'contentobject_id' => $contentObjectID );
        if ( $contentObjectVersion !== false )
        {
            $conds['contentobject_version'] = $contentObjectVersion;
        }

        return self::fetchObject(
            self::definition(),
            null,
            $conds,
            $asObject
        );
    }
public static function fetchByContentObjectID ( $ contentObjectID , $ asObject = true , $ contentObjectVersion = false ) { $ conds = array ( 'contentobject_id' => $ contentObjectID ) ; if ( $ contentObjectVersion !== false ) { $ conds [ 'contentobject_version' ] = $ contentObjectVersion ; } return self :: fetchObject ( self :: definition ( ) , null , $ conds , $ asObject ) ; }
Fetches a trash node by its content object id

@param int $contentObjectID
@param bool $asObject
@param int|bool $contentObjectVersion
@return eZContentObjectTrashNode|null
Fetches a trash node by its content object id