You are here

public function NodeResourceFeedModel::current in Services 6.3

Same name and namespace in other branches
  1. 6.2 services/node_service/node_resource.models.inc \NodeResourceFeedModel::current()
  2. 7 services/node_service/node_resource.models.inc \NodeResourceFeedModel::current()

File

servers/rest_server/includes/node_resource.models.inc, line 24
This file will parse a node resource feed And will also provide the necessary manip functions

Class

NodeResourceFeedModel
@file This file will parse a node resource feed And will also provide the necessary manip functions

Code

public function current() {
  $node = current($this->nodes);
  if ($node !== FALSE) {
    return new NodeResourceFeedModelItem($node, $this->mode, $this->item_length);
  }
  return FALSE;
}