[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.display_column.php (summary)

(no description)

File Size: 319 lines (12 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Display_Column:: (6 methods):
  getColumnsToDisplay()
  getSelectedColumns()
  getColumnInfo()
  getAllColumns()
  save()
  setupNewProject()


Class: Display_Column  - X-Ref

Class to handle determining which columns should be displayed and in what order
on a page (e.g. Issue Listing page).

getColumnsToDisplay($prj_id, $page)   X-Ref
Returns the columns that should be displayed for the specified page.
This method will remove columns that should not be displayed, due to
lack of customer integration or insufficient role.

param: integer $prj_id The ID of the project.
param: string $page The page to return columns for.
return: array An array of columns that should be displayed.

getSelectedColumns($prj_id, $page)   X-Ref
Returns the columns that have been selected to be displayed on the specified page. This list
contains all selected columns, even if they won't actually be displayed.

param: integer $prj_id The ID of the project.
param: string $page The page to return columns for.
return: array An array of columns that should be displayed.

getColumnInfo($page, $column)   X-Ref
Returns the info of the column

param: string $page The name of the page.
param: string $column The name of the column
return: string Info on the column

getAllColumns($page)   X-Ref
Returns all columns available for a page

param: string $page The name of the page
return: array An array of columns

save()   X-Ref
Saves settings on which columns should be displayed.

return: integer 1 if settings were saved successfully, -1 if there was an error.

setupNewProject($prj_id)   X-Ref
Adds records in database for new project.

param: integer $prj_id The ID of the project.



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7