Nette\Database\Table\Selection::current PHP Метод

current() публичный Метод

public current ( ) : Nette\Database\Table\IRow
Результат Nette\Database\Table\IRow
    public function current()
    {
        if (($key = current($this->keys)) !== FALSE) {
            return $this->data[$key];
        } else {
            return FALSE;
        }
    }

Usage Example

Пример #1
0
 /**
  * @return HyperRow|FALSE
  */
 public function current()
 {
     $result = $this->selection->current();
     if ($result instanceof ActiveRow) {
         return $this->factory->createRow($result, $this->selection->getName());
     }
     return $result;
 }
All Usage Examples Of Nette\Database\Table\Selection::current