private function loadProjects() { $html = []; foreach ($this->modelData['projectList'] as $aKey => $projectData) { $selected = ''; if ($projectData['projectDefault'] == 1) { $selected = 'selected="selected"'; } $html[] = '<option value="' . $projectData['projectID'] . '" ' . $selected . '>' . \App\Tool::removeSchemeFromURL($projectData['projectURL']) . '</option>'; } $this->viewData['projectList'] = implode("\n", $html); }
public function generateList() { $html = []; foreach ($this->modelData['projects'] as $projectID => $projectData) { $html[] = '<tr class="p' . $projectData['projectID'] . '">'; $html[] = '<td>' . \App\Tool::removeSchemeFromURL($projectData['projectURL']) . '</td>'; $html[] = '<td>' . \App\Tool::removeSchemeFromURL($projectData['projectCompetition']) . '</td>'; $html[] = '<td>' . $projectData['projectsKeywordCount'] . '</td>'; $html[] = '<td>' . $projectData['projectAdded'] . '</td>'; $html[] = '<td><a href="/projects/edit/' . $projectData['projectID'] . '/"><i class="fa fa-edit projectEdit"></i></a></td>'; $html[] = '<td><i data-pid="' . $projectData['projectID'] . '" class="fa fa-remove projectRemove"></i></td>'; $html[] = '</tr>'; } $this->viewData['projectsTable'] = implode("\n", $html); }
public function getProjectList() { $html = []; $currentParentCounter = 0; foreach ($this->projectArray as $pArrayKey => $projectData) { if ($projectData['projectURL'] != $projectData['parentURL']) { $html[] = '<li>'; $html[] = '<a href="/projects/select/' . $projectData['projectID'] . '/"><i class="fa fa-caret-right"></i> <strong>' . \App\Tool::removeSchemeFromURL($projectData['parentURL']) . '</strong> <i class="fa fa-caret-right"></i> ' . \App\Tool::removeSchemeFromURL($projectData['projectURL']) . '</a>'; $html[] = '</li>'; } else { if ($currentParentCounter > 0) { $html[] = '<li class="divider"></li>'; } $html[] = '<li>'; $html[] = '<a href="/projects/select/' . $projectData['projectID'] . '/"><i class="fa fa-caret-right"></i> <strong>' . \App\Tool::removeSchemeFromURL($projectData['projectURL']) . '</strong></a>'; $html[] = '</li>'; $currentParentCounter++; } } return implode("\n", $html); }
public function getCurrentProjectName() { return \App\Tool::removeSchemeFromURL($this->currentProjectArray['projectURL']); }
public function loadProjectData() { $this->viewData['projectData'] = $this->modelData['projectData']; $this->viewData['projectData']['currentProjectURL'] = \App\Tool::removeSchemeFromURL($this->viewData['projectData']['currentProjectURL']); }