2013-10-22 16:57:28 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Zend_View_Helper_SelectionToolbar extends Zend_View_Helper_Abstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create a selection toolbar
|
|
|
|
*
|
|
|
|
* @param $type
|
|
|
|
* @param null $target
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function selectionToolbar($type, $target = null)
|
|
|
|
{
|
|
|
|
if ($type == 'multi') {
|
2014-04-09 19:13:46 +02:00
|
|
|
return '<div class="selection-toolbar">'
|
|
|
|
. '<a href="' . $target . '" data-base-target="_next"> Select All </a> </div>';
|
2013-10-22 16:57:28 +02:00
|
|
|
} else {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|