/** * get default view. * * @return Enum */ public function getDefaultView() { if (!$this->mRoot->mContext->mUser->mIdentity->isAuthenticated()) { return $this->_getFrameViewStatus('ERROR'); } $this->mHandler =& Cosmoapi_Utils::getTrustModuleHandler('data', $this->mAsset->mTrustDirname); $this->_getId(); if (!$this->mHandler->setDirname($this->mDirname)) { return $this->_getFrameViewStatus('ERROR'); } $req = $this->mRoot->mContext->mRequest; $key = $req->getRequest('key'); $value = $req->getRequest('value'); $this->mResult = $this->mHandler->update($this->mDataId, $key, $value); return $this->_getFrameViewStatus('SUCCESS'); }