コード例 #1
0
ファイル: integrationtest.php プロジェクト: ronenlh/news
 /**
  * Saves a fixture in a database and returns the saved result
  * @param Entity $fixture
  * @return int the id
  */
 protected function loadFixture(Entity $fixture)
 {
     if ($fixture instanceof FeedFixture) {
         return $this->feedMapper->insert($fixture)->getId();
     } elseif ($fixture instanceof ItemFixture) {
         return $this->itemMapper->insert($fixture)->getId();
     } elseif ($fixture instanceof FolderFixture) {
         return $this->folderMapper->insert($fixture)->getId();
     }
     throw new \InvalidArgumentException('Invalid fixture class given');
 }
コード例 #2
0
ファイル: itemmapper.php プロジェクト: pombredanne/ArcherSys
 public function __construct(IDb $db){
     parent::__construct($db);
 }
コード例 #3
0
ファイル: itemmapper.php プロジェクト: cs-team/news
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db);
 }