Xataface 2.0
Xataface Application Framework
Public Member Functions | Data Fields
Dataface_TranslationForm Class Reference
Inheritance diagram for Dataface_TranslationForm:
Dataface_QuickForm

Public Member Functions

 getGoogleLanguage ($lang)
 Dataface_TranslationForm (&$record, $source=null, $dest=null, $query='', $fieldnames=null)
 loadRecords ()
 _buildWidget ($field)
 getFormTemplate ()
 getGroupTemplate ($name)
 getFieldGroupTemplate ($name)
 save ($values)
 display ()

Data Fields

 $sourceLanguage = null
 $destinationLanguage = null
 $records = array()
 $_dest_translatedFields
 $translatableLanguages = array()

Detailed Description

Definition at line 25 of file TranslationForm.php.


Member Function Documentation

_buildWidget ( field)

Definition at line 146 of file TranslationForm.php.

Dataface_TranslationForm ( &$  record,
source = null,
dest = null,
query = '',
fieldnames = null 
)

Creates a new translation form.

Parameters:
$recordReference to Dataface_Record object to be translated.
$sourceThe 2-digit language code of the source language.
$destThe 2-digit language code of the destination language.
$fieldnamesOptional array of fields that are to be translated. By default all translatable fields will be translated.

Definition at line 47 of file TranslationForm.php.

display ( )

Dataface_PermissionsTool::edit($this->_table)

Reimplemented from Dataface_QuickForm.

Definition at line 247 of file TranslationForm.php.

getFieldGroupTemplate ( name)

Reimplemented from Dataface_QuickForm.

Definition at line 215 of file TranslationForm.php.

getFormTemplate ( )

Reimplemented from Dataface_QuickForm.

Definition at line 162 of file TranslationForm.php.

getGoogleLanguage ( lang)

Definition at line 33 of file TranslationForm.php.

getGroupTemplate ( name)

Reimplemented from Dataface_QuickForm.

Definition at line 196 of file TranslationForm.php.

loadRecords ( )

Definition at line 101 of file TranslationForm.php.

save ( values)

Reimplemented from Dataface_QuickForm.

Definition at line 238 of file TranslationForm.php.


Field Documentation

$_dest_translatedFields

Definition at line 30 of file TranslationForm.php.

$destinationLanguage = null

Definition at line 28 of file TranslationForm.php.

$records = array()

Definition at line 29 of file TranslationForm.php.

$sourceLanguage = null

Definition at line 27 of file TranslationForm.php.

$translatableLanguages = array()

Definition at line 31 of file TranslationForm.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations