예제 #1
0
 /**
  * Upload the file and ask settings
  *
  * @param array $values
  * @param array $errors
  * @throws \Kanboard\Core\Controller\PageNotFoundException
  */
 public function show(array $values = array(), array $errors = array())
 {
     $project = $this->getProject();
     $this->response->html($this->helper->layout->project('task_import/show', array('project' => $project, 'values' => $values, 'errors' => $errors, 'max_size' => ini_get('upload_max_filesize'), 'delimiters' => Csv::getDelimiters(), 'enclosures' => Csv::getEnclosures(), 'title' => t('Import tasks from CSV file')), 'task_import/sidebar'));
 }
예제 #2
0
 /**
  * Upload the file and ask settings
  *
  */
 public function step1(array $values = array(), array $errors = array())
 {
     $this->response->html($this->template->layout('user_import/step1', array('values' => $values, 'errors' => $errors, 'max_size' => ini_get('upload_max_filesize'), 'delimiters' => Csv::getDelimiters(), 'enclosures' => Csv::getEnclosures(), 'title' => t('Import users from CSV file'))));
 }
예제 #3
0
 public function testGetEnclosures()
 {
     $this->assertCount(3, Csv::getEnclosures());
     $this->assertCount(4, Csv::getDelimiters());
 }
예제 #4
0
 /**
  * Upload the file and ask settings
  *
  * @param array $values
  * @param array $errors
  */
 public function show(array $values = array(), array $errors = array())
 {
     $this->response->html($this->template->render('user_import/show', array('values' => $values, 'errors' => $errors, 'max_size' => ini_get('upload_max_filesize'), 'delimiters' => Csv::getDelimiters(), 'enclosures' => Csv::getEnclosures())));
 }