Documentation · ViewHelper reference

XSD schema file | vhs master

Iterator / ValuesViewHelper

Gets values from an iterator, removing current keys (if any exist). /

  • Tag usage example

    <v:iterator.values subject="[mixed]" as="NULL">
    	<!-- tag content - may be ignored! -->
    </v:iterator.values>
  • Inline usage example

    {v:iterator.values(subject: [mixed], as: 'NULL')}

Arguments

Argument Description Type
as

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

string
subject

The array/Traversable instance from which to get values

mixed
Required attribute

Revision history

commit 960d43ba89e07e262524bcfbce2c3edec6edb386
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 2 14:00:54 2013 +0100

    [FEATURE] Iterator / Values ViewHelper
    
    Extracts raw values from Traversable/Arrays, removing any keys and turning the output into a raw Array.

commit ff7d0d2800524e27e12b1fda4a1794ebc345e86d
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 30 21:51:53 2013 +0100

    [DOC] Update copyright year, Iterator / Values ViewHelper

commit 2e85358a2d4e5e2aebf68f961608ae1bafb5e793
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 30 21:52:00 2013 +0100

    [TASK] Remove unused attributes "start" and "length" from Iterator / Values ViewHelper

commit aa32ca2050a4ac2d8ff0a2183b316c7c0f2477ed
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:00:15 2013 +0200

    [TASK] A*****@throws annotations

commit ed15bec7ec1450244979567f31ea9e8b7c3bc374
Author: Claus Due <*****@namelesscoder.net>
Date:   Wed Nov 6 03:21:04 2013 +0100

    [FEATURE] ViewHelperUtility for reusable methods

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file

commit 3a1a2554369b43fe74041808db9c3d8ba0172bc0
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Jan 20 04:38:56 2015 +0100

    [TASK] Convert an Exception to ViewHelper Exception
    
    Conflicts:
    	Classes/ViewHelpers/Iterator/ValuesViewHelper.php