Ejemplo n.º 1
0
 /**
  * @see Cardwall_OnTop_Config_Command::execute()
  */
 public function execute(Codendi_Request $request)
 {
     if ($request->get('new_column')) {
         $this->dao->create($this->tracker->getId(), $request->get('new_column'));
         $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_cardwall', 'on_top_column_added'));
     }
 }
 private function importColumns(SimpleXMLElement $xml_columns, $tracker_id)
 {
     foreach ($xml_columns->{CardwallConfigXml::NODE_COLUMN} as $column) {
         $this->column_dao->create($tracker_id, (string) $column[CardwallConfigXml::ATTRIBUTE_COLUMN_LABEL]);
     }
 }