public function __construct($config = array())
 {
     parent::__construct($config);
     $this->checkComponent();
     $objJSNImages = JSNISFactory::getObj('classes.jsn_is_images');
     $albumSync = $objJSNImages->getSyncAlbumsByShowlistID($this->_showlistTable->showlist_id);
     if (count($albumSync) > 0) {
         $this->_syncmode = true;
         $this->_syncAlbum = $albumSync;
     }
 }
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_externalPath = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_imageshow';
     //load profile table
     $this->_source['profileTable'] = JTable::getInstance('SourceProfile', 'Table');
     $this->_source['profileTable']->load($this->_showlistTable->image_source_profile_id);
     // load source table
     $this->_source['sourceTable'] = $this->getSourceTable();
     $this->_source['sourceTable']->load($this->_source['profileTable']->external_source_id);
     $objJSNImages = JSNISFactory::getObj('classes.jsn_is_images');
     $albumSync = $objJSNImages->getSyncAlbumsByShowlistID($this->_showlistTable->showlist_id);
     if (count($albumSync) > 0) {
         $this->_syncmode = true;
         $this->_syncAlbum = $albumSync;
     }
 }