Class Mage_Core_Model_Translate_Inline

Description

Inline Translations PHP part

Located in /Core/Model/Translate/Inline.php (line 35)


	
			
Variable Summary
Method Summary
bool getIsJson ()
bool isAllowed ([mixed $store = null])
Mage_Core_Model_Translate_Inline processResponseBody ( &$body, array|string $body)
string _escape (string $string)
void _otherText ()
void _specialTags ()
void _tagAttributes ()
Variables
array $_allowedTagsGlobal = array(
'script' => 'String in Javascript',
'title' => 'Page title',
)
(line 77)

List of global tags

  • access: protected
array $_allowedTagsSimple = array(
'legend' => 'Caption for the fieldset element',
'label' => 'Label for an input element.',
'option' => 'Drop-down list option',
'button' => 'Push button',
'a' => 'Link label',
'b' => 'Bold text',
'strong' => 'Strong emphasized text',
'i' => 'Italic text',
'em' => 'Emphasized text',
'u' => 'Underlined text',
'sup' => 'Superscript text',
'sub' => 'Subscript text',
'span' => 'Span element',
'small' => 'Smaller text',
'big' => 'Bigger text',
'address' => 'Contact information',
'blockquote' => 'Long quotation',
'q' => 'Short quotation',
'cite' => 'Citation',
'dt' => 'Item in a definition list',
'dd' => 'Item description in a definition list.',
'caption' => 'Table caption',
'th' => 'Header cell in a table',
'td' => 'Standard cell in a table',
'abbr' => 'Abbreviated phrase',
'acronym' => 'An acronym',
'var' => 'Variable part of a text',
'dfn' => 'Term',
'strike' => 'Strikethrough text',
'del' => 'Deleted text',
'ins' => 'Inserted text',
'h1' => 'Heading level 1',
'h2' => 'Heading level 2',
'h3' => 'Heading level 3',
'h4' => 'Heading level 4',
'h5' => 'Heading level 5',
'h6' => 'Heading level 6',
'p' => 'Paragraph',
'pre' => 'Preformatted text',
'center' => 'Centered text'
)
(line 87)

List of simple tags

  • access: protected
string $_content (line 49)

Response body or JSON content string

  • access: protected
bool $_isAllowed (line 56)

Is enabled and allowed inline translates flags

  • access: protected
bool $_isJson = false (line 70)

Current content is JSON or Response body

  • access: protected
bool $_isScriptInserted = false (line 63)

Flag about inserted styles and scripts for inline translates

  • access: protected
string $_tokenRegex = '\{\{\{(.*?)\}\}\{\{(.*?)\}\}\{\{(.*?)\}\}\{\{(.*?)\}\}\}' (line 42)

Regular Expression for detected and replace translate

  • access: protected
Methods
getIsAjaxRequest (line 459)

Check is a Request contain Json flag

  • deprecated: 1.3.2.2
  • access: public
bool getIsAjaxRequest ()
getIsJson (line 482)

Retrieve flag about parsed content is Json

  • access: public
bool getIsJson ()
isAllowed (line 136)

Is enabled and allowed Inline Translates

  • access: public
bool isAllowed ([mixed $store = null])
  • mixed $store
processAjaxPost (line 167)

Parse and save edited translate

  • access: public
Mage_Core_Model_Translate_Inline processAjaxPost (array $translate)
  • array $translate
processResponseBody (line 215)

Replace translate templates to HTML fragments

  • access: public
Mage_Core_Model_Translate_Inline processResponseBody ( &$body, array|string $body)
  • array|string $body
  • &$body
setIsAjaxRequest (line 471)

Set is a Request contain Json flag

  • deprecated: 1.3.2.2
  • access: public
Mage_Core_Model_Translate_Inline setIsAjaxRequest (bool $flag)
  • bool $flag
setIsJson (line 493)

Set flag about parsed content is Json

  • access: public
Mage_Core_Model_Translate_Inline setIsJson (bool $flag)
  • bool $flag
stripInlineTranslations (line 197)

Strip inline translations from text

  • access: public
Mage_Core_Model_Translate_Inline stripInlineTranslations ( &$body, array|string $body)
  • array|string $body
  • &$body
_escape (line 281)

Escape Translate data

  • access: protected
string _escape (string $string)
  • string $string
_insertInlineScriptsHtml (line 242)
  • access: protected
void _insertInlineScriptsHtml ()
_otherText (line 423)

Prepare other text inline translates

  • access: protected
void _otherText ()
_specialTags (line 344)

Prepare special tags

  • access: protected
void _specialTags ()
_tagAttributes (line 290)

Prepare tags inline translates

  • access: protected
void _tagAttributes ()

Documentation generated on Fri, 11 Feb 2011 17:06:45 +0200 by phpDocumentor 1.4.3