Subversion-Projekte lars-tiefland.ci

Revision

Revision 2254 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2254 Revision 2257
Zeile 4... Zeile 4...
4
 *
4
 *
5
 * An open source application development framework for PHP
5
 * An open source application development framework for PHP
6
 *
6
 *
7
 * This content is released under the MIT License (MIT)
7
 * This content is released under the MIT License (MIT)
8
 *
8
 *
9
 * Copyright (c) 2014 - 2017, British Columbia Institute of Technology
9
 * Copyright (c) 2014 - 2018, British Columbia Institute of Technology
10
 *
10
 *
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
12
 * of this software and associated documentation files (the "Software"), to deal
12
 * of this software and associated documentation files (the "Software"), to deal
13
 * in the Software without restriction, including without limitation the rights
13
 * in the Software without restriction, including without limitation the rights
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Zeile 27... Zeile 27...
27
 * THE SOFTWARE.
27
 * THE SOFTWARE.
28
 *
28
 *
29
 * @package	CodeIgniter
29
 * @package	CodeIgniter
30
 * @author	EllisLab Dev Team
30
 * @author	EllisLab Dev Team
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
32
 * @copyright	Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
32
 * @copyright	Copyright (c) 2014 - 2018, British Columbia Institute of Technology (http://bcit.ca/)
33
 * @license	http://opensource.org/licenses/MIT	MIT License
33
 * @license	http://opensource.org/licenses/MIT	MIT License
34
 * @link	https://codeigniter.com
34
 * @link	https://codeigniter.com
35
 * @since	Version 1.0.0
35
 * @since	Version 1.0.0
36
 * @filesource
36
 * @filesource
37
 */
37
 */
Zeile 337... Zeile 337...
337
			{
337
			{
338
				$this->$key = $val;
338
				$this->$key = $val;
339
			}
339
			}
340
		}
340
		}
Zeile -... Zeile 341...
-
 
341
 
-
 
342
		// _parse_attributes(), called by initialize(), needs to run at least once
-
 
343
		// in order to enable "rel" attributes, and this triggers it.
-
 
344
		isset($params['attributes']) OR $params['attributes'] = array();
341
 
345
 
342
		$this->initialize($params);
346
		$this->initialize($params);
343
		log_message('info', 'Pagination Class Initialized');
347
		log_message('info', 'Pagination Class Initialized');
Zeile 344... Zeile 348...
344
	}
348
	}
Zeile 351... Zeile 355...
351
	 * @param	array	$params	Initialization parameters
355
	 * @param	array	$params	Initialization parameters
352
	 * @return	CI_Pagination
356
	 * @return	CI_Pagination
353
	 */
357
	 */
354
	public function initialize(array $params = array())
358
	public function initialize(array $params = array())
355
	{
359
	{
356
		isset($params['attributes']) OR $params['attributes'] = array();
360
		if (isset($params['attributes']) && is_array($params['attributes']))
357
		if (is_array($params['attributes']))
-
 
358
		{
361
		{
359
			$this->_parse_attributes($params['attributes']);
362
			$this->_parse_attributes($params['attributes']);
360
			unset($params['attributes']);
363
			unset($params['attributes']);
361
		}
364
		}