Changeset 932
- Timestamp:
- 11/01/2007 03:14:45 AM (11 months ago)
- Location:
- trunk/system/libraries
- Files:
-
- 16 modified
-
Cache.php (modified) (4 diffs)
-
Calendar.php (modified) (6 diffs)
-
Controller.php (modified) (2 diffs)
-
Encrypt.php (modified) (14 diffs)
-
Ftp.php (modified) (18 diffs)
-
Input.php (modified) (6 diffs)
-
Loader.php (modified) (6 diffs)
-
Model.php (modified) (1 diff)
-
Pagination.php (modified) (5 diffs)
-
Profiler.php (modified) (1 diff)
-
Router.php (modified) (1 diff)
-
Session.php (modified) (11 diffs)
-
URI.php (modified) (7 diffs)
-
User_agent.php (modified) (4 diffs)
-
Validation.php (modified) (32 diffs)
-
View.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Cache.php
r931 r932 16 16 /* 17 17 * Method: __construct 18 * Set up driver and get groups 18 * Set up driver and get groups. 19 19 * 20 20 * Parameters: … … 30 30 /* 31 31 * Method: get 32 * Get data from cache 32 * Get data from cache. 33 33 * 34 34 * Parameters: … … 45 45 /* 46 46 * Method: set 47 * Save data into cache 47 * Save data into cache. 48 48 * 49 49 * Parameters: … … 61 61 /* 62 62 * Method: del 63 * Delete cache entry 63 * Delete cache entry. 64 64 * 65 65 * Parameters: -
trunk/system/libraries/Calendar.php
r929 r932 21 21 /* 22 22 * Method: __construct 23 * Sets the default time reference 23 * Sets the default time reference. 24 24 * 25 25 * Parameters: … … 41 41 * Method: initialize 42 42 * Initialize the user preferences. 43 * Accepts an associative array as input, containing display preferences 44 * 45 * Parameters: 46 * config - config preferences 43 * 44 * Parameters: 45 * config - display preferences 47 46 */ 48 47 private function initialize($config = array()) … … 59 58 /* 60 59 * Method: generate 61 * Generate the calendar 60 * Generate the calendar. 62 61 * 63 62 * Parameters: … … 332 331 /* 333 332 * Method: get_total_days 334 * Total days in a given month 333 * Total days in a given month. 335 334 * 336 335 * Parameters: … … 364 363 /* 365 364 * Method: default_template 366 * This is used in the event that the user has not created their own template 365 * This is used in the event that the user has not created their own template. 367 366 * 368 367 * Returns: … … 398 397 /* 399 398 * Method: parse_template 400 * Harvests the data within the template {pseudo-variables} used to display the calendar 399 * Harvests the data within the template {pseudo-variables} used to display the calendar. 401 400 */ 402 401 private function parse_template() -
trunk/system/libraries/Controller.php
r929 r932 12 12 /* 13 13 * Method: __construct 14 * Loads the Input, URI and Loader libraries into the '$this' namespace 14 * Loads the Input, URI and Loader libraries into the '$this' namespace. 15 15 */ 16 16 public function __construct() … … 31 31 /* 32 32 * Method: kohana_include_view 33 * Includes a View within the controller scope 33 * Includes a View within the controller scope. 34 34 * 35 35 * Parameters: -
trunk/system/libraries/Encrypt.php
r931 r932 30 30 * Method: get_key 31 31 * Returns it as MD5 in order to have an exact-length 128 bit key. 32 * mcrypt is sensitive to keys that are not the correct length 32 * mcrypt is sensitive to keys that are not the correct length. 33 33 * 34 34 * Parameters: … … 54 54 /* 55 55 * Method: set_key 56 * Set the encryption key 56 * Set the encryption key. 57 57 * 58 58 * Parameters: … … 96 96 /* 97 97 * Method: decode 98 * Reverses the encode process 98 * Reverses the encode process. 99 99 * 100 100 * Parameters: … … 123 123 /* 124 124 * Method: xor_encode 125 * Takes a plain-text string and key as input and generates an encoded bit-string using XOR 125 * Takes a plain-text string and key as input and generates an encoded bit-string using XOR. 126 126 * 127 127 * Parameters: … … 154 154 /* 155 155 * Method: xor_decode 156 * Takes an encoded string and key as input and generates the plain-text original message 156 * Takes an encoded string and key as input and generates the plain-text original message. 157 157 * 158 158 * Parameters: … … 178 178 /* 179 179 * Method: xor_merge 180 * Takes a string and key as input and computes the difference using XOR 180 * Takes a string and key as input and computes the difference using XOR. 181 181 * 182 182 * Parameters: … … 202 202 /* 203 203 * Method: mcrypt_encode 204 * Encrypt using mcrypt 204 * Encrypt using mcrypt.. 205 205 * 206 206 * Parameters: … … 221 221 /* 222 222 * Method: mcrypt_decode 223 * Decrypt using mcrypt 223 * Decrypt using mcrypt. 224 224 * 225 225 * Parameters: … … 240 240 /* 241 241 * Method: set_cipher 242 * Set the mcrypt Cipher 242 * Set the mcrypt Cipher. 243 243 * 244 244 * Parameters: … … 252 252 /* 253 253 * Method: set_mode 254 * Set the mcrypt Mode 254 * Set the mcrypt Mode. 255 255 * 256 256 * Parameters: … … 264 264 /* 265 265 * Method: get_cipher 266 * Get mcrypt cipher Value 266 * Get mcrypt cipher Value. 267 267 * 268 268 * Returns: … … 281 281 /* 282 282 * Method: get_mode 283 * Get mcrypt Mode Value 283 * Get mcrypt Mode Value. 284 284 * 285 285 * Returns: … … 298 298 /* 299 299 * Method: set_hash 300 * Set the Hash type 300 * Set the Hash type. 301 301 * 302 302 * Parameters: … … 310 310 /* 311 311 * Method: hash 312 * Hash encode a string 312 * Hash encode a string. 313 313 * 314 314 * Parameters: -
trunk/system/libraries/Ftp.php
r931 r932 20 20 /* 21 21 * Method: __construct 22 * Sets Preferences. Can be passed an array of config values 22 * Sets Preferences. 23 * 24 * Parameters: 25 * config - custom configuration 23 26 */ 24 27 public function __construct($config = array()) … … 34 37 /* 35 38 * Method: initialize 36 * Initialize preferences 37 * 38 * Parameters: 39 * config - c onfig preferences39 * Initialize preferences. 40 * 41 * Parameters: 42 * config - custom configuration 40 43 */ 41 44 public function initialize($config = array()) … … 55 58 /* 56 59 * Method: connect 57 * Connect to the FTP 60 * Connect to the FTP. 58 61 * 59 62 * Parameters: … … 99 102 /* 100 103 * Method: login 101 * Login to the FTP 104 * Login to the FTP. 102 105 * 103 106 * Returns: … … 111 114 /* 112 115 * Method: is_conn 113 * Validates the connection ID 116 * Validates the connection ID. 114 117 * 115 118 * Returns: … … 168 171 /* 169 172 * Method: mkdir 170 * Create a directory 173 * Create a directory. 171 174 * 172 175 * Parameters: … … 204 207 /* 205 208 * Method: upload 206 * Upload a file to the server 209 * Upload a file to the server. 207 210 * 208 211 * Parameters: … … 258 261 /* 259 262 * Method: rename 260 * Rename (or move) a file 263 * Rename (or move) a file. 261 264 * 262 265 * Parameters: … … 291 294 /* 292 295 * Method: move 293 * Move a file 296 * Move a file. 294 297 * 295 298 * Parameters: … … 307 310 /* 308 311 * Method: delete_file 309 * Delete a file 312 * Delete a file. 310 313 * 311 314 * Parameters: … … 336 339 /* 337 340 * Method: delete_dir 338 * Delete a folder and recursively delete everything (including sub-folders) contained within it 341 * Delete a folder and recursively delete everything (including sub-folders) contained within it. 339 342 * 340 343 * Parameters: … … 383 386 /* 384 387 * Method: chmod 385 * Set file permissions 388 * Set file permissions. 386 389 * 387 390 * Parameters: … … 423 426 /* 424 427 * Method: list_files 425 * FTP List files in the specified directory 428 * FTP List files in the specified directory. 426 429 * 427 430 * Parameters: … … 447 450 * This function recursively reads a folder and everything it contains (including 448 451 * sub-folders) and creates a mirror via FTP based on it. Whatever the directory structure 449 * of the original file path will be recreated on the server 452 * of the original file path will be recreated on the server. 450 453 * 451 454 * Parameters: … … 496 499 /* 497 500 * Method: get_extension 498 * Extract the file extension 501 * Extract the file extension. 499 502 * 500 503 * Parameters: … … 517 520 /* 518 521 * Method: set_type 519 * Returns the transfer mode for a file extension (ascii or binary) 522 * Returns the transfer mode for a file extension (ascii or binary). 520 523 * 521 524 * Parameters: … … 549 552 /* 550 553 * Method: close 551 * Close the connection 554 * Close the connection. 552 555 * 553 556 * Returns: … … 564 567 /* 565 568 * Method: error 566 * Display error message 569 * Display error message. 567 570 * 568 571 * Parameters: -
trunk/system/libraries/Input.php
r931 r932 19 19 /* 20 20 * Method: __construct 21 * Sets whether to globally enable the XSS processing and whether to allow the $_GET array 21 * Sets whether to globally enable the XSS processing and whether to allow the $_GET array. 22 22 */ 23 23 public function __construct() … … 96 96 /* 97 97 * Method: __call 98 * Fetch an item from a global array 98 * Fetch an item from a global array. 99 99 * 100 100 * Parameters: … … 153 153 /* 154 154 * Method: clean_input_data 155 * This is a helper function. It escapes data and standardizes newline characters to \n155 * This is a helper function. It escapes data and standardizes newline characters to '\n'. 156 156 * 157 157 * Parameters: … … 211 211 /* 212 212 * Method: ip_address 213 * Fetch the IP Address 213 * Fetch the IP Address. 214 214 * 215 215 * Returns: … … 260 260 /* 261 261 * Method: valid_ip 262 * Validates an IPv4 address based on RFC specifications 262 * Validates an IPv4 address based on RFC specifications. 263 263 * 264 264 * Parameters: … … 275 275 /* 276 276 * Method: user_agent 277 * Get the user agent of the current request 277 * Get the user agent of the current request. 278 278 * 279 279 * Returns: -
trunk/system/libraries/Loader.php
r931 r932 12 12 /* 13 13 * Method: __construct 14 * Autoloads libraries and models specified in config file 14 * Autoloads libraries and models specified in config file. 15 15 */ 16 16 public function __construct() … … 46 46 /* 47 47 * Method: library 48 * Load library 48 * Load library. 49 49 * 50 50 * Parameters: … … 80 80 /* 81 81 * Method: database 82 * Load database 82 * Load database. 83 83 * 84 84 * Parameters: … … 102 102 /* 103 103 * Method: helper 104 * Load helper 104 * Load helper. 105 105 * 106 106 * Parameters: … … 127 127 /* 128 128 * Method: model 129 * Load model 129 * Load model. 130 130 * 131 131 * Parameters: … … 166 166 /* 167 167 * Method: view 168 * Load view 168 * Load view. 169 169 * 170 170 * Parameters: -
trunk/system/libraries/Model.php
r931 r932 12 12 /* 13 13 * Method: __construct 14 * Loads database into '$this->db' 14 * Loads database into '$this->db'. 15 15 */ 16 16 public function __construct() -
trunk/system/libraries/Pagination.php
r931 r932 28 28 /* 29 29 * Method: __construct 30 * Sets up the config values 30 * Sets up the config values. 31 31 * 32 32 * Parameters: … … 97 97 /* 98 98 * Method: create_links 99 * Generates the HTML for the chosen pagination style 99 * Generates the HTML for the chosen pagination style. 100 100 * 101 101 * Parameters: … … 119 119 /* 120 120 * Method: url 121 * Get the base_url with the specified page number 121 * Get the base_url with the specified page number. 122 122 * 123 123 * Parameters: … … 136 136 /* 137 137 * Method: sql_offset 138 * Get the SQL offset of the first row to return 138 * Get the SQL offset of the first row to return. 139 139 * 140 140 * Returns: … … 148 148 /* 149 149 * Method: url 150 * Generate the complete SQL LIMIT clause 150 * Generate the complete SQL LIMIT clause. 151 151 * 152 152 * Returns: -
trunk/system/libraries/Profiler.php
r931 r932 40 40 /* 41 41 * Method: render 42 * Run the Profiler and add to the bottom of the page 42 * Run the Profiler and add to the bottom of the page. 43 43 */ 44 44 public function render() -
trunk/system/libraries/Router.php
r931 r932 248 248 /* 249 249 * Method: filter_uri 250 * Filter a string for allowed URI characters 250 * Filter a string for allowed URI characters. 251 251 * 252 252 * Parameters: -
trunk/system/libraries/Session.php
r931 r932 28 28 /* 29 29 * Method: __construct 30 * On first session instance creation, sets up the driver and creates session 30 * On first session instance creation, sets up the driver and creates session. 31 31 */ 32 32 public function __construct() … … 88 88 /* 89 89 * Method: id 90 * Get the session id 90 * Get the session id. 91 91 * 92 92 * Returns: … … 100 100 /* 101 101 * Method: create 102 * Create a new session 102 * Create a new session. 103 103 */ 104 104 public function create($vars = NULL) … … 189 189 /* 190 190 * Method: regenerate
