Changeset 1577
- Timestamp:
- 2008-02-21 10:23:14 (2 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
fckeditor.php (modified) (1 diff)
-
fckeditor_php4.php (modified) (7 diffs)
-
fckeditor_php5.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/fckeditor.php
r1574 r1577 26 26 */ 27 27 28 /** 29 * Check if browser is compatible with FCKeditor. 30 * Return true if is compatible. 31 * 32 * @return boolean 33 */ 28 34 function FCKeditor_IsCompatibleBrowser() 29 35 { -
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 { -
FCKeditor/trunk/fckeditor_php5.php
r1574 r1577 28 28 class FCKeditor 29 29 { 30 var $InstanceName ; 31 var $BasePath ; 32 var $Width ; 33 var $Height ; 34 var $ToolbarSet ; 35 var $Value ; 36 var $Config ; 37 38 // PHP 5 Constructor (by Marcus Bointon <coolbru@users.sourceforge.net>) 39 function __construct( $instanceName ) 30 /** 31 * Name of the FCKeditor instance 32 * 33 * @access protected 34 * @var string 35 */ 36 public $InstanceName ; 37 /** 38 * Path to FCKeditor relative to the document root 39 * 40 * @var string 41 */ 42 public $BasePath ; 43 /** 44 * Width of the FCKeditor 45 * Examples: 100%, 600 46 * 47 * @var mixed 48 */ 49 public $Width ; 50 /** 51 * Height of the FCKeditor 52 * Examples: 400, 50% 53 * 54 * @var mixed 55 */ 56 public $Height ; 57 /** 58 * Name of the toolbar to load 59 * 60 * @var string 61 */ 62 public $ToolbarSet ; 63 /** 64 * Initial value 65 * 66 * @var string 67 */ 68 public $Value ; 69 /** 70 * This is where additional configuration can be passed 71 * Example: 72 * $oFCKeditor->Config['EnterMode'] = 'br'; 73 * 74 * @var array 75 */ 76 public $Config ; 77 78 /** 79 * Main Constructor 80 * Refer to the _samples/php directory for examples. 81 * 82 * @param string $instanceName 83 */ 84 public function __construct( $instanceName ) 40 85 { 41 86 $this->InstanceName = $instanceName ; … … 49 94 } 50 95 51 function Create() 96 /** 97 * Display FCKeditor 98 * 99 */ 100 public function Create() 52 101 { 53 102 echo $this->CreateHtml() ; 54 103 } 55 104 56 function CreateHtml() 105 /** 106 * Return the HTML code required to run FCKeditor 107 * 108 * @return string 109 */ 110 public function CreateHtml() 57 111 { 58 112 $HtmlValue = htmlspecialchars( $this->Value ) ; … … 99 153 } 100 154 101 function IsCompatible() 155 /** 156 * Returns true if browser is compatible with FCKeditor 157 * 158 * @return boolean 159 */ 160 public function IsCompatible() 102 161 { 103 162 return FCKeditor_IsCompatibleBrowser() ; 104 163 } 105 164 106 function GetConfigFieldString() 165 /** 166 * Get settings from Config array as a single string 167 * 168 * @access protected 169 * @return string 170 */ 171 public function GetConfigFieldString() 107 172 { 108 173 $sParams = '' ; … … 127 192 } 128 193 129 function EncodeConfig( $valueToEncode ) 194 /** 195 * Encode characters that may break the configuration string 196 * generated by GetConfigFieldString() 197 * 198 * @access protected 199 * @param string $valueToEncode 200 * @return string 201 */ 202 public function EncodeConfig( $valueToEncode ) 130 203 { 131 204 $chars = array(