CI_Table::__construct PHP Méthode

__construct() public méthode

Set the template from the table config file if it exists
public __construct ( array $config = [] ) : void
$config array (default: array())
Résultat void
    public function __construct($config = array())
    {
        // initialize config
        foreach ($config as $key => $val) {
            $this->template[$key] = $val;
        }
        log_message('info', 'Table Class Initialized');
    }

Usage Example

Exemple #1
0
 function __construct()
 {
     parent::__construct();
     $this->fields = NULL;
     $this->attributes = array('class' => 'contentTable', 'cellspacing' => 0, 'cellspadding' => 0);
     $this->template = NULL;
     $this->row_attr = array();
     $this->show_line_id = false;
     $this->trim_columns = false;
 }
All Usage Examples Of CI_Table::__construct