Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClustersMap -> getClusterName( $ID ) ? #63

Open
fsieduc opened this issue Jan 19, 2016 · 0 comments
Open

ClustersMap -> getClusterName( $ID ) ? #63

fsieduc opened this issue Jan 19, 2016 · 0 comments

Comments

@fsieduc
Copy link

fsieduc commented Jan 19, 2016

I'm trying to find a way of "reversing" a RID to its Vertex class name.

Please, could you add this method into PhpOrient\Protocols\Common\ClustersMap.php ?

/**
 * Give the name of the cluster $ID
 *
 * @param int $ID
 * @return string|null
 */
public function getClusterName( $ID ){
    return isset($this->reverseIDMap[ $ID ]) ? $this->reverseIDMap[ $ID ][1] : null;
}
@Ostico Ostico self-assigned this Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants