Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceDurableColumnView.php
<?php | <?php | ||||
final class ConpherenceDurableColumnView extends AphrontTagView { | final class ConpherenceDurableColumnView extends AphrontTagView { | ||||
private $conpherences = array(); | private $conpherences = array(); | ||||
private $draft; | private $draft; | ||||
private $selectedConpherence; | private $selectedConpherence; | ||||
private $transactions; | private $transactions; | ||||
private $visible; | private $visible; | ||||
private $initialLoad = false; | private $initialLoad = false; | ||||
private $policyObjects; | private $policyObjects; | ||||
private $quicksandConfig = array(); | |||||
public function setConpherences(array $conpherences) { | public function setConpherences(array $conpherences) { | ||||
assert_instances_of($conpherences, 'ConpherenceThread'); | assert_instances_of($conpherences, 'ConpherenceThread'); | ||||
$this->conpherences = $conpherences; | $this->conpherences = $conpherences; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getConpherences() { | public function getConpherences() { | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | public function setPolicyObjects(array $objects) { | ||||
$this->policyObjects = $objects; | $this->policyObjects = $objects; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getPolicyObjects() { | public function getPolicyObjects() { | ||||
return $this->policyObjects; | return $this->policyObjects; | ||||
} | } | ||||
public function setQuicksandConfig(array $config) { | |||||
$this->quicksandConfig = $config; | |||||
return $this; | |||||
} | |||||
public function getQuicksandConfig() { | |||||
return $this->quicksandConfig; | |||||
} | |||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
if ($this->getVisible()) { | if ($this->getVisible()) { | ||||
$style = null; | $style = null; | ||||
} else { | } else { | ||||
$style = 'display: none;'; | $style = 'display: none;'; | ||||
} | } | ||||
$classes = array('conpherence-durable-column'); | $classes = array('conpherence-durable-column'); | ||||
if ($this->getInitialLoad()) { | if ($this->getInitialLoad()) { | ||||
Show All 12 Lines | protected function getTagContent() { | ||||
$column_key = PhabricatorUserPreferences::PREFERENCE_CONPHERENCE_COLUMN; | $column_key = PhabricatorUserPreferences::PREFERENCE_CONPHERENCE_COLUMN; | ||||
require_celerity_resource('font-source-sans-pro'); | require_celerity_resource('font-source-sans-pro'); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'durable-column', | 'durable-column', | ||||
array( | array( | ||||
'visible' => $this->getVisible(), | 'visible' => $this->getVisible(), | ||||
'settingsURI' => '/settings/adjust/?key='.$column_key, | 'settingsURI' => '/settings/adjust/?key='.$column_key, | ||||
'quicksandConfig' => $this->getQuicksandConfig(), | |||||
)); | )); | ||||
$policies = array(); | $policies = array(); | ||||
$conpherences = $this->getConpherences(); | $conpherences = $this->getConpherences(); | ||||
foreach ($conpherences as $conpherence) { | foreach ($conpherences as $conpherence) { | ||||
if (!$conpherence->getIsRoom()) { | if (!$conpherence->getIsRoom()) { | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 413 Lines • Show Last 20 Lines |