/**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_since = VGet::since(date('Y-m-d'));
     $this->_url = 'cache/timeline/' . $this->_since . '.json';
     if ($this->check_cache() === false) {
         $this->_content = array('title' => WS_NAME, 'url' => WS_URL, 'content' => array());
         $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);
     }
 }
 /**
  * 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());
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->create();
 }