Permalink
Browse files

Documenting missing options.

  • Loading branch information...
davidpersson committed Jul 18, 2010
1 parent 76f4739 commit 63e3561ee03bfd1d48e568975ba18793429aef98
Showing with 3 additions and 1 deletion.
  1. +3 −1 extensions/helper/Dummy.php
@@ -123,6 +123,8 @@ public function text($words, array $options = array()) {
* without leading `'#'`, defaults to `'0099ff'`.
* - `'foreground'`: Color to use as the text color in hex representation
* without leading `'#'`, defaults to `'ffffff'`.
+ * - `'format'`: Either `'png'`, `'jpg'` or `'gif'`, defaults to `'png'`.
+ * - `'text'`: Text rendered in the center of the image.
* @return string A HTML image tag with a data URI for the placeholder image.
*/
public function image($width, $height, array $options = array()) {
@@ -133,7 +135,7 @@ public function image($width, $height, array $options = array()) {
$defaults = array(
'background' => '0099ff',
'foreground' => 'ffffff',
- 'format' => 'png', // png, gif or jpg
+ 'format' => 'png',
'text' => "{$width} × {$height} px"
);
$options += $defaults;

0 comments on commit 63e3561

Please sign in to comment.