Guest User

Untitled

a guest
Jul 31st, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.  
  3. class Model {
  4.     private $imager;
  5.     private $config;
  6.     private $connection;
  7.     public function __construct($config, $connection, $url)
  8.     {
  9.         $this->imager    = new Imager($config, $connection);
  10.         $this->config    = $config;
  11.         $this->connection = $connection;
  12.     }
  13.  
  14.     public function __destruct()
  15.     {
  16.         $this->err      = null;
  17.         $this->imager    = null;
  18.         $this->config    = null;
  19.         $this->result    = null;
  20.         $this->success  = null;
  21.         $this->connection = null;
  22.     }
  23. }
  24.  
  25. class Community extends Model {
  26.     public getUpdates() { }
  27.     public getNewest() { }
  28.     // und so weiter
  29. }
Advertisement
Add Comment
Please, Sign In to add comment