/** * Constructor * @param $actionArgs array Action args for link actions */ function __construct($actionArgs) { $this->_actionArgs = $actionArgs; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::__construct('name', 'common.name', null, null, $cellProvider, array('width' => 60, 'alignment' => COLUMN_ALIGNMENT_LEFT)); }
/** * Constructor * @param $selectName string The name of the form parameter * to which the selected files will be posted. */ function __construct($selectName) { assert(is_string($selectName) && !empty($selectName)); $this->_selectName = $selectName; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::__construct('select', 'common.select', null, 'controllers/grid/gridRowSelectInput.tpl', $cellProvider, array('width' => 1)); }
/** * Constructor * @param $includeNotes boolean * @param $stageId int (optional) * @param $removeHistoryTab boolean (optional) Open the information center * without the history tab. */ function __construct($includeNotes = true, $stageId = null, $removeHistoryTab = false) { $this->_includeNotes = $includeNotes; $this->_stageId = $stageId; $this->_removeHistoryTab = $removeHistoryTab; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::__construct('name', 'common.name', null, null, $cellProvider, array('width' => 70, 'alignment' => COLUMN_ALIGNMENT_LEFT, 'anyhtml' => true)); }
/** * Constructor * @param $listbuilder ListbuilderHandler The listbuilder handler this column belongs to. * @param $id string The optional symbolic ID for this column. * @param $title string The optional title for this column. * @param $titleTranslated string The optional translated title for this column. * @param $template string The optional overridden template for this column. * @param $cellProvider ListbuilderGridCellProvider The optional overridden grid cell provider. * @param $flags array Optional set of flags for this column's display. */ function __construct($listbuilder, $id = '', $title = null, $titleTranslated = null, $template = null, $cellProvider = null, $flags = array()) { // Set this here so that callers using later optional parameters don't need to // duplicate it. if ($template === null) { $template = 'controllers/listbuilder/listbuilderGridCell.tpl'; } // Make the listbuilder's source type available to the cell template as a flag $flags['sourceType'] = $listbuilder->getSourceType(); parent::__construct($id, $title, $titleTranslated, $template, $cellProvider, $flags); }
/** * Constructor */ function __construct($userGroup, $flags = array()) { $this->_userGroup = $userGroup; $cellProvider = new ColumnBasedGridCellProvider(); parent::__construct('userGroup-' . $userGroup->getId(), null, $userGroup->getLocalizedName(), 'controllers/grid/common/cell/statusCell.tpl', $cellProvider, $flags); }
/** * Constructor */ function __construct() { import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::__construct('type', 'common.component', null, null, $cellProvider); }