Пример #1
0
 /**
  * @param Cardwall_Board  $board              The board
  * @param Cardwall_QrCode $qrcode             QrCode to display. false if no qrcode (thus no typehinting)
  * @param string          $redirect_parameter the redirect paramter to add to various url
  * @param string          $swimline_title     The title to display on top of swimline headers
  */
 public function __construct(Cardwall_Board $board, $qrcode, $redirect_parameter, $swimline_title, $configure_url)
 {
     parent::__construct($board, $qrcode, $redirect_parameter);
     $this->nifty = '';
     $this->swimline_title = $swimline_title;
     $this->has_swimline_header = true;
     $this->configure_url = $configure_url;
     $this->configure_label = $GLOBALS['Language']->getText('plugin_cardwall', 'configure_cardwall_label');
 }
 /**
  * @param Cardwall_Board $board The board
  * @param string $redirect_parameter the redirect paramter to add to various url
  * @param Tracker_FormElement_Field_Selectbox $field form to choose the column. false if no form (in widget) (thus no typehinting)
  * @param $form
  */
 public function __construct(Cardwall_Board $board, $redirect_parameter, $field, $form)
 {
     parent::__construct($board, $redirect_parameter);
     $hp = Codendi_HTMLPurifier::instance();
     $this->nifty = Toggler::getClassname('cardwall_board-nifty') == 'toggler' ? 'nifty' : false;
     $this->swimline_title = '';
     $this->has_swimline_header = false;
     $this->field = $field ? $field : false;
     $this->form = $form ? $form : false;
     $this->has_columns = count($this->board->columns) > 0;
     $this->warn_please_choose = $GLOBALS['Language']->getText('plugin_cardwall', 'warn_please_choose');
     $field_label = $field ? $hp->purify($this->field->getLabel()) : '###';
     $this->warn_no_values = $GLOBALS['Language']->getText('plugin_cardwall', 'warn_no_values', $field_label);
 }
 /**
  * @param Cardwall_Board     $board              The board
  * @param Cardwall_QrCode    $qrcode             QrCode to display. false if no qrcode (thus no typehinting)
  * @param string             $redirect_parameter the redirect paramter to add to various url
  * @param Planning           $planning           The concerned planning
  * @param Planning_Milestone $milestone          The milestone
  */
 public function __construct(Cardwall_Board $board, $qrcode, $redirect_parameter, $switch_display_username_url, $is_display_avatar_selected, Planning $planning, Planning_Milestone $milestone, Cardwall_EffortProgressPresenter $progress_presenter)
 {
     parent::__construct($board, $qrcode, $redirect_parameter);
     $this->nifty = '';
     $this->swimline_title = $GLOBALS['Language']->getText('plugin_cardwall', 'swimline_title');
     $this->has_swimline_header = true;
     $this->switch_display_username_url = $switch_display_username_url;
     $this->is_display_avatar_selected = $is_display_avatar_selected;
     $this->display_avatar_label = $GLOBALS['Language']->getText('plugin_cardwall', 'display_avatar_label');
     $this->display_avatar_title = $GLOBALS['Language']->getText('plugin_cardwall', 'display_avatar_title');
     $this->search_cardwall_placeholder = $GLOBALS['Language']->getText('plugin_cardwall', 'search_cardwall_placeholder');
     $this->planning_id = $planning->getId();
     $this->milestone = $milestone;
     $this->progress_presenter = $progress_presenter;
 }