Example #1
0
 /**
  * Obtener los datos para mostrar el interface para ver cuenta
  */
 public function getViewAccount()
 {
     $this->setAction(self::ACTION_ACC_VIEW);
     // Obtener los datos de la cuenta antes y comprobar el acceso
     $isOk = $this->setAccountData() && $this->checkAccess();
     if (!$isOk) {
         return;
     }
     $this->view->addTemplate('account');
     $this->view->assign('title', array('class' => 'titleNormal', 'name' => _('Detalles de Cuenta'), 'icon' => 'visibility'));
     $this->view->assign('showform', false);
     \SP\Session::setAccountParentId($this->getId());
     $this->_account->incrementViewCounter();
     $this->setCommonData();
     $this->setShowData();
 }