コード例 #1
0
ファイル: Fen.php プロジェクト: manishkhanchandani/mkgxy
 protected function populate()
 {
     parent::populate();
     if (!$this->getId() && !is_numeric($this->arguments[0])) {
         $this->setFen($this->arguments[0]);
         $this->commit();
     }
 }
コード例 #2
0
ファイル: Metadata.php プロジェクト: manishkhanchandani/mkgxy
 public function populate()
 {
     parent::populate();
     if (!$this->getId()) {
         $this->setMetadataKey($this->arguments[0]);
         $this->commit();
     }
 }
コード例 #3
0
ファイル: Elo.php プロジェクト: manishkhanchandani/mkgxy
 protected function populate()
 {
     parent::populate();
     if (!$this->getId()) {
         $this->setPlayerId($this->arguments[0]);
         $this->setCategory($this->arguments[1]);
         $this->commit();
     }
 }