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


PHP Event::setStartDate方法代码示例

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


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

示例1: createEvent

 protected function createEvent()
 {
     $event = new Event();
     $event->setTitle('Test Event #1');
     $event->setStartDate('2010-06-01');
     return $event;
 }
开发者ID:netcarver,项目名称:flourish,代码行数:7,代码来源:fORMColumnTest.php

示例2: createNewEvent

 private function createNewEvent($email, $password, $title, $venue, $privacy, $fees, $currency_country = "")
 {
     $response = array();
     $response["success"] = 0;
     //verify if the user exists
     $trycheck = new TryUserLogin($email, $password);
     if ($trycheck->isExists()) {
         $tryfetch = new TryFetchUser();
         $user = $tryfetch->fetch($email);
         if ($user != null) {
             $user_json = json_encode($user);
             $user_php = json_decode($user_json);
             $event = new Event($user_php->ID, $title, $venue, $privacy);
             $event->setCreateDate(Validator::Now());
             $event->setDuration("");
             $event->setStartDate("");
             $event->setDescription("");
             $event->setFees($fees);
             $event->setCurrencyCountry($currency_country);
             // $event->setSearchableKeywords($searchable);
             //validate the events
             if ($this->validate($event)) {
                 $response = $this->commit($event);
             } else {
                 $response["error_message"] = $this->__message;
             }
         }
     } else {
         $response["success"] = 0;
         $response["error_message"] = "relogin into your account , user session expired";
     }
     $jsonView = new JsonViewer();
     $jsonView->setContent($response);
     return $jsonView;
 }
开发者ID:jimobama,项目名称:fffddffd,代码行数:35,代码来源:TryCreateNewEventController.php

示例3: load

 public function load(ObjectManager $manager)
 {
     $testEvent = new Event();
     $testEvent->setStartDate(date("d/m/Y"));
     $testEvent->setName('TestEvent');
     //$testEvent->setOwner('James');
     $manager->persist($testEvent);
     $manager->flush();
     $this->addReference('test-event', $testEvent);
 }
开发者ID:JamesHyot,项目名称:symfony_userevent,代码行数:10,代码来源:LoadEventData.php

示例4: function

    } else {
        $response["error"] = 1;
        $response["error_message"] = "Invalid ID,Expecting numeric ID";
    }
    print json_encode($response);
});
$app->put('/event/:id', function ($id) use($app, $eventMapper) {
    verifyRequiredParams(array('id', 'logo'));
    $event = new Event();
    $event->setId($id);
    $event->setName($app->request()->put('name'));
    $event->setDetails($app->request()->put('details'));
    $event->setSlogan($app->request()->put('slogan'));
    $event->setCategory($app->request()->put('type'));
    $event->setRules($app->request()->put('rules'));
    $event->setStartDate($app->request()->put('start_date'));
    $event->setEndDate($app->request()->put('end_date'));
    $event->setStartTime($app->request()->put('start_time'));
    $event->setEndTime($app->request()->put('end_time'));
    $event->setGroupSize($app->request()->put('group_size'));
    $event->setLogo($app->request()->put('logo'));
    # --Getting the put vars and typecasting to int. Blehhh. Can't help, its PHP xD
    $feeHome = $app->request()->put('fee_home');
    settype($feeHome, "integer");
    $feeRemote = $app->request()->put('fee_remote');
    settype($feeRemote, "integer");
    #--
    $event->setFeeHome($feeHome);
    $event->setFeeRemote($feeRemote);
    $event->setLocation($app->request()->put('location'));
    $event->setEventHeadName($app->request()->put('event_head_name'));
开发者ID:bedekarsarvesh,项目名称:Udaan2016,代码行数:31,代码来源:index.php

示例5: testPopulateReverseOneToOne

 public function testPopulateReverseOneToOne()
 {
     $event = new Event();
     $event->setTitle('Test Event');
     $event->setStartDate('today');
     $event->populateEventSlot();
     $event->populateEventDetail();
     $event->store();
 }
开发者ID:netcarver,项目名称:flourish,代码行数:9,代码来源:fORMRelatedTest.php

示例6: testDeleteForceCascadeManyToMany

 public function testDeleteForceCascadeManyToMany()
 {
     $event = new Event();
     $event->setTitle('Delete Restrict Event');
     $event->setStartDate(new fDate());
     $event->associateArtists(array(1));
     $event->store();
     $event->delete(TRUE);
     $this->assertEquals(FALSE, $event->exists());
 }
开发者ID:netcarver,项目名称:flourish,代码行数:10,代码来源:fActiveRecordTest.php

示例7: parserEventJson

 private function parserEventJson($jsonevent)
 {
     $event = null;
     //convert to php object
     $php_object = json_decode($jsonevent);
     if ($php_object != null) {
         $event = new Event($php_object->CreatorId, $php_object->Title, $php_object->Venue, $php_object->privacy);
         $event->setCurrencyCountry($php_object->current_country);
         $event->setSearchableKeywords($php_object->search_keywords);
         $event->setFees($php_object->fees);
         $event->setCurrencyCountry($php_object->current_country);
         $event->setCurrencyCountry($php_object->current_country);
         $event->setDescription($php_object->Description);
         $event->setStartDate($php_object->StartDate);
         $event->setGoing($php_object->going);
     }
     return $event;
 }
开发者ID:jimobama,项目名称:fffddffd,代码行数:18,代码来源:TryUpdateEventController.php


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