当前位置: 首页>>代码示例>>PHP>>正文


PHP Place::getId方法代码示例

本文整理汇总了PHP中Place::getId方法的典型用法代码示例。如果您正苦于以下问题:PHP Place::getId方法的具体用法?PHP Place::getId怎么用?PHP Place::getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Place的用法示例。


在下文中一共展示了Place::getId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getClassesForPlace

 public function getClassesForPlace(Place $place)
 {
     $q = Doctrine_Query::create()->from('AbstractClass class')->where('class.place_id = ?', $place->getId());
     return $q->execute();
 }
开发者ID:omarcl,项目名称:training-spot,代码行数:5,代码来源:AbstractClassTable.class.php

示例2: testSetGetId

 public function testSetGetId()
 {
     $this->object->setId(123);
     $this->assertEquals(123, $this->object->getId());
 }
开发者ID:EHER,项目名称:chegamos,代码行数:5,代码来源:PlaceTest.php

示例3: User

 function test_confirmMeetUserTwo()
 {
     //Arrange
     $user_name = "Nathan";
     $password = "xxx60606";
     $latitude = 45.520969;
     $longitude = -122.679953;
     $signed_in = 1;
     $id = 1;
     $test_user = new User($user_name, $password, $longitude, $latitude, $signed_in, $id);
     $test_user->save();
     $user_name2 = "John";
     $password2 = "xxx";
     $latitude2 = 45.515852;
     $longitude2 = -122.674644;
     $signed_in2 = 1;
     $id2 = 1;
     $test_user2 = new User($user_name2, $password2, $longitude2, $latitude2, $signed_in2, $id2);
     $test_user2->save();
     $place_name = "Director Park";
     $address = "SW Park Ave";
     $longitude = 45.518672;
     $latitude = -122.681211;
     $id3 = 5;
     $test_place = new Place($place_name, $address, $longitude, $latitude, $id3);
     //Act
     $test_user->addMeetUpRequest($test_user2->getId(), $test_place->getId());
     $test_user2->confirmMeetupRequest($test_user->getId());
     $test_user2->confirmMeetUserTwo($test_user->getId(), $test_user2->getId(), true);
     $meetup_array = Meetup::getAll();
     $result = $meetup_array[0]->getConfirm_meet_usr2();
     //Assert
     $this->assertEquals(true, $result);
 }
开发者ID:juliocesardiaz,项目名称:Face2Face,代码行数:34,代码来源:UserTest.php

示例4: link_to_event_new

/**
 * Ссылка на добавление события
 *
 * @param Place $place
 */
function link_to_event_new($place = null)
{
    $args = $place ? array('place' => $place->getId()) : array();
    return link_to('Добавить событие', 'event_new', $args, array('class' => 'ajax event-new'));
}
开发者ID:pycmam,项目名称:neskuchaik.ru,代码行数:10,代码来源:FrontendHelper.php

示例5: Place

 function test_getId()
 {
     //Arrange
     $place_name = "Director Park";
     $address = "SW Park Ave";
     $latitude = 45.518672;
     $longitude = -122.681211;
     $id = 1;
     $test_place = new Place($place_name, $address, $latitude, $longitude, $id);
     //Act
     $result = $test_place->getId();
     //Assert
     $this->assertEquals($id, $result);
 }
开发者ID:juliocesardiaz,项目名称:Face2Face,代码行数:14,代码来源:PlaceTest.php


注:本文中的Place::getId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。