LanguagesCollectionView Class Reference

Inheritance diagram for LanguagesCollectionView:
MetadataView View

Public Member Functions

 __construct ($controllerId, $moduleId, $messageBoxContent=null)
 getTitle ()
 isUniqueToAPage ()
 renderLanguageRow ($languageCode, $languageData=null)

Static Public Member Functions

static getLanguageDataByLanguageCode ($languageCode)
static getLanguagesData ()
static renderFlashMessage ($text, $permanent=false, $showIcon=true)

Data Fields

const LANGUAGE_STATUS_ACTIVE = 1
const LANGUAGE_STATUS_INACTIVE = 2

Protected Member Functions

 renderContent ()
 registerJavaScript ()
 renderMessageBoxContent ()
 renderLanguagesList ($languageStatus)
 renderUpdateButton ($languageCode, $languageData)
 renderDeactivateButton ($languageCode, $languageData)
 renderActivateButton ($languageCode, $languageData)
 renderButtonHtml ($action, $languageCode, $languageData)
 renderButtonSpinnerSpans ()
 getLanguagesList ($languageStatus=null)

Protected Attributes

 $controllerId
 $moduleId
 $languagesList
 $messageBoxContent

Detailed Description

A view that displays a list of supported languages in the application.

Definition at line 41 of file LanguagesCollectionView.php.


Constructor & Destructor Documentation

__construct ( controllerId,
moduleId,
messageBoxContent = null 
)
Parameters:
string $controllerId
string $moduleId
null|string $messageBoxContent

Definition at line 59 of file LanguagesCollectionView.php.


Member Function Documentation

isUniqueToAPage (  ) 

Tells View that it can render the extending class' divs with and id matching their name. Must be overridden to return false in extending classes that can be rendered multiple times within a page to avoid generating a page with non-unique ids which will fail XHtml validation. For those it will render a class attribute with their name.

Reimplemented from View.

Definition at line 74 of file LanguagesCollectionView.php.

renderContent (  )  [protected]

Renders the view content.

Reimplemented from View.

Definition at line 79 of file LanguagesCollectionView.php.

renderActivateButton ( languageCode,
languageData 
) [protected]
Parameters:
string $languageCode
array $languageData
Returns:
string

Definition at line 251 of file LanguagesCollectionView.php.

static renderFlashMessage ( text,
permanent = false,
showIcon = true 
) [static]
Parameters:
string $text
bool $permanent
bool $showIcon
Returns:
string

Definition at line 390 of file LanguagesCollectionView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Aug 19 07:10:26 2017