Path

ez projects / ezpextendedasort


eZp Extended Asort

UNIX name Owner Status Version Compatible with
ezpextendedasort Brookins Consulting stable 0.0.2 5.x (required) or higher
eZp Extended Asort extension implements a basic eZ Publish template operator which provides the following capabilities: Template operator: 'extended_asort()'

Version

  • The current version of eZp Extended Asort is 0.0.2
  • Last Major update: October 13, 2014

Copyright

  • eZp Extended Asort is copyright 1999 - 2017 Brookins Consulting and Think Creative

License

eZp Extended Asort is licensed under the GNU General Public License.

The complete license agreement is included in the LICENSE file.

eZp Extended Asort  is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

eZp Extended Asort is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU GPL gives you the right to use, modify and redistribute eZp Extended Asort under certain conditions. The GNU GPL license is distributed with the software, see the file LICENSE.

It is also available at http://www.gnu.org/licenses/gpl.txt

You should have received a copy of the GNU General Public License along with BC DateTime Filter in LICENSE. If not, see http://www.gnu.org/licenses/.

Using eZp Extended Asort under the terms of the GNU GPL is free (as in freedom).

For more information or questions please contact: license@brookinsconsulting.com

Requirements

The following requirements exists for using eZp Extended Asort:

eZ Publish version

  • Make sure you use eZ Publish version 5.x (required) or higher.
  • Designed and tested with eZ Publish Community Project GitHub Release tag (via composer) v2015.01.3

PHP version

  • Make sure you have PHP 5.x or higher.

Features

  • Naturally sorts an array using by the column $strSortBy
  • Sorts input array by name of column parameter and column position paramter by sortBy parameter value 'ASC' or 'DESC'
  • Returns the array sorted as required

Parameters

  • paramInput $aryData Array containing data to sort
  • param1 $strIndex Name of column to use as an index
  • param2 $strSortBy Column to sort the array by
  • param3 $strSortType String containing either asc or desc [default to asc]

Usage

  • Use Case #1: {def $variable = $arrayOfArrays|extended_asort( array('name'), 2, 'ASC' )}
  • Use Case #2: {def $variable = $arrayOfArrays|extended_asort( array('name'), 0 )}
  • Use Case #3: {def $variable = $arrayOfArrays|extended_asort( array('priority'), 1, 'ASC' )}

Troubleshooting

Read the FAQ

Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md

Support

If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.