public function __construct(ffWPLayer $WPLayer)
 {
     $this->_WPLayer = $WPLayer;
     if (!$WPLayer->in_the_loop()) {
         $WPLayer->the_post();
         $WPLayer->rewind_posts();
     }
 }
 /**
  * 
  * @param ffWPLayer $WPLayer
  * @return ffFileSystem
  */
 public function createFileSystem(ffWPLayer $WPLayer)
 {
     $this->_getClassloader()->loadClass('ffFileSystem');
     $WPLayer->add_filter('filesystem_method', array($this, 'fileSystemMethodDirect'));
     $WPLayer->WP_Filesystem();
     $WPFileSystem = $WPLayer->get_WP_filesystem();
     $WPLayer->remove_filter('filesystem_method', array($this, 'fileSystemMethodDirect'));
     $fileSystem = new ffFileSystem($WPLayer, $WPFileSystem);
     return $fileSystem;
 }
 private function _generateBreadcrumbsForAuthor()
 {
     $currentInfo = $this->_getCurrentInfo();
     $breadcrumbItem = $this->_getBreadcrumbItem();
     $breadcrumbItem->name = $currentInfo->name;
     $breadcrumbItem->type = $currentInfo->type;
     $breadcrumbItem->url = $this->_WPLayer->get_author_posts_url($currentInfo->id);
     $breadcrumbItem->queryType = ffConstQuery::AUTHOR;
     $this->_breadcrumbsCollection->addItem($breadcrumbItem);
 }
 public function getWPLayer()
 {
     if ($this->_WPLayer == null) {
         $this->getClassLoader()->loadClass('ffWPLayer');
         $this->getClassLoader()->loadClass('ffHookManager');
         $this->getClassLoader()->loadClass('ffWPMLBridge');
         $this->getClassLoader()->loadClass('ffAssetsSourceHolder');
         $this->_WPLayer = new ffWPLayer(FF_FRAMEWORK_URL);
         $hookManager = new ffHookManager($this->_WPLayer);
         $wpmlBridge = new ffWPMLBridge($this->_WPLayer);
         $assetsSourceHolder = new ffAssetsSourceHolder($this->_WPLayer);
         $this->_WPLayer->setWPMLBridge($wpmlBridge);
         $this->_WPLayer->setHookManager($hookManager);
         $this->_WPLayer->setAssetsSourceHolder($assetsSourceHolder);
     }
     return $this->_WPLayer;
 }
 public function hookActions()
 {
     $this->_WPLayer->add_action('ff_http_request_resize_and_serve_image', array($this, 'actResizeAndServeImage'));
 }
 public function __construct(ffWPLayer $_WPLayer)
 {
     $this->_makeTheList();
     $this->setLink($_WPLayer->getCurrentUrl());
 }
 public function getPermalink()
 {
     return $this->_WPLayer->get_permalink($this->getID());
 }