Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Model {
- private $imager;
- private $config;
- private $connection;
- public function __construct($config, $connection, $url)
- {
- $this->imager = new Imager($config, $connection);
- $this->config = $config;
- $this->connection = $connection;
- }
- public function __destruct()
- {
- $this->err = null;
- $this->imager = null;
- $this->config = null;
- $this->result = null;
- $this->success = null;
- $this->connection = null;
- }
- }
- class Community extends Model {
- public getUpdates() { }
- public getNewest() { }
- // und so weiter
- }
Advertisement
Add Comment
Please, Sign In to add comment