[Git][codeigniterpower/codeigniterpower][master] PHP 8.2 support for dynamics properties, improve table class

1 view
Skip to first unread message

Герхард PICCORO Lenz McKAY (@mckaygerhard)

unread,
Feb 6, 2024, 11:21:35 AMFeb 6
to venenux...@googlegroups.com

Герхард PICCORO Lenz McKAY pushed to branch master at codeigniterpower / codeigniterpower

Commits:

8 changed files:

Changes:

  • appsys/core/Controller.php
    ... ... @@ -50,6 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    50 50
      * @author		EllisLab Dev Team
    
    51 51
      * @link		https://codeigniter.com/userguide3/general/controllers.html
    
    52 52
      */
    
    53
    +#[AllowDynamicProperties]
    
    53 54
     class CI_Controller {
    
    54 55
     
    
    55 56
     	/**
    

  • appsys/core/Loader.php
    ... ... @@ -49,6 +49,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    49 49
      * @author		EllisLab Dev Team
    
    50 50
      * @link		https://codeigniter.com/userguide3/libraries/loader.html
    
    51 51
      */
    
    52
    +#[AllowDynamicProperties]
    
    52 53
     class CI_Loader {
    
    53 54
     
    
    54 55
     	// All these are set automatically. Don't mess with them.
    

  • appsys/core/Router.php
    ... ... @@ -58,6 +58,13 @@ class CI_Router {
    58 58
     	 */
    
    59 59
     	public $config;
    
    60 60
     
    
    61
    +	/**
    
    62
    +	 * CI_URI class object
    
    63
    +	 *
    
    64
    +	 * @var	object
    
    65
    +	 */
    
    66
    +	public $uri;
    
    67
    +
    
    61 68
     	/**
    
    62 69
     	 * List of routes
    
    63 70
     	 *
    

  • appsys/core/URI.php
    ... ... @@ -51,6 +51,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    51 51
      */
    
    52 52
     class CI_URI {
    
    53 53
     
    
    54
    +	/**
    
    55
    +	 * CI_Config instance
    
    56
    +	 *
    
    57
    +	 * @var	CI_Config
    
    58
    +	 */
    
    59
    +	public $config;
    
    60
    +
    
    54 61
     	/**
    
    55 62
     	 * List of cached URI segments
    
    56 63
     	 *
    

  • appsys/database/DB_driver.php
    ... ... @@ -51,6 +51,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    51 51
      * @author		EllisLab Dev Team
    
    52 52
      * @link		https://codeigniter.com/userguide3/database/
    
    53 53
      */
    
    54
    +#[AllowDynamicProperties]
    
    54 55
     abstract class CI_DB_driver {
    
    55 56
     
    
    56 57
     	/**
    

  • appsys/libraries/Driver.php
    ... ... @@ -50,6 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    50 50
      * @author		EllisLab Dev Team
    
    51 51
      * @link
    
    52 52
      */
    
    53
    +#[AllowDynamicProperties]
    
    53 54
     class CI_Driver_Library {
    
    54 55
     
    
    55 56
     	/**
    

  • appsys/libraries/Image_lib.php
    ... ... @@ -85,6 +85,14 @@ class CI_Image_lib {
    85 85
     	 */
    
    86 86
     	public $new_image		= '';
    
    87 87
     
    
    88
    +
    
    89
    +	/**
    
    90
    +	 * Path to destination image
    
    91
    +	 *
    
    92
    +	 * @var string
    
    93
    +	 */
    
    94
    +	public $dest_image		= '';
    
    95
    +
    
    88 96
     	/**
    
    89 97
     	 * Image width
    
    90 98
     	 *
    

  • appsys/libraries/Table.php
    ... ... @@ -489,12 +489,12 @@ class CI_Table {
    489 489
     			return;
    
    490 490
     		}
    
    491 491
     
    
    492
    -		$this->temp = $this->_default_template();
    
    492
    +		$temp = $this->_default_template();
    
    493 493
     		foreach (array('table_open', 'thead_open', 'thead_close', 'heading_row_start', 'heading_row_end', 'heading_cell_start', 'heading_cell_end', 'tbody_open', 'tbody_close', 'row_start', 'row_end', 'cell_start', 'cell_end', 'row_alt_start', 'row_alt_end', 'cell_alt_start', 'cell_alt_end', 'table_close') as $val)
    
    494 494
     		{
    
    495 495
     			if ( ! isset($this->template[$val]))
    
    496 496
     			{
    
    497
    -				$this->template[$val] = $this->temp[$val];
    
    497
    +				$this->template[$val] = $temp[$val];
    
    498 498
     			}
    
    499 499
     		}
    
    500 500
     	}
    


View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help

Reply all
Reply to author
Forward
0 new messages