Differential D13033 Diff 31451 src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
Show All 23 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$all_day_id = celerity_generate_unique_node_id(); | $all_day_id = celerity_generate_unique_node_id(); | ||||
$start_date_id = celerity_generate_unique_node_id(); | $start_date_id = celerity_generate_unique_node_id(); | ||||
$end_date_id = null; | $end_date_id = null; | ||||
$next_workflow = $request->getStr('next'); | $next_workflow = $request->getStr('next'); | ||||
$uri_query = $request->getStr('query'); | $uri_query = $request->getStr('query'); | ||||
if ($this->isCreate()) { | if ($this->isCreate()) { | ||||
$event = PhabricatorCalendarEvent::initializeNewCalendarEvent($viewer); | $mode = $request->getStr('mode'); | ||||
$event = PhabricatorCalendarEvent::initializeNewCalendarEvent( | |||||
$viewer, | |||||
$mode); | |||||
$create_start_year = $request->getInt('year'); | $create_start_year = $request->getInt('year'); | ||||
$create_start_month = $request->getInt('month'); | $create_start_month = $request->getInt('month'); | ||||
$create_start_day = $request->getInt('day'); | $create_start_day = $request->getInt('day'); | ||||
$create_start_time = $request->getStr('time'); | $create_start_time = $request->getStr('time'); | ||||
if ($create_start_year) { | if ($create_start_year) { | ||||
$start = AphrontFormDateControlValue::newFromParts( | $start = AphrontFormDateControlValue::newFromParts( | ||||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |