/**
  * prepare
  * 
  * @param	void
  * 
  * @return	bool
  **/
 public function prepare()
 {
     parent::prepare();
     if ($this->mObject->isNew()) {
         if (!$this->_getLinkId()) {
             $this->mRoot->mController->executeRedirect('./index.php?action=LrpgList', 1, _MD_RPGLINK_ERROR_MISSING_PARENT_ID);
         } else {
             $this->mObject->set('link_id', $this->_getLinkId());
         }
     }
     $this->mObject->loadLink();
     return true;
 }
 /**
  * _doExecute
  * 
  * @param	void
  * 
  * @return	Enum
  **/
 protected function _doExecute()
 {
     if (!parent::_doExecute()) {
         return RPGLINK_FRAME_VIEW_ERROR;
     }
     $ret = $this->_saveImage('link', $this->mObject->get('title'), 'image1');
     return $ret == true ? RPGLINK_FRAME_VIEW_SUCCESS : RPGLINK_FRAME_VIEW_ERROR;
 }
 /**
  * prepare
  * 
  * @param   void
  * 
  * @return  bool
  **/
 public function prepare()
 {
     return parent::prepare() && is_object($this->mObject);
 }