/**
  * @return Bengine_Game_Model_AchievementReward
  */
 protected function init()
 {
     $this->setTableName("achievement_reward");
     $this->setPrimaryKey("achievement_reward_id");
     $this->setModelName("game/achievementReward");
     return parent::init();
 }
Beispiel #2
0
 /**
  * @return Bengine_Game_Model_Friend
  */
 protected function init()
 {
     $this->setTableName("buddylist");
     $this->setPrimaryKey("relid");
     $this->setModelName("game/friend");
     return parent::init();
 }
Beispiel #3
0
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("galaxy");
     $this->setPrimaryKey("planetid");
     $this->setModelName("game/debris");
     return parent::init();
 }
Beispiel #4
0
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("user");
     $this->setPrimaryKey("userid");
     $this->setModelName("game/user");
     return parent::init();
 }
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Construction
  */
 protected function init()
 {
     $this->setTableName("construction");
     $this->setModelName("game/construction");
     $this->setPrimaryKey("buildingid");
     return parent::init();
 }
Beispiel #6
0
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("message");
     $this->setPrimaryKey("msgid");
     $this->setModelName("game/message");
     return parent::init();
 }
Beispiel #7
0
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Alliance
  */
 protected function init()
 {
     $this->setTableName("alliance");
     $this->setModelName("game/alliance");
     return parent::init();
 }
Beispiel #8
0
 /**
  * (non-PHPdoc)
  * @see app/code/Bengine/Model/Bengine_Game_Model_Abstract#_afterSave()
  * TODO
  */
 protected function _afterSave()
 {
     $this->set("data", unserialize($this->get("data")));
     return parent::_afterSave();
 }
Beispiel #9
0
 /**
  * Loading the setup data.
  *
  * @return Bengine_Game_Model_Profile
  */
 protected function _afterLoad()
 {
     if ($this->get("setup") != "") {
         $this->_setup = unserialize($this->get("setup"));
     }
     return parent::_afterLoad();
 }
Beispiel #10
0
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_News
  */
 protected function init()
 {
     $this->setTableName("news");
     $this->setModelName("game/news");
     return parent::init();
 }
Beispiel #11
0
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Event_Type
  */
 protected function init()
 {
     $this->setTableName("event_type");
     $this->setModelName("game/event_type");
     return parent::init();
 }