Returns a list of the items that are linked to this layer.
        
        :return     [<XNode> || <XNodeConnection>, ..]

def items(self):
        """
        Returns a list of the items that are linked to this layer.
        
        :return     [<XNode> || <XNodeConnection>, ..]
        """
        from projexui.widgets.xnodewidget import XNode, XNodeConnection
        
        output = []
        for item in self.scene().items():
            if not (isinstance(item, XNode) or 
                    isinstance(item, XNodeConnection)):
                continue
                
            if item.layer() == self:
                output.append(item)
        
        return output