Changeset 1577 for FCKeditor/trunk/fckeditor_php4.php
- Timestamp:
- 2008-02-21 10:23:14 (9 months ago)
- Files:
-
- 1 modified
-
FCKeditor/trunk/fckeditor_php4.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/fckeditor_php4.php
r1574 r1577 28 28 class FCKeditor 29 29 { 30 /** 31 * Name of the FCKeditor instance 32 * 33 * @access protected 34 * @var string 35 */ 30 36 var $InstanceName ; 37 /** 38 * Path to FCKeditor relative to the document root 39 * 40 * @var string 41 */ 31 42 var $BasePath ; 43 /** 44 * Width of the FCKeditor 45 * Examples: 100%, 600 46 * 47 * @var mixed 48 */ 32 49 var $Width ; 50 /** 51 * Height of the FCKeditor 52 * Examples: 400, 50% 53 * 54 * @var mixed 55 */ 33 56 var $Height ; 57 /** 58 * Name of the toolbar to load 59 * 60 * @var string 61 */ 34 62 var $ToolbarSet ; 63 /** 64 * Initial value 65 * 66 * @var string 67 */ 35 68 var $Value ; 69 /** 70 * This is where additional configuration can be passed 71 * Example: 72 * $oFCKeditor->Config['EnterMode'] = 'br'; 73 * 74 * @var array 75 */ 36 76 var $Config ; 37 77 38 // PHP 4 Constructor 78 /** 79 * Main Constructor 80 * Refer to the _samples/php directory for examples. 81 * 82 * @param string $instanceName 83 */ 39 84 function FCKeditor( $instanceName ) 40 85 { … … 49 94 } 50 95 96 /** 97 * Display FCKeditor 98 * 99 */ 51 100 function Create() 52 101 { … … 54 103 } 55 104 105 /** 106 * Return the HTML code required to run FCKeditor 107 * 108 * @return string 109 */ 56 110 function CreateHtml() 57 111 { … … 62 116 if ( !isset( $_GET ) ) { 63 117 global $HTTP_GET_VARS ; 64 $_GET = $HTTP_GET_VARS ;118 $_GET = $HTTP_GET_VARS ; 65 119 } 66 120 … … 104 158 } 105 159 160 /** 161 * Returns true if browser is compatible with FCKeditor 162 * 163 * @return boolean 164 */ 106 165 function IsCompatible() 107 166 { … … 109 168 } 110 169 170 /** 171 * Get settings from Config array as a single string 172 * 173 * @access protected 174 * @return string 175 */ 111 176 function GetConfigFieldString() 112 177 { … … 132 197 } 133 198 199 /** 200 * Encode characters that may break the configuration string 201 * generated by GetConfigFieldString() 202 * 203 * @access protected 204 * @param string $valueToEncode 205 * @return string 206 */ 134 207 function EncodeConfig( $valueToEncode ) 135 208 {