コード例 #1
0
 /**
  * @return Bengine_Game_Model_AchievementReward
  */
 protected function init()
 {
     $this->setTableName("achievement_reward");
     $this->setPrimaryKey("achievement_reward_id");
     $this->setModelName("game/achievementReward");
     return parent::init();
 }
コード例 #2
0
ファイル: Friend.php プロジェクト: enriquesomolinos/Bengine
 /**
  * @return Bengine_Game_Model_Friend
  */
 protected function init()
 {
     $this->setTableName("buddylist");
     $this->setPrimaryKey("relid");
     $this->setModelName("game/friend");
     return parent::init();
 }
コード例 #3
0
ファイル: Debris.php プロジェクト: enriquesomolinos/Bengine
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("galaxy");
     $this->setPrimaryKey("planetid");
     $this->setModelName("game/debris");
     return parent::init();
 }
コード例 #4
0
ファイル: User.php プロジェクト: enriquesomolinos/Bengine
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("user");
     $this->setPrimaryKey("userid");
     $this->setModelName("game/user");
     return parent::init();
 }
コード例 #5
0
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Construction
  */
 protected function init()
 {
     $this->setTableName("construction");
     $this->setModelName("game/construction");
     $this->setPrimaryKey("buildingid");
     return parent::init();
 }
コード例 #6
0
ファイル: Message.php プロジェクト: enriquesomolinos/Bengine
 /**
  * (non-PHPdoc)
  * @see lib/Object#init()
  */
 protected function init()
 {
     $this->setTableName("message");
     $this->setPrimaryKey("msgid");
     $this->setModelName("game/message");
     return parent::init();
 }
コード例 #7
0
ファイル: Alliance.php プロジェクト: enriquesomolinos/Bengine
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Alliance
  */
 protected function init()
 {
     $this->setTableName("alliance");
     $this->setModelName("game/alliance");
     return parent::init();
 }
コード例 #8
0
ファイル: Event.php プロジェクト: enriquesomolinos/Bengine
 /**
  * (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();
 }
コード例 #9
0
ファイル: Profile.php プロジェクト: enriquesomolinos/Bengine
 /**
  * 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();
 }
コード例 #10
0
ファイル: News.php プロジェクト: enriquesomolinos/Bengine
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_News
  */
 protected function init()
 {
     $this->setTableName("news");
     $this->setModelName("game/news");
     return parent::init();
 }
コード例 #11
0
ファイル: Type.php プロジェクト: enriquesomolinos/Bengine
 /**
  * Initializes the model.
  *
  * @return Bengine_Game_Model_Event_Type
  */
 protected function init()
 {
     $this->setTableName("event_type");
     $this->setModelName("game/event_type");
     return parent::init();
 }