shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

model.php (555B)


      1 <?php
      2 /**
      3  * @package		OpenCart
      4  * @author		Daniel Kerr
      5  * @copyright	Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/)
      6  * @license		https://opensource.org/licenses/GPL-3.0
      7  * @link		https://www.opencart.com
      8 */
      9 
     10 /**
     11 * Model class
     12 */
     13 abstract class Model {
     14 	protected $registry;
     15 
     16 	public function __construct($registry) {
     17 		$this->registry = $registry;
     18 	}
     19 
     20 	public function __get($key) {
     21 		return $this->registry->get($key);
     22 	}
     23 
     24 	public function __set($key, $value) {
     25 		$this->registry->set($key, $value);
     26 	}
     27 }