Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
GridRow Class Reference
Inheritance diagram for GridRow:
GridBodyElement AddThisStatisticsGridRow AnnouncementGridRow AnnouncementTypeGridRow ApprovedProofFilesGridRow CategoryGridRow ContextGridRow ContributorGridRow EventLogGridRow GenreGridRow GridCategoryRow IdentificationCodeGridRow LanguageGridRow LibraryFileGridRow ListbuilderGridRow MarketsGridRow NotificationsGridRow PKPAuthorGridRow PKPCitationGridRow PKPFilterGridRow PKPPluginGridRow PKPPreparedEmailsGridRow PublicationDateGridRow PublicationFormatGridRow RepresentativesGridRow ReviewerGridRow ReviewerSelectGridRow SalesRightsGridRow SeriesGridRow SignoffGridRow SocialMediaGridRow SponsorGridRow SpotlightsGridRow StageParticipantGridRow SubmissionChecklistGridRow SubmissionFilesGridRow UserGridRow UserGroupGridRow

Public Member Functions

 addAction ($action, $position=GRID_ACTION_POSITION_DEFAULT)
 getActions ($position=GRID_ACTION_POSITION_DEFAULT)
getData ()
 getGridId ()
 getIsModified ()
 getNoActionMessage ()
 getRequestArgs ()
 getTemplate ()
 GridRow ()
 hasActions ()
 initialize ($request, $template=null)
 setData (&$data)
 setGridId ($gridId)
 setIsModified ($isModified)
 setNoActionMessage ($message)
 setRequestArgs ($requestArgs)
 setTemplate ($template)
- Public Member Functions inherited from GridBodyElement
 addFlag ($flag, $value=true)
getCellProvider ()
 getFlag ($flag)
 getFlags ()
 getId ()
 GridBodyElement ($id= '', $cellProvider=null, $flags=array())
 hasFlag ($flag)
 setCellProvider (&$cellProvider)
 setId ($id)

Public Attributes

 $_actions = array(GRID_ACTION_POSITION_DEFAULT => array())
- Public Attributes inherited from GridBodyElement

Detailed Description

Class defining basic operations for handling HTML gridRows.

NB: If you want row-level refresh then you must override the getData() method so that it fetches data (e.g. from the database) when called. The data to be fetched can be determined from the id (=row id) which is always set.

Definition at line 25 of file

Member Function Documentation

GridRow::getActions (   $position = GRID_ACTION_POSITION_DEFAULT)

Get all actions for a given position within the controller

$positionstring the position of the actions
array the LinkActions for the given position

Definition at line 187 of file

GridRow::getGridId ( )

Get the grid id


Definition at line 99 of file

Referenced by GenreGridRow\initialize(), LanguageGridRow\initialize(), and UserGridRow\initialize().

GridRow::getIsModified ( )

Get the modified flag for the row


Definition at line 149 of file

GridRow::getNoActionMessage ( )

Get the no action message for this row.


Definition at line 165 of file

GridRow::getRequestArgs ( )

Get the grid request parameters.

See Also

Definition at line 117 of file

Referenced by CategoryGridRow\initialize(), and UserGridRow\initialize().

GridRow::getTemplate ( )

Get the row template - override base implementation to provide a sensible default.


Definition at line 207 of file

GridRow::GridRow ( )


Definition at line 77 of file

GridRow::hasActions ( )

Get whether this row has any actions or not.


Definition at line 173 of file

GridRow::initialize (   $request,
  $template = null 

Initialize a row instance.

Subclasses can override this method.


Definition at line 230 of file

GridRow::setData ( $data)

Set the data element(s) for this controller


Definition at line 125 of file

GridRow::setGridId (   $gridId)

Set the grid id


Definition at line 91 of file

GridRow::setIsModified (   $isModified)

Set the modified flag for the row


Definition at line 141 of file

GridRow::setNoActionMessage (   $message)

Set the no action message for the row.


Definition at line 157 of file

GridRow::setRequestArgs (   $requestArgs)

Set the grid request parameters.

See Also

Definition at line 108 of file

GridRow::setTemplate (   $template)

Set the controller template


Definition at line 215 of file

Referenced by addAction(), and AddThisStatisticsGridRow\initialize().

Member Data Documentation

array GridRow::$_actions = array(GRID_ACTION_POSITION_DEFAULT => array())

row actions, the first key represents the position of the action in the row template, the second key represents the action id.

Definition at line 65 of file

mixed GridRow::$_data

the row's data source

Definition at line 43 of file

Referenced by AddThisStatisticsGridRow\initialize(), and SocialMediaGridRow\initialize().

the GridRow::$_gridId

grid this row belongs to

Definition at line 37 of file

boolean GridRow::$_isModified

true if the row has been modified

Definition at line 49 of file

string GridRow::$_noActionMessage

an optional message to display as a 'grid action' in place of real grid actions

Definition at line 55 of file

string GridRow::$_template

the row template

Definition at line 71 of file

The documentation for this class was generated from the following file: