public function relationGetId($suffix = null)
    {
        $id = class_basename($this);
        if ($this->field) {
            $id .= '-' . $this->field;
        }

        if ($suffix !== null) {
            $id .= '-' . $suffix;
        }

        return $this->controller->getId($id);
    }
public function relationGetId($suffix = null)
    {
        $id = class_basename($this);
        if ($this->field) {
            $id .= '-' . $this->field;
        }

        if ($suffix !== null) {
            $id .= '-' . $suffix;
        }

        return $this->controller->getId($id);
    }
public function relationGetId ( $ suffix = null ) { $ id = class_basename ( $ this ) ; if ( $ this -> field ) { $ id .= '-' . $ this -> field ; } if ( $ suffix !== null ) { $ id .= '-' . $ suffix ; } return $ this -> controller -> getId ( $ id ) ; }
Returns a unique ID for this relation and field combination.
@param string $suffix A suffix to use with the identifier.
@return string
Returns a unique ID for this relation and field combination .