/**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_key = VGet::website();
     $this->_slug = VGet::slug();
     $this->get_prefs();
     $this->get_post();
     $this->build_title();
     $this->create();
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     try {
         $this->_slug = VGet::slug();
         if (empty($this->_slug)) {
             throw new Exception('No permalink found!');
         }
         $this->_url = 'cache/post/' . $this->_slug . '.json';
         if ($this->check_cache() === false) {
             $this->get_content();
             $cache = new File();
             $cache->_content = json_encode($this->_content);
             $cache->save($this->_url);
         } else {
             $cache = File::read($this->_url);
             $this->_content = json_decode($cache->_content, true);
         }
     } catch (Exception $e) {
         $this->_content = array('message' => $e->getMessage());
     }
 }