model/entity/activity.php
public function getTranslator()
    {
        if (!$this->_translator instanceof ComActivitiesActivityTranslatorInterface)
        {
            $translator = $this->getObject('translator');

            if (!$translator instanceof ComActivitiesActivityTranslatorInterface) {
                $translator = $translator->decorate($this->_translator);
                $this->getObject('manager')->setObject('translator', $translator);
            }

            $this->setTranslator($translator);
        }

        return $this->_translator;
    }
public function getTranslator()
    {
        if (!$this->_translator instanceof ComActivitiesActivityTranslatorInterface)
        {
            $translator = $this->getObject('translator');

            if (!$translator instanceof ComActivitiesActivityTranslatorInterface) {
                $translator = $translator->decorate($this->_translator);
                $this->getObject('manager')->setObject('translator', $translator);
            }

            $this->setTranslator($translator);
        }

        return $this->_translator;
    }
public function getTranslator ( ) { if ( ! $ this -> _translator instanceof ComActivitiesActivityTranslatorInterface ) { $ translator = $ this -> getObject ( 'translator' ) ; if ( ! $ translator instanceof ComActivitiesActivityTranslatorInterface ) { $ translator = $ translator -> decorate ( $ this -> _translator ) ; $ this -> getObject ( 'manager' ) -> setObject ( 'translator' , $ translator ) ; } $ this -> setTranslator ( $ translator ) ; } return $ this -> _translator ; }
Set the activity translator.

@param ComActivitiesActivityTranslatorInterface $translator
@return ComActivitiesActivityInterface
Set the activity translator .