Changeset 1911
- Timestamp:
- 02/04/08 11:13:16 (5 months ago)
- Files:
-
- trunk/application/controllers/examples.php (modified) (11 diffs)
- trunk/system/controllers/template.php (modified) (2 diffs)
- trunk/system/i18n/fr_FR/core.php (modified) (1 diff)
- trunk/system/libraries/Archive.php (modified) (3 diffs)
- trunk/system/libraries/Cache.php (modified) (1 diff)
- trunk/system/libraries/Calendar.php (modified) (1 diff)
- trunk/system/libraries/Database.php (modified) (1 diff)
- trunk/system/libraries/Encrypt.php (modified) (1 diff)
- trunk/system/libraries/Image.php (modified) (1 diff)
- trunk/system/libraries/Input.php (modified) (9 diffs)
- trunk/system/libraries/Model.php (modified) (3 diffs)
- trunk/system/libraries/Pagination.php (modified) (8 diffs)
- trunk/system/libraries/Payment.php (modified) (5 diffs)
- trunk/system/libraries/Profiler.php (modified) (3 diffs)
- trunk/system/libraries/Router.php (modified) (4 diffs)
- trunk/system/libraries/Session.php (modified) (12 diffs)
- trunk/system/libraries/URI.php (modified) (14 diffs)
- trunk/system/libraries/User_agent.php (modified) (7 diffs)
- trunk/system/libraries/Validation.php (modified) (2 diffs)
- trunk/system/libraries/View.php (modified) (2 diffs)
- trunk/system/libraries/drivers/Archive.php (modified) (1 diff)
- trunk/system/libraries/drivers/Archive/Zip.php (modified) (4 diffs)
- trunk/system/views/kohana_error_disabled.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/application/controllers/examples.php
r1792 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Examples 4 * Contains examples of various Kohana library examples. You can access these 5 * samples in your own installation of Kohana by going to ROOT_URL/examples. 3 * Contains examples of various Kohana library examples. You can access these 4 * samples in your own installation of Kohana by going to ROOT_URL/examples. 6 5 * 7 * Kohana Source Code: 8 * author - Kohana Team 9 * copyright - (c) 2007 Kohana Team 10 * license - <http://kohanaphp.com/license.html> 6 * $Id$ 7 * 8 * @package Core 9 * @author Kohana Team 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 11 12 */ 12 13 class Examples_Controller extends Controller { 13 14 14 15 /** 15 * Method: index 16 * Displays a list of available examples 16 * Displays a list of available examples 17 17 */ 18 18 function index() … … 60 60 61 61 /** 62 * Method: template 63 * Demonstrates how to use views inside of views. 62 * Demonstrates how to use views inside of views. 64 63 */ 65 64 function template() … … 79 78 80 79 /** 81 * Method: rss 82 * Demonstrates how to parse RSS feeds by using DOMDocument. 80 * Demonstrates how to parse RSS feeds by using DOMDocument. 83 81 */ 84 82 function rss() … … 94 92 95 93 /** 96 * Method: session 97 * Demonstrates the Session library and using session data. 94 * Demonstrates the Session library and using session data. 98 95 */ 99 96 function session() … … 110 107 111 108 /** 112 * Method: form 113 * Demonstrates how to use the form helper with the Validation library. 109 * Demonstrates how to use the form helper with the Validation library. 114 110 */ 115 111 function form() … … 138 134 139 135 /** 140 * Method: validation 141 * Demontrates how to use the Validation library to validate an arbitrary array. 136 * Demontrates how to use the Validation library to validate an arbitrary array. 142 137 */ 143 138 function validation() … … 177 172 178 173 /** 179 * Method: database180 * Demonstrates the features of the Database library.174 * Demonstrates the features of the Database library. 175 * 181 176 * Table Structure: 182 177 * CREATE TABLE `pages` ( … … 256 251 257 252 /** 258 * Method: pagination 259 * Demonstrates how to use the Pagination library and Pagination styles. 253 * Demonstrates how to use the Pagination library and Pagination styles. 260 254 */ 261 255 function pagination() … … 280 274 281 275 /** 282 * Method: user_agent 283 * Demonstrates the User_Agent library. 276 * Demonstrates the User_Agent library. 284 277 */ 285 278 function user_agent() … … 297 290 298 291 /** 299 * Method: credit_card 300 * Demonstrates the CreditCard library. 292 * Demonstrates the Payment library. 301 293 */ 302 294 /*function payment() … … 354 346 } 355 347 356 } // End Welcome348 } // End Examples trunk/system/controllers/template.php
r1297 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 /**3 * Kohana - The Swift PHP Framework4 *5 * License:6 * author - Kohana Team7 * copyright - (c) 2007 Kohana Team8 * license - <http://kohanaphp.com/license.html>9 */10 11 2 /** 12 3 * Allows a template to be automatically loaded and displayed. Display can be … … 14 5 * can be overloaded. 15 6 * 16 * Usage: 17 * To use the Template_Controller, declare your controller to extend this class: 7 * To use it, declare your controller to extend this class: 18 8 * `class Your_Controller extends Template_Controller` 9 * 10 * $Id$ 11 * 12 * @package Core 13 * @author Kohana Team 14 * @copyright (c) 2007-2008 Kohana Team 15 * @license http://kohanaphp.com/license.html 19 16 */ 20 17 class Template_Controller extends Controller { trunk/system/i18n/fr_FR/core.php
r1831 r1911 16 16 'stack_trace' => 'Stack Trace', 17 17 'generic_error' => 'Impossible de compléter la requete', 18 'errors_disabled' => 'Vous pouvez aller sur la <a href="%s">page d 'accueil</a> ou <a href="%s">essayer encore</a>.',18 'errors_disabled' => 'Vous pouvez aller sur la <a href="%s">page d\'accueil</a> ou <a href="%s">essayer encore</a>.', 19 19 20 20 // Resource names trunk/system/libraries/Archive.php
r1908 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Archive3 * Archive library. 4 4 * 5 5 * $Id$ 6 6 * 7 * @package Cache7 * @package Archive 8 8 * @author Kohana Team 9 * @copyright (c) 2007 Kohana Team9 * @copyright (c) 2007-2008 Kohana Team 10 10 * @license http://kohanaphp.com/license.html 11 11 */ … … 50 50 * 51 51 * @param string file or directory to add 52 * @param string|bool 52 * @param string|bool 53 53 * @return object 54 54 */ … … 131 131 132 132 /** 133 * Method: download 134 * Forces a download of a created archive. 133 * Forces a download of a created archive. 135 134 * 136 135 * @param string name of the file that will be downloaded trunk/system/libraries/Cache.php
r1842 r1911 9 9 * @package Cache 10 10 * @author Kohana Team 11 * @copyright (c) 2007 Kohana Team11 * @copyright (c) 2007-2008 Kohana Team 12 12 * @license http://kohanaphp.com/license.html 13 13 */ trunk/system/libraries/Calendar.php
r1670 r1911 7 7 * @package Calendar 8 8 * @author Kohana Team 9 * @copyright (c) 2007 Kohana Team9 * @copyright (c) 2007-2008 Kohana Team 10 10 * @license http://kohanaphp.com/license.html 11 11 */ trunk/system/libraries/Database.php
r1906 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Database 4 * Provides database access in a platform agnostic way, using simple query building blocks. 3 * Provides database access in a platform agnostic way, using simple query building blocks. 5 4 * 6 * Kohana Source Code: 7 * author - Kohana Team 8 * copyright - (c) 2007 Kohana Team 9 * copyright - (c) 2006 EllisLab, Inc. 10 * license - <http://www.codeigniter.com/user_guide/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 11 */ 12 12 class Database_Core { trunk/system/libraries/Encrypt.php
r1668 r1911 9 9 * @package Core 10 10 * @author Kohana Team 11 * @copyright (c) 2007 Kohana Team11 * @copyright (c) 2007-2008 Kohana Team 12 12 * @license http://kohanaphp.com/license.html 13 13 */ trunk/system/libraries/Image.php
r1884 r1911 3 3 * Manipulate images using standard methods such as resize, crop, rotate, etc. 4 4 * This class must be re-initialized for every image you wish to manipulate. 5 * 5 * 6 6 * $Id$ 7 7 * 8 8 * @package Image 9 9 * @author Kohana Team 10 * @copyright (c) 2007 Kohana Team10 * @copyright (c) 2007-2008 Kohana Team 11 11 * @license http://kohanaphp.com/license.html 12 12 */ trunk/system/libraries/Input.php
r1846 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Input3 * Input library. 4 4 * 5 * Kohana Source Code: 6 * author - Rick Ellis, Kohana Team 7 * copyright - Copyright (c) 2006, EllisLab, Inc. 8 * license - <http://www.codeigniter.com/user_guide/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 9 11 */ 10 12 class Input_Core { … … 33 35 34 36 /** 35 * Constructor: __construct 36 * Sets whether to globally enable the XSS processing and whether to allow the $_GET array. 37 * Sets whether to globally enable the XSS processing. 37 38 */ 38 39 public function __construct() … … 123 124 124 125 /** 125 * Method: __call 126 * Fetch an item from a global array. 127 * 128 * Parameters: 129 * global - array to access (get, post, cookie or server) 130 * args - arguments (array key, xss_clean) 131 * 132 * Returns: 133 * Value of array item 126 * Fetch an item from a global array. 127 * 128 * @param string array to access (get, post, cookie or server) 129 * @param array arguments (array key, xss_clean) 130 * @return mixed 134 131 */ 135 132 public function __call($global, $args = array()) … … 179 176 180 177 /** 181 * Method: clean_input_data 182 * This is a helper function. It escapes data and standardizes newline characters to '\n'. 183 * 184 * Parameters: 185 * str - string to clean 186 * 187 * Returns: 188 * Cleaned string 178 * This is a helper function. It escapes data and standardizes newline characters to '\n'. 179 * 180 * @param unknown_type string to clean 181 * @return string 189 182 */ 190 183 protected function clean_input_data($str) … … 215 208 216 209 /** 217 * Method: clean_input_keys 218 * This is a helper function. To prevent malicious users 219 * from trying to exploit keys we make sure that keys are 220 * only named with alpha-numeric text and a few other items. 221 * 222 * Parameters: 223 * str - string to clean 224 * 225 * Returns: 226 * Cleaned string 210 * This is a helper function. To prevent malicious users 211 * from trying to exploit keys we make sure that keys are 212 * only named with alpha-numeric text and a few other items. 213 * 214 * @param string string to clean 215 * @return string 227 216 */ 228 217 protected function clean_input_keys($str) … … 239 228 240 229 /** 241 * Method: ip_address 242 * Fetch the IP Address. 243 * 244 * Returns: 245 * IP address 230 * Fetch the IP Address. 231 * 232 * @return string 246 233 */ 247 234 public function ip_address() … … 288 275 289 276 /** 290 * Method: valid_ip 291 * Validates an IPv4 address based on RFC specifications. 292 * 293 * Parameters: 294 * ip - IP to validate 295 * 296 * Returns: 297 * TRUE or FALSE 277 * Validates an IPv4 address based on RFC specifications. 278 * 279 * @param string IP to validate 280 * @return boolean 298 281 */ 299 282 public function valid_ip($ip) … … 303 286 304 287 /** 305 * Method: user_agent 306 * Get the user agent of the current request. 307 * 308 * Returns: 309 * The user agent 288 * Get the user agent of the current request. 289 * 290 * @return string 310 291 */ 311 292 public function user_agent() … … 315 296 316 297 /** 317 * Method: xss_clean 318 * Clean cross site scripting exploits from string. 319 * HTMLPurifier may be used if installed, otherwise defaults to built in method. 320 * Note - This function should only be used to deal with data upon submission. 321 * It's not something that should be used for general runtime processing 322 * since it requires a fair amount of processing overhead. 323 * 324 * Parameters: 325 * data - data to clean 326 * tool - xss_clean method to use ('htmlpurifier' or defaults to built in method) 327 * 328 * Returns: 329 * Cleaned data 298 * Clean cross site scripting exploits from string. 299 * HTMLPurifier may be used if installed, otherwise defaults to built in method. 300 * Note - This function should only be used to deal with data upon submission. 301 * It's not something that should be used for general runtime processing 302 * since it requires a fair amount of processing overhead. 303 * 304 * @param string data to clean 305 * @param string xss_clean method to use ('htmlpurifier' or defaults to built in method) 306 * @return string 330 307 */ 331 308 public function xss_clean($data, $tool = NULL) trunk/system/libraries/Model.php
r1522 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Model3 * Model class. 4 4 * 5 * Kohana Source Code: 6 * author - Kohana Team 7 * copyright - (c) 2007 Kohana Team 8 * license - <http://kohanaphp.com/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 9 11 */ 10 12 class Model_Core { … … 13 15 14 16 /** 15 * Constructor: __construct 16 * Loads database to $this->db. 17 * Loads database to $this->db. 17 18 */ 18 19 public function __construct() … … 29 30 } 30 31 31 } // End Model Core32 } // End Model class trunk/system/libraries/Pagination.php
r1905 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Pagination3 * Pagination library. 4 4 * 5 * Kohana Source Code: 6 * author - Kohana Team 7 * copyright - (c) 2007 Kohana Team 8 * license - <http://kohanaphp.com/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 9 11 */ 10 12 class Pagination_Core { … … 34 36 * Constructs the Pagination object. 35 37 * 36 * @param array configuration37 * @return void38 * @param array configuration 39 * @return void 38 40 */ 39 41 public function __construct($config = array()) … … 50 52 * Sets or overwrites (some) config values. 51 53 * 52 * @param array configuration53 * @return void54 * @param array configuration 55 * @return void 54 56 */ 55 57 public function initialize($config = array()) … … 112 114 * Generates the HTML for the chosen pagination style. 113 115 * 114 * @param string pagination style115 * @return string pagination html116 * @param string pagination style 117 * @return string pagination html 116 118 */ 117 119 public function create_links($style = NULL) … … 125 127 * Magically converts pagination object to string. 126 128 * 127 * @return string pagination html129 * @return string pagination html 128 130 */ 129 131 public function __toString() … … 135 137 * Magically gets a pagination variable. 136 138 * 137 * @param string variable key138 * @return mixed variable value if the key is found139 * @return void if the key is not found139 * @param string variable key 140 * @return mixed variable value if the key is found 141 * @return void if the key is not found 140 142 */ 141 143 public function __get($key) … … 148 150 * Gets the SQL offset of the first row to return. Deprecated. 149 151 * 150 * @return integer sql offset152 * @return integer sql offset 151 153 */ 152 154 public function sql_offset() … … 158 160 * Generates the complete SQL LIMIT clause. Deprecated. 159 161 * 160 * @return string sql limit clause162 * @return string sql limit clause 161 163 */ 162 164 public function sql_limit() trunk/system/libraries/Payment.php
r1842 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Payment_Core 4 * Provides payment support for credit cards and other providers like PayPal 3 * Provides payment support for credit cards and other providers like PayPal. 5 4 * 6 * Kohana Source Code: 7 * author - Kohana Team 8 * copyright - (c) 2007 Kohana Team 9 * license - <http://kohanaphp.com/license.html> 5 * $Id$ 6 * 7 * @package Payment 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 10 11 */ 11 12 class Payment_Core { … … 23 24 24 25 /** 25 * Constructor: __construct 26 * Sets the payment processing fields. 27 * The driver will translate these into the specific format for the provider. 28 * Standard fields are (Providers may have additional or different fields): 26 * Sets the payment processing fields. 27 * The driver will translate these into the specific format for the provider. 28 * Standard fields are (Providers may have additional or different fields): 29 29 * 30 * card_num31 * exp_date32 * cvv33 * description34 * amount35 * tax36 * shipping37 * first_name38 * last_name39 * company40 * address41 * city42 * state43 * zip44 * 45 * phone46 * fax47 * ship_to_first_name48 * ship_to_last_name49 * ship_to_company50 * ship_to_address51 * ship_to_city52 * ship_to_state53 * ship_to_zip30 * card_num 31 * exp_date 32 * cvv 33 * description 34 * amount 35 * tax 36 * shipping 37 * first_name 38 * last_name 39 * company 40 * address 41 * city 42 * state 43 * zip 44 * email 45 * phone 46 * fax 47 * ship_to_first_name 48 * ship_to_last_name 49 * ship_to_company 50 * ship_to_address 51 * ship_to_city 52 * ship_to_state 53 * ship_to_zip 54 54 * 55 * Parameters: 56 * config - the driver string 55 * @param array the driver string 57 56 */ 58 57 public function __construct($config = array()) … … 90 89 91 90 /** 92 * Method: __set 93 * Sets the credit card processing fields 91 * Sets the credit card processing fields 94 92 * 95 * Parameters: 96 * name - the field name 97 * val - the value 93 * @param string field name 94 * @param string value 98 95 */ 99 96 public function __set($name, $val) … … 103 100 104 101 /** 105 * Method: set_fields 106 * Bulk setting of payment processing fields 102 * Bulk setting of payment processing fields. 107 103 * 108 * Parameters: 109 * fields - an array of values to set 110 * 111 * Returns: 112 * <Payment> object 104 * @param array array of values to set 105 * @return object this object 113 106 */ 114 107 public function set_fields($fields) … … 120 113 121 114 /** 122 * Method: process 123 * Runs the transaction 115 * Runs the transaction 124 116 * 125 * Returns: 126 * TRUE on successful payment, an error string on failure 117 * @return TRUE|string TRUE on successful payment, an error string on failure 127 118 */ 128 119 public function process() trunk/system/libraries/Profiler.php
r1761 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Profiler 4 * Adds useful information to the bottom of the current page for debugging and optimization purposes. 3 * Adds useful information to the bottom of the current page for debugging and optimization purposes. 5 4 * 6 * Benchmarks - The times and memory usage of benchmarks run by the <Benchmark> library7 * Database - The raw SQL and number of affected rows of <Database> queries8 * POST Data - The name and values of any POST data submitted to the current page9 * Session Data - Data stored in the current session if using the <Session> library5 * Benchmarks - The times and memory usage of benchmarks run by the <Benchmark> library 6 * Database - The raw SQL and number of affected rows of <Database> queries 7 * POST Data - The name and values of any POST data submitted to the current page 8 * Session Data - Data stored in the current session if using the <Session> library 10 9 * 11 * Kohana Source Code: 12 * author - Kohana Team 13 * copyright - (c) 2007 Kohana Team 14 * license - <http://kohanaphp.com/license.html> 10 * $Id$ 11 * 12 * @package Core 13 * @author Kohana Team 14 * @copyright (c) 2007-2008 Kohana Team 15 * @license http://kohanaphp.com/license.html 15 16 */ 16 17 class Profiler_Core { 17 18 18 19 /** 19 * Constructor: __construct 20 * Adds event for adding the profile output to the page when displayed. 20 * Adds event for adding the profile output to the page when displayed. 21 21 */ 22 22 public function __construct() … … 29 29 30 30 /** 31 * Method: disable 32 * Disables the profiler for this page only. 33 * Best used when profiler is autoloaded. 31 * Disables the profiler for this page only. 32 * Best used when profiler is autoloaded. 34 33 */ 35 34 public function disable() … … 40 39 41 40 /** 42 * Method: render 43 * Render the profiler. Output is added to 44 * the bottom of the page by default. 41 * Render the profiler. Output is added to the bottom of the page by default. 45 42 * 46 * Parameters: 47 * return - return the output if TRUE 48 * 49 * Returns: 50 * The profiler output if $return is TRUE 43 * @param boolean return the output if TRUE 44 * @return void|string 51 45 */ 52 46 public function render($return = FALSE) trunk/system/libraries/Router.php
r1850 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class:Router3 * Router 4 4 * 5 * Kohana Source Code: 6 * author - Kohana Team 7 * copyright - (c) 2007 Kohana Team 8 * license - <http://kohanaphp.com/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 9 11 */ 10 12 class Router_Core { … … 25 27 26 28 /** 27 * Method: setup 28 * Router setup routine. Automatically called during Kohana setup process. 29 * Router setup routine. Automatically called during Kohana setup process. 29 30 */ 30 31 public static function setup() … … 178 179 179 180 /** 180 * Method: find_uri 181 * Attempts to determine the current URI using CLI, GET, PATH_INFO, ORIG_PATH_INFO, or PHP_SELF. 181 * Attempts to determine the current URI using CLI, GET, PATH_INFO, ORIG_PATH_INFO, or PHP_SELF. 182 182 */ 183 183 public static function find_uri() … … 256 256 257 257 /** 258 * Method: filter_uri 259 * Filter a string for allowed URI characters. 258 * Filter a string for allowed URI characters. 260 259 * 261 * Parameters: 262 * str - string to filter 263 * 264 * Returns: 265 * Filtered string 260 * @param string string to filter 261 * @return string 266 262 */ 267 263 public static function filter_uri($str) trunk/system/libraries/Session.php
r1902 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Session3 * Session library. 4 4 * 5 * Kohana Source Code: 6 * author - Kohana Team 7 * copyright - (c) 2007 Kohana Team 8 * license - <http://kohanaphp.com/license.html> 5 * $Id$ 6 * 7 * @package Core 8 * @author Kohana Team 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 9 11 */ 10 12 class Session_Core { … … 38 40 39 41 /** 40 * Constructor: __construct 41 * On first session instance creation, sets up the driver and creates session. 42 * On first session instance creation, sets up the driver and creates session. 42 43 */ 43 44 public function __construct() … … 92 93 93 94 /** 94 * Method: id 95 * Get the session id. 96 * 97 * Returns: 98 * Session id 95 * Get the session id. 96 * 97 * @return string 99 98 */ 100 99 public function id() … … 104 103 105 104 /** 106 * Method: create 107 * Create a new session. 105 * Create a new session. 106 * 107 * @param array variables to set after creation 108 * @return void 108 109 */ 109 110 public function create($vars = NULL) … … 233 234 234 235 /** 235 * Method: regenerate 236 * Regenerates the global session id. 236 * Regenerates the global session id. 237 237 */ 238 238 public function regenerate() … … 254 254 255 255 /** 256 * Method: destroy 257 * Destroys the current session. 258 * 259 * Returns: 260 * TRUE or FALSE (or NULL if called before session_start()) 256 * Destroys the current session. 257 * 258 * @return boolean 261 259 */ 262 260 public function destroy() … … 297 295 298 296 /** 299 * Method: set 300 * Set a session variable. 301 * 302 * Parameters: 303 * keys - array of values, or key 304 * val - value (if keys is not an array) 297 * Set a session variable. 298 * 299 * @param string|array key, or array of values 300 * @param mixed value (if keys is not an array) 301 * @return void 305 302 */ 306 303 public function set($keys, $val = FALSE) … … 325 322 326 323 /** 327 * Method: set_flash 328 * Set a flash variable. 329 * 330 * Parameters: 331 * keys - array of values, or key 332 * val - value (if keys is not an array) 324 * Set a flash variable. 325 * 326 * @param string|array key, or array of values 327 * @param mixed value (if keys is not an array) 328 * @return void 333 329 */ 334 330 public function set_flash($keys, $val = FALSE) … … 353 349 354 350 /** 355 * Method: keep_flash 356 * Freshen a flash variable. 357 * 358 * Parameters: 359 * key - variable key 351 * Freshen a flash variable. 352 * 353 * @param string variable key 354 * @return boolean 360 355 */ 361 356 public function keep_flash($key) … … 371 366 372 367 /** 373 * Method: get 374 * Get a variable. Access to sub-arrays is supported with key.subkey. 375 * 376 * Parameters: 377 * key - variable key (optional) 378 * default - default value returned if variable does not exist 379 * 380 * Returns: 381 * Variable data if key specified, otherwise array containing all session data 368 * Get a variable. Access to sub-arrays is supported with key.subkey. 369 * 370 * @param string variable key 371 * @param mixed default value returned if variable does not exist 372 * @return mixed Variable data if key specified, otherwise array containing all session data. 382 373 */ 383 374 public function get($key = FALSE, $default = FALSE) … … 392 383 393 384 /** 394 * Method: get_once 395 * Get a variable, and delete it. 396 * 397 * Parameters: 398 * key - variable key (optional) 399  
