private function getCardPresenter(Tracker_Artifact $artifact, $swimline_id)
 {
     $color = $artifact->getCardAccentColor($this->user);
     return new Cardwall_CardPresenter($artifact, $this->card_fields, $color, $this->display_preferences, $swimline_id, $artifact->getAllowedChildrenTypesForUser($this->user), $artifact->getParent($this->user));
 }
Ejemplo n.º 2
0
 /**
  * @return Cardwall_CardPresenter
  */
 private function getCardPresenter(PFUser $user, Tracker_Artifact $artifact, Cardwall_CardFields $card_fields, Cardwall_UserPreferences_UserPreferencesDisplayUser $display_preferences)
 {
     $parent_artifact = $artifact->getParent($user);
     return new Cardwall_CardPresenter($artifact, $card_fields, $artifact->getCardAccentColor($user), $display_preferences, null, $artifact->getAllowedChildrenTypesForUser($user), $parent_artifact);
 }