TI_Model::__construct PHP Метод

__construct() публичный Метод

public __construct ( $config = [] )
    public function __construct($config = array())
    {
        $class = str_replace($this->config->item('subclass_prefix'), '', get_class($this));
        log_message('info', $class . '  Model Class Initialized');
    }

Usage Example

Пример #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->db->where('type', 'cart_total')->get('extensions')->num_rows() <= 0) {
         $this->extension->runMigration('cart_module');
     }
 }
All Usage Examples Of TI_Model::__construct
TI_Model