Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2332830
ConpherenceListController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
ConpherenceListController.php
View Options
<?php
/**
* @group conpherence
*/
final
class
ConpherenceListController
extends
ConpherenceController
{
private
$conpherenceID
;
public
function
setConpherenceID
(
$conpherence_id
)
{
$this
->
conpherenceID
=
$conpherence_id
;
return
$this
;
}
public
function
getConpherenceID
()
{
return
$this
->
conpherenceID
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
setConpherenceID
(
idx
(
$data
,
'id'
));
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$title
=
pht
(
'Conpherence'
);
$conpherence_id
=
$this
->
getConpherenceID
();
$current_selection_epoch
=
null
;
if
(
$conpherence_id
)
{
$conpherence
=
id
(
new
ConpherenceThreadQuery
())
->
setViewer
(
$user
)
->
withIDs
(
array
(
$conpherence_id
))
->
executeOne
();
if
(!
$conpherence
)
{
return
new
Aphront404Response
();
}
if
(
$conpherence
->
getTitle
())
{
$title
=
$conpherence
->
getTitle
();
}
$this
->
setSelectedConpherencePHID
(
$conpherence
->
getPHID
());
$participant
=
$conpherence
->
getParticipant
(
$user
->
getPHID
());
$current_selection_epoch
=
$participant
->
getDateTouched
();
}
$this
->
loadStartingConpherences
(
$current_selection_epoch
);
$nav
=
$this
->
buildSideNavView
();
$main_pane
=
$this
->
renderEmptyMainPane
();
$nav
->
appendChild
(
array
(
$main_pane
,
));
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
$title
,
'device'
=>
true
,
));
}
private
function
renderEmptyMainPane
()
{
$this
->
initJavelinBehaviors
();
return
phutil_tag
(
'div'
,
array
(
'id'
=>
'conpherence-main-pane'
),
array
(
phutil_tag
(
'div'
,
array
(
'class'
=>
'conpherence-header-pane'
,
'id'
=>
'conpherence-header-pane'
,
),
''
),
phutil_tag
(
'div'
,
array
(
'class'
=>
'conpherence-widget-pane'
,
'id'
=>
'conpherence-widget-pane'
),
''
),
javelin_tag
(
'div'
,
array
(
'class'
=>
'conpherence-message-pane'
,
'id'
=>
'conpherence-message-pane'
),
array
(
phutil_tag
(
'div'
,
array
(
'class'
=>
'conpherence-messages'
,
'id'
=>
'conpherence-messages'
),
''
),
phutil_tag
(
'div'
,
array
(
'id'
=>
'conpherence-form'
),
''
)
))
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 7:51 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
394971
Default Alt Text
ConpherenceListController.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment