~katiekitty/+junk/solidstate

« back to all changes in this revision

Viewing changes to solidstate/branches/v0.5 Alpha/solidworks/widgets/.svn/text-base/TextAreaWidget.class.php.svn-base

  • Committer: root
  • Date: 2010-01-13 07:44:31 UTC
  • Revision ID: root@ds3-vamp.cs-monitor.cz.cc-20100113074431-kt8ceoeznpjg22x7
Reviving the project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * TextAreaWidget.class.php
 
4
 *
 
5
 * This file contains the definition of the TextAreaWidget class.  
 
6
 *
 
7
 * @package SolidWorks
 
8
 * @author John Diamond <jdiamond@solid-state.org>
 
9
 * @copyright John Diamond <jdiamond@solid-state.org>
 
10
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 
11
 */
 
12
 
 
13
/**
 
14
 * TextAreaWidget
 
15
 *
 
16
 * @package SolidWorks
 
17
 * @author John Diamond <jdiamond@solid-state.org>
 
18
 */
 
19
class TextAreaWidget extends HTMLWidget
 
20
{
 
21
  /**
 
22
   * Get Widget HTML
 
23
   *
 
24
   * Returns HTML code for this widget
 
25
   *
 
26
   * @param array $params Parameters passed from the template
 
27
   * @return string HTML code for this widget
 
28
   */
 
29
  function getHTML( $params ) 
 
30
  {
 
31
    // Get widget value if available
 
32
    $value = $this->determineValue( $params );
 
33
    
 
34
    // Generate HTML for a text box control
 
35
    unset( $myParams['type'] );
 
36
    $paramStr = $this->buildParams( $params, $myParams );
 
37
    return sprintf( "\n<textarea %s>%s</textarea>\n", $paramStr, $value );
 
38
  }
 
39
}
 
40
?>
 
 
b'\\ No newline at end of file'