Example #1
0
 public function render($idLang)
 {
     $row = new RM_View_Form_Row();
     $row->setDesc($this->getDesc());
     $row->setHTML($this->getView()->partial(static::BASE_PATH . static::TPL, $this->addFieldData($idLang, array('isLinked' => $this->_accessToken instanceof Application_Model_Api_Google_AccessToken, 'linkUrl' => $this->_client ? $this->_client->createAuthUrl() : '', 'unlinkUrl' => $this->getView()->url(['idDoctor' => $this->_doctor->getId()], 'admin-unlink-google-account')))));
     return $this->renderRow($row);
 }
Example #2
0
 public function render($idLang)
 {
     $row = new RM_View_Form_Row();
     $row->setDesc($this->getDesc());
     $row->setHTML($this->getView()->partial(self::BASE_PATH . self::TPL, $this->addFieldData($idLang, array())));
     return $this->renderRow($row);
 }