Eventum to TaskJuggler: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
Line 10: Line 10:


include/class.date.php
include/class.date.php
<source lang=php>
<syntaxhighlight lang=php>
     /**
     /**
       * Method used to convert the user date (that might be in a
       * Method used to convert the user date (that might be in a
Line 26: Line 26:
         return $dt->format('%Y-%m-%d-%H:%M:%S'); // must have the dash between days and hours
         return $dt->format('%Y-%m-%d-%H:%M:%S'); // must have the dash between days and hours
     }
     }
</source>
</syntaxhighlight>


include/class.history.php
include/class.history.php
<source lang=php>
<syntaxhighlight lang=php>
     /**
     /**
       * Returns the date when 'work' began. Defined as the event when the issue was first "assigned" to someone.
       * Returns the date when 'work' began. Defined as the event when the issue was first "assigned" to someone.
Line 75: Line 75:
         return $res;
         return $res;
     }
     }
</source>
</syntaxhighlight>


include/class.report.php
include/class.report.php
<source lang=php>
<syntaxhighlight lang=php>
     /**
     /**
       * Method used to get open issues using a keyword search (and later report them in TaskJuggler syntax.)
       * Method used to get open issues using a keyword search (and later report them in TaskJuggler syntax.)
Line 319: Line 319:
         return $ret;
         return $ret;
     }
     }
</source>
</syntaxhighlight>


templates/en/reports/tree.tpl.html
templates/en/reports/tree.tpl.html
<source lang=php>
<syntaxhighlight lang=php>
tree.add(12, 0, 'Project Management Export', 'taskJuggler.php', '', 'basefrm');
tree.add(12, 0, 'Project Management Export', 'taskJuggler.php', '', 'basefrm');
</source>
</syntaxhighlight>


== New Files ==
== New Files ==
reports/taskJuggler.php
reports/taskJuggler.php
<source lang=php>
<syntaxhighlight lang=php>
<?php
<?php
/**
/**
Line 402: Line 402:
$tpl->displayTemplate();
$tpl->displayTemplate();
?>
?>
</source>
</syntaxhighlight>


templates/en/reports/taskJuggler.tpl.html
templates/en/reports/taskJuggler.tpl.html
<source lang=php>
<syntaxhighlight lang=php>
{include file="header.tpl.html"}
{include file="header.tpl.html"}
<h1>Project Management Export</h1>
<h1>Project Management Export</h1>
Line 501: Line 501:


{include file="footer.tpl.html"}
{include file="footer.tpl.html"}
</source>
</syntaxhighlight>