/** * Constructor * @param $signoffUserGroup UserGroup The user * group to be represented in this column. */ function FileSignoffGridColumn(&$signoffUserGroup) { // Configure the column. import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('signoff-' . $signoffUserGroup->getId(), null, $signoffUserGroup->getLocalizedAbbrev(), 'controllers/grid/common/cell/statusCell.tpl', $cellProvider); }
/** * Constructor * @param $actionArgs array Action args for link actions */ function QueryTitleGridColumn($actionArgs) { $this->_actionArgs = $actionArgs; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('name', 'common.name', null, null, $cellProvider, array('width' => 60, 'alignment' => COLUMN_ALIGNMENT_LEFT)); }
/** * Constructor * @param $stageId integer One of the WORKFLOW_STAGE_ID_* constants. */ function FileNameGridColumn($stageId) { $this->_stageId = (int) $stageId; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('name', 'common.name', null, 'controllers/grid/gridCell.tpl', $cellProvider); }
/** * Constructor * @param $selectName string The name of the form parameter * to which the selected files will be posted. */ function FileSelectionGridColumn($selectName) { assert(is_string($selectName) && !empty($selectName)); $this->_selectName = $selectName; import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('select', 'common.select', null, 'controllers/grid/gridRowSelectInput.tpl', $cellProvider); }
/** * Constructor * @param $userGroup UserGroup The user * group to be represented in this column. * @param $userGroupsPrefix string A prefix * that uniquely identifies the set of * user group columns. */ function UserGroupColumn(&$userGroup, $userGroupsPrefix) { $this->_userGroup =& $userGroup; // Configure the column. import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn($userGroupsPrefix . 'Group-' . $userGroup->getId(), null, $userGroup->getLocalizedName(), 'controllers/grid/common/cell/statusCell.tpl', $cellProvider); }
/** * Constructor * @param $includeNotes boolean * @param $stageId int (optional) * @param $removeHistoryTab boolean (optional) Open the information center * without the history tab. */ function FileNameGridColumn($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::GridColumn('name', 'common.name', null, null, $cellProvider, array('width' => 70, 'alignment' => COLUMN_ALIGNMENT_LEFT, 'anyhtml' => true)); }
/** * Constructor * @param $id string * @param $title string Localization key * @param $titleTranslated * @param $requestArgs array * @param $flags array */ function BaseSignoffStatusColumn($id = '', $title = null, $titleTranslated = null, $userIds, $requestArgs = array(), $flags = array()) { $this->_requestArgs = $requestArgs; $this->_userIds = $userIds; // Configure the column. import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn($id, $title, $titleTranslated, 'controllers/grid/common/cell/statusCell.tpl', $cellProvider, $flags); }
/** * Constructor */ function ListbuilderGridColumn($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::GridColumn($id, $title, $titleTranslated, $template, $cellProvider, $flags); }
/** * Constructor */ function FileGenreGridColumn() { import('lib.pkp.classes.controllers.grid.ColumnBasedGridCellProvider'); $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('type', 'common.element', null, null, $cellProvider); }
/** * Constructor */ function UploaderUserGroupGridColumn($userGroup, $flags = array()) { $this->_userGroup = $userGroup; $cellProvider = new ColumnBasedGridCellProvider(); parent::GridColumn('userGroup-' . $userGroup->getId(), null, $userGroup->getLocalizedName(), 'controllers/grid/common/cell/statusCell.tpl', $cellProvider, $flags); }