Such linting, such wow. Much clean.

This commit is contained in:
jgen
2014-04-28 02:56:58 -04:00
parent 8fd532e5a8
commit d4ac6ca451
9 changed files with 133 additions and 23 deletions

View File

@ -1,12 +1,13 @@
<?php
class RotateImageTheme extends Themelet {
/*
* Display a link to rotate an image
/**
* Display a link to rotate an image.
*
* @param int $image_id
* @return string
*/
public function get_rotate_html(/*int*/ $image_id) {
global $user, $config;
$html = "
".make_form(make_link('rotate/'.$image_id), 'POST')."
<input type='hidden' name='image_id' value='$image_id'>
@ -17,7 +18,14 @@ class RotateImageTheme extends Themelet {
return $html;
}
/**
* Display the error.
*
* @param Page $page
* @param string $title
* @param string $message
*/
public function display_rotate_error(Page $page, /*string*/ $title, /*string*/ $message) {
$page->set_title("Rotate Image");
$page->set_heading("Rotate Image");