Skip to content

Commit

Permalink
phpdocs and improve signatures..
Browse files Browse the repository at this point in the history
  • Loading branch information
Klap-in committed Jun 10, 2015
1 parent 6e98707 commit 44e8e8f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public function register(Doku_Event_Handler $controller) {
* Do the HTML to PDF conversion work
*
* @param Doku_Event $event
* @param array $param
* @return bool
*/
public function convert(Doku_Event $event, $param) {
public function convert(Doku_Event $event) {
global $ACT;
global $ID;

Expand Down Expand Up @@ -426,6 +425,9 @@ protected function sendPDFFile($cachefile, $title) {

/**
* Load the various template files and prepare the HTML/CSS for insertion
*
* @param string $title
* @return array
*/
protected function load_template($title) {
global $ID;
Expand Down Expand Up @@ -646,6 +648,10 @@ public function getExportedPages() {

/**
* usort callback to sort by file lastmodified time
*
* @param array $a
* @param array $b
* @return int
*/
public function _datesort($a, $b) {
if($b['rev'] < $a['rev']) return -1;
Expand All @@ -655,6 +661,9 @@ public function _datesort($a, $b) {

/**
* usort callback to sort by page id
* @param array $a
* @param array $b
* @return int
*/
public function _pagenamesort($a, $b) {
if($a['id'] <= $b['id']) return -1;
Expand Down Expand Up @@ -763,9 +772,8 @@ public function getExportConfig($name, $notset = false) {
* Add 'export pdf'-button to pagetools
*
* @param Doku_Event $event
* @param mixed $param not defined
*/
public function addbutton(Doku_Event $event, $param) {
public function addbutton(Doku_Event $event) {
global $ID, $REV;

if($this->getConf('showexportbutton') && $event->data['view'] == 'main') {
Expand Down

0 comments on commit 44e8e8f

Please sign in to comment.