PHP 클래스 Sulu\Component\Content\Query\ListToTreeConverter

파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( boolean $moveUp = false ) ListToTreeConverter constructor.
convert ( array $data ) : array generate a tree of the given data with the path property.

비공개 메소드들

메소드 설명
explodeTree ( array $array, string $delimiter = '_', boolean $baseval = false ) : array Explode any single-dimensional array into a full blown tree structure, based on the delimiters found in it's keys.
toArray ( $tree )

메소드 상세

__construct() 공개 메소드

ListToTreeConverter constructor.
public __construct ( boolean $moveUp = false )
$moveUp boolean

convert() 공개 메소드

generate a tree of the given data with the path property.
public convert ( array $data ) : array
$data array
리턴 array