src/Loops/Element.php
protected function __getLoopsId($refkey = NULL) {
        if($this->__parent) {
            return $this->__parent->__getLoopsId($this->__name)."-".$this->__name;
        }

        return spl_object_hash($this);
    }
protected function __getLoopsId($refkey = NULL) {
        if($this->__parent) {
            return $this->__parent->__getLoopsId($this->__name)."-".$this->__name;
        }

        return spl_object_hash($this);
    }
protected function __getLoopsId ( $ refkey = NULL ) { if ( $ this -> __parent ) { return $ this -> __parent -> __getLoopsId ( $ this -> __name ) . "-" . $ this -> __name ; } return spl_object_hash ( $ this ) ; }
Generate the Loops id of this object.

If the object has no parent use its hash as the Loops id.
Otherwise add its name to the parents Loops id separated with a dash

@param string|NULL $refkey Defines the offset of a child which is requesting the Loops id
@return string The Loops id
Generate the Loops id of this object .