Skip to content

Commit

Permalink
OHMS-SPRINT-13 Added TCPDF.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfahadk committed Oct 10, 2019
1 parent 3aa9a76 commit 3f24c68
Show file tree
Hide file tree
Showing 223 changed files with 123,516 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app/Ohms/Transcript.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ private function formatTranscript() {
$currentMarkerTitle = "";
$markerCounter = 0;
$foundkey = 0;
$placeIndexMarker = false;
foreach ($itlines as $key => $line) {

$markerHtml = "";
Expand All @@ -288,7 +289,7 @@ private function formatTranscript() {
$indexisChanging = true;
}
}

foreach ($this->index->point as $singlePoint) {
$time = (int) $singlePoint->time;
if ($time >= $currentSyncSlotSecs && $time < $nextSyncSlotSecs && !in_array($time, $placedMarkers) && !$placeIndexMarker) {
Expand All @@ -298,7 +299,6 @@ private function formatTranscript() {
$placeIndexMarker = true;
$placedMarkers[] = $time;
$currentMarkerTimeSecs = $time;
// echo $approxWordsPerSec. " - $timeDiffSyncAndIndexSecs - ".$currentMarkerTimeSecs / 60 . " <br>";
$currentMarkerTitle = (string) $singlePoint->title;
$placed = false;
break;
Expand All @@ -308,7 +308,6 @@ private function formatTranscript() {
$wordCountPerLine = str_word_count(strip_tags($line)) + $wordCountPerLine;
if ($placeIndexMarker && !$placed) {
$timeinm = $currentMarkerTimeSecs / 60;
// echo "$timeinm - $wordCountPerLine - $wordsToMove <br>";
if ($wordsToMove <= $wordCountPerLine || $indexisChanging) {
$placed = true;
$placeIndexMarker = false;
Expand Down
3 changes: 2 additions & 1 deletion app/init.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../lib/tcpdf_include.php';

4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
"psr-4": {
"Ohms\\": "app/Ohms"
}
},
"require": {
"tecnickcom/tcpdf": "^6.2"
}

}
Loading

0 comments on commit 3f24c68

Please sign in to comment.