protected function toGUID($entity = null) {
		if ($entity instanceof ElggEntity) {
			return (int) $entity->getGUID();
		} else if ($this->exists($entity)) {
			return (int) $entity;
		}
		return false;
	}
protected function toGUID($entity = null) {
		if ($entity instanceof ElggEntity) {
			return (int) $entity->getGUID();
		} else if ($this->exists($entity)) {
			return (int) $entity;
		}
		return false;
	}
protected function toGUID ( $ entity = null ) { if ( $ entity instanceof ElggEntity ) { return ( int ) $ entity -> getGUID ( ) ; } else if ( $ this -> exists ( $ entity ) ) { return ( int ) $ entity ; } return false ; }
Get guids from an entity attribute

@param ElggEntity|int $entity Entity or GUID
@return int
Get guids from an entity attribute