public function getUserState() { if ($this->_userState) { return $this->_userState; } return $this->_userState = UserState::load($this->getUser()->getId(), $this->rec->id); }
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $userState = UserState::load(O::app()->user->id, $this->rec->id); ?> <div id="division-summary"> <h3><?php echo CHtml::link(O::t('oprecx', 'Division Choices'), $this->getURL('division', array('edit' => 1))); ?> </h3> <?php renderDivisionChoices($userState->getDivisionChoices()); ?> </div><!-- #division-summary --> <div id="form-summary"> <h3><?php echo CHtml::link(O::t('oprecx', 'Form'), $this->getURL('form', array('edit' => 1))); ?> </h3> <?php renderFormStatus($userState->getFormStatus()); ?> </div><!-- #form-summary --> <div id="intslot-summary"> <h3><?php echo O::t('oprecx', 'Interview Slot');