public function ServicesClientControl::isLooping in Services Client 7.2
Determine weather entity received by event is looping.
Return value
boolean TRUE if entity already visited.
File
- include/
plugin.inc, line 472 - Base plugin definitions. All other plugins should be extended from this set of plugins.
Class
- ServicesClientControl
- Class for handling control data.
Code
public function isLooping() {
if (isset($this->data['visted']) && in_array($this->remote_id, $this->data['visted'])) {
return TRUE;
}
if (isset($this->data['v2']['nodes']) && in_array($this->remote_id, $this->data['v2']['nodes'])) {
return TRUE;
}
return FALSE;
}