PHP 클래스 Bolt\Twig\Handler\ArrayHandler

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

공개 메소드들

메소드 설명
__construct ( Silex\Application $app )
order ( array $array, string $on, string $onSecondary = '' ) : array Sorts / orders items of an array.
shuffle ( array $array ) : array Randomly shuffle the contents of a passed array.
unique ( $arr1, $arr2 ) : array Takes two arrays and returns a compiled array of unique, sorted values

비공개 메소드들

메소드 설명
orderHelper ( Content | array $a, Content | array $b ) : boolean Helper function for sorting an array of \Bolt\Legacy\Content.

메소드 상세

__construct() 공개 메소드

public __construct ( Silex\Application $app )
$app Silex\Application

order() 공개 메소드

Sorts / orders items of an array.
public order ( array $array, string $on, string $onSecondary = '' ) : array
$array array
$on string
$onSecondary string
리턴 array

shuffle() 공개 메소드

Randomly shuffle the contents of a passed array.
public shuffle ( array $array ) : array
$array array
리턴 array

unique() 공개 메소드

Takes two arrays and returns a compiled array of unique, sorted values
public unique ( $arr1, $arr2 ) : array
$arr1
$arr2
리턴 array