* * @package resModel * @access public **/ class ResLiteral extends Literal { /** * Holds a reference to the associated model * @var ResModel * @access private */ var $model; /** * Constructor * You have to supply a string. * * @param string $str label of the literal * @param string $language optional language identifier */ function ResLiteral($str,$language = null) { parent::Literal($str,$language); } /** * Sets the reference to the assocoated model. * * @param object model $model * @access public */ function setAssociatedModel(& $model) { $this->model=& $model; } /** * Get the reference to the assocoated model. * * @return object model $model * @access public */ function & getAssociatedModel() { return $this->model; } } ?>