Exemplo n.º 1
0
 public function initPhotoTags()
 {
     $dbCon = RsOpenFBDbTestUtils::getDbCon();
     $user1 = RsOpenFBDbTestUtils::getUser1();
     $user2 = RsOpenFBDbTestUtils::getUser2();
     $photoTag1 = RsOpenFBDbTestUtils::getPhotoTag1();
     $photoTag2 = RsOpenFBDbTestUtils::getPhotoTag2();
     $photoTag3 = RsOpenFBDbTestUtils::getPhotoTag3();
 }
Exemplo n.º 2
0
 public static function getPhotoTag2()
 {
     static $photoTag;
     if (!isset($photoTag)) {
         $user2 = RsOpenFBDbTestUtils::getUser2();
         $photo1 = RsOpenFBDbTestUtils::getPhoto1();
         $photoTag = RsOpenFBDbTestUtils::getOnePhotoTag($photo1->pid, $user2->getId(), "t2", 2.1, 2.2);
     }
     return $photoTag;
 }