Пример #1
0
 /**
  * Return the current element
  *
  * @return mixed Can return any type.
  */
 public function current()
 {
     if ($this->sendHeaders && !$this->headersSent) {
         $data = $this->getAllFieldNames();
     } else {
         $data = parent::current();
     }
     $fields = array();
     foreach ($this->fields as $field) {
         $fields[] = isset($data[$field]) ? $data[$field] : null;
     }
     return $this->encodeRow($fields);
 }