PHP 클래스 FluidTYPO3\Vhs\ViewHelpers\Iterator\SortViewHelper

Can be used inline, i.e.: iterating data which is ONLY sorted while rendering this particular loop
상속: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper, use trait FluidTYPO3\Vhs\Traits\BasicViewHelperTrait, use trait FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait, use trait FluidTYPO3\Vhs\Traits\ArrayConsumingViewHelperTrait
파일 보기 프로젝트 열기: fluidtypo3/vhs

보호된 프로퍼티들

프로퍼티 타입 설명
$allowedSortFlags array Contains all flags that are allowed to be used with the sorting functions

공개 메소드들

메소드 설명
initializeArguments ( ) : void Initialize arguments
render ( ) : mixed "Render" method - sorts a target list-type target. Either $array or $objectStorage must be specified. If both are, ObjectStorage takes precedence.

보호된 메소드들

메소드 설명
getSortFlags ( ) : integer Parses the supplied flags into the proper value for the sorting function.
getSortValue ( mixed $object ) : mixed Gets the value to use as sorting value from $object
sortArray ( array | Iterator $array ) : array Sort an array
sortObjectStorage ( TYPO3\CMS\Extbase\Persistence\ObjectStorage $storage ) : TYPO3\CMS\Extbase\Persistence\ObjectStorage Sort an ObjectStorage instance

메소드 상세

getSortFlags() 보호된 메소드

Parses the supplied flags into the proper value for the sorting function.
protected getSortFlags ( ) : integer
리턴 integer

getSortValue() 보호된 메소드

Gets the value to use as sorting value from $object
protected getSortValue ( mixed $object ) : mixed
$object mixed
리턴 mixed

initializeArguments() 공개 메소드

Initialize arguments
public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

Returns the same type as $subject. Ignores NULL values which would be OK to use in an f:for (empty loop as result)
public render ( ) : mixed
리턴 mixed

sortArray() 보호된 메소드

Sort an array
protected sortArray ( array | Iterator $array ) : array
$array array | Iterator
리턴 array

sortObjectStorage() 보호된 메소드

Sort an ObjectStorage instance
protected sortObjectStorage ( TYPO3\CMS\Extbase\Persistence\ObjectStorage $storage ) : TYPO3\CMS\Extbase\Persistence\ObjectStorage
$storage TYPO3\CMS\Extbase\Persistence\ObjectStorage
리턴 TYPO3\CMS\Extbase\Persistence\ObjectStorage

프로퍼티 상세

$allowedSortFlags 보호되어 있는 프로퍼티

Contains all flags that are allowed to be used with the sorting functions
protected array $allowedSortFlags
리턴 array