Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
Themes Class Reference
Inheritance diagram for Themes:
tariqa3ModuleSectionManager tariqa3Module baseModule_RELEX_TARIQANG BaseModuleWithAuthenticationAndLanguages BaseModuleWithAuthentication BaseModule mModule

Public Member Functions

 __construct ($config)
 getPageContent ()
 onInitialize ()
 canProcessRequest ()
 getName ()
 getTitle ()
 getDescription ()
 getLink ()
 getBreadCrumb ()

Static Public Member Functions

static getDefaultFlavour ($translationTable)
static canEditTheme ($user, $theme_id)
static listLatestNewsQueries ($theme, $translationTable, $user, $flavour=null)
static listTopicQueries ($topic)

Data Fields

const LISTING = 0
const THEME_DISPLAY = 1

Protected Member Functions

 listThemes ($tpl)
 displayTheme ($tpl)

Constructor & Destructor Documentation

__construct ( config)

Construct the Module object

Parameters:
array$configThe multidimentionnal array containing the application's configuration

Reimplemented from tariqa3ModuleSectionManager.


Member Function Documentation

static canEditTheme ( user,
theme_id 
) [static]

Returns true if the current user can edit the theme text

Parameters:
tariqaUserThe user
int$theme_idThe theme identifier public
Returns:
boolean

Process all requests (this is the default module)

Reimplemented from mModule.

displayTheme ( tpl) [protected]

Renders the theme page

Parameters:
mTemplate$tplThe template of the page protected
Returns:
string

Return the items of the current breadcrumb path

Returns:
tariqa3ModuleDescriptor[]

Reimplemented from tariqa3Module.

static getDefaultFlavour ( translationTable) [static]

Gets the default flavour for the latest news queries

Parameters:
array$translationTableThe translation matrix public
Returns:
Flavour

Returns the description of the page public

Returns:
string

Reimplemented from tariqa3Module.

getLink ( )

Gets the link of the module public

Returns:
string

Reimplemented from tariqa3Module.

getName ( )

Returns the name of the class (what it should appear in the menu public

Returns:
string

Reimplemented from tariqa3Module.

Render the module

Returns:
string

Reimplemented from tariqa3Module.

getTitle ( )

Returns the title of the page public

Returns:
string

Reimplemented from tariqa3Module.

static listLatestNewsQueries ( theme,
translationTable,
user,
flavour = null 
) [static]

Gets the latest news queries for a theme

Parameters:
Theme$themeThe theme
array$translationTableThe translation matrix
tariqaUser$userThe current user
Flavour$flavourThe flavour of the query [OPTIONAL] public
Returns:
Query[]
listThemes ( tpl) [protected]

Renders the listing of the themes

Parameters:
mTemplate$tplThe template of the page protected
Returns:
string
static listTopicQueries ( topic) [static]

Gets the queries of a topic

Parameters:
ThemeTopic$topicThe theme topic public
Returns:
Query[]

Initializes the module public

Returns:
void

Reimplemented from tariqa3Module.


Field Documentation

const LISTING = 0
const THEME_DISPLAY = 1

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