SproutCMS

This is the code documentation for the SproutCMS project

function addAction()

Adds an action to this itemlist.

The special action 'edit' is used when the row is clicked.

Usage

void $Itemlist->addAction ( string $name , string $url [, string $classes [, callable $show_func ]] );

Arguments

  1. string $name
    Link label
  2. string $url
    Link URL. This URL is processed by Itemlist::urlReplace during rendering
  3. string $classes = ''
    Additional classes for the A element
  4. callable $show_func = NULL
    Function called for each row to show or hide this action for that row

Return value

  • void