toPairs() 공개 정적인 메소드

Reformat source to key -> value pairs.
public static toPairs ( array $rows, $key = NULL, $value = NULL ) : array
$rows array
리턴 array
예제 #1
0
파일: Selection.php 프로젝트: jave007/test
 /**
  * @inheritDoc
  */
 public function fetchPairs($key = NULL, $value = NULL)
 {
     return Nette\Database\Helpers::toPairs($this->fetchAll(), $key, $value);
 }
예제 #2
0
파일: Selection.php 프로젝트: jurasm2/nette
 /**
  * @inheritDoc
  */
 public function fetchPairs($key = NULL, $value = NULL)
 {
     return Nette\Database\Helpers::toPairs(iterator_to_array($this), $key, $value);
 }