public function getTranslatedData()
    {
        if(!$this->isXmlHttpRequest()){
            throw new common_exception_BadRequest('wrong request mode');
        }
        $data = array();
        if($this->hasRequestParameter('lang')){
            $data = tao_helpers_Uri::encodeArray(
                $this->getClassService()->getTranslatedProperties(
                    $this->getCurrentInstance(),
                    $this->getRequestParameter('lang')
                ),
                tao_helpers_Uri::ENCODE_ARRAY_KEYS);
        }
        $this->returnJson($data);
    }
public function getTranslatedData()
    {
        if(!$this->isXmlHttpRequest()){
            throw new common_exception_BadRequest('wrong request mode');
        }
        $data = array();
        if($this->hasRequestParameter('lang')){
            $data = tao_helpers_Uri::encodeArray(
                $this->getClassService()->getTranslatedProperties(
                    $this->getCurrentInstance(),
                    $this->getRequestParameter('lang')
                ),
                tao_helpers_Uri::ENCODE_ARRAY_KEYS);
        }
        $this->returnJson($data);
    }
public function getTranslatedData ( ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { throw new common_exception_BadRequest ( 'wrong request mode' ) ; } $ data = array ( ) ; if ( $ this -> hasRequestParameter ( 'lang' ) ) { $ data = tao_helpers_Uri :: encodeArray ( $ this -> getClassService ( ) -> getTranslatedProperties ( $ this -> getCurrentInstance ( ) , $ this -> getRequestParameter ( 'lang' ) ) , tao_helpers_Uri :: ENCODE_ARRAY_KEYS ) ; } $ this -> returnJson ( $ data ) ; }
load the translated data of an instance regarding the given lang

@throws common_exception_BadRequest
@throws common_exception_Error
@throws tao_models_classes_MissingRequestParameterException

@return void
load the translated data of an instance regarding the given lang