getTitle() public method

get title
public getTitle ( $locale ) : string
$locale string
return string
Example #1
0
 /**
  * Method used as a callback with the regular expression code that parses
  * text and creates links to other issues.
  *
  * @param   array $matches Regular expression matches
  * @return  string The link to the appropriate issue
  */
 public static function LinkFilter_issues($matches)
 {
     $issue_id = $matches['issue_id'];
     // check if the issue is still open
     if (Issue::isClosed($issue_id)) {
         $class = 'closed';
     } else {
         $class = '';
     }
     $issue_title = Issue::getTitle($issue_id);
     $link_title = htmlspecialchars("issue {$issue_id} - {$issue_title}");
     // use named capture 'match' if present
     $match = isset($matches['match']) ? $matches['match'] : "issue {$issue_id}";
     return "<a title=\"{$link_title}\" class=\"{$class}\" href=\"view.php?id={$matches['issue_id']}\">{$match}</a>";
 }
Example #2
0
            $open_id = md5($SessSemName[1] . 'top_folder');
        } elseif($titel = GetStatusgruppeName($open_id)) {
            $titel = _("Dateiordner der Gruppe:") . ' ' . $titel;
            $description = _("Ablage für Ordner und Dokumente dieser Gruppe");
            $permission = 15;
        } else if ($data = SingleDateDB::restoreSingleDate($open_id)) {
            // If we create a folder which has not yet an issue, we just create one
            $issue = new Issue(array('seminar_id' => $SessSemName[1]));
            $issue->setTitle(_("Ohne Titel"));
            $termin = new SingleDate($open_id);
            $termin->addIssueID($issue->getIssueID());
            $issue->store();
            $termin->store();

            $open_id = $issue->getIssueID();
            $titel = $issue->getTitle();
            $description= _("Themenbezogener Dateiordner");
        } else {
            $query = "SELECT title FROM themen WHERE issue_id = ?";
            $statement = DBManager::get()->prepare($query);
            $statement->execute(array($open_id));
            if ($result = $statement->fetch()) {
                $titel = $result["title"];
                $description= _("Themenbezogener Dateiordner");
            }
        }
        $open_id = create_folder($titel, $description, $open_id, $permission);

        PageLayout::postMessage(MessageBox::success(_('Der Ordner wurde erstellt.')));
        $folder_system_data['open'][$open_id] = true;
        $folder_system_data['open']['anker'] = $open_id;
 /**
  * Method used as a callback with the regular expression code that parses
  * text and creates links to other issues.
  *
  * @access  public
  * @param   array $matches Regular expression matches
  * @return  string The link to the appropriate issue
  */
 function callbackIssueLinks($matches)
 {
     include_once APP_INC_PATH . "class.issue.php";
     // check if the issue is still open
     if (Issue::isClosed($matches[5])) {
         $class = 'closed_link';
     } else {
         $class = 'link';
     }
     $issue_title = Issue::getTitle($matches[5]);
     return "<a title=\"issue " . $matches[5] . " - {$issue_title}\" class=\"" . $class . "\" href=\"view.php?id=" . $matches[5] . "\">" . $matches[1] . $matches[2] . $matches[3] . $matches[4] . $matches[5] . "</a>";
 }