Mage_Core_Model_Translate_Expr Class Reference

List of all members.

Public Member Functions

 __construct ($text='', $module='')
 setText ($text)
 setModule ($module)
 getText ()
 getModule ()
 getCode ($separator='::')

Protected Attributes

 $_text
 $_module


Detailed Description

Translate expression object

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Expr.php.


Constructor & Destructor Documentation

__construct ( text = '',
module = '' 
)

Definition at line 37 of file Expr.php.

00038     {
00039         $this->_text    = $text;
00040         $this->_module  = $module;
00041     }


Member Function Documentation

getCode ( separator = '::'  ) 

Retrieve expression code

Parameters:
string $separator
Returns:
string

Definition at line 81 of file Expr.php.

00082     {
00083         return $this->getModule().$separator.$this->getText();
00084     }

getModule (  ) 

Retrieve expression module

Returns:
string

Definition at line 70 of file Expr.php.

00071     {
00072         return $this->_module;
00073     }

getText (  ) 

Retrieve expression text

Returns:
string

Definition at line 60 of file Expr.php.

00061     {
00062         return $this->_text;
00063     }

setModule ( module  ) 

Definition at line 49 of file Expr.php.

00050     {
00051         $this->_module = $module;
00052         return $this;
00053     }

setText ( text  ) 

Definition at line 43 of file Expr.php.

00044     {
00045         $this->_text = $text;
00046         return $this;
00047     }


Member Data Documentation

$_module [protected]

Definition at line 35 of file Expr.php.

$_text [protected]

Definition at line 34 of file Expr.php.


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

Generated on Sat Jul 4 17:24:01 2009 for Magento by  doxygen 1.5.8