/** Constructor
  */
 function JFDatabase($options)
 {
     parent::__construct($options);
     $pfunc = $this->_profile();
     $query = "select distinct reference_table from #__jf_content";
     $this->setQuery($query);
     $this->_mlTableList = $this->loadResultArray(0, false);
     if (!$this->_mlTableList) {
         echo $this->getErrorMsg();
     }
     $pfunc = $this->_profile($pfunc);
 }
Example #2
0
 /** Constructor
  */
 function JFDatabase($options)
 {
     parent::__construct($options);
     $pfunc = $this->_profile();
     $query = "select distinct reference_table from #__jf_content";
     $this->setQuery($query);
     $this->_skipSetRefTables = true;
     $this->_mlTableList = $this->loadResultArray(0, false);
     $this->_skipSetRefTables = false;
     if (!$this->_mlTableList) {
         if ($this->getErrorNum() > 0) {
             JError::raiseWarning(200, JTEXT::_('No valid table list:') . $this->getErrorMsg());
         }
     }
     $pfunc = $this->_profile($pfunc);
 }
 /** Constructor
  */
 public function JFDatabase($options)
 {
     //if (JDEBUG) { $_PROFILER = JProfiler::getInstance('Application');$_PROFILER->mark('start jfdatabase');	}
     parent::__construct($options);
     $pfunc = $this->profile();
     $query = "select distinct reference_table from #__jf_content UNION select distinct reference_table from #__jf_translationmap";
     $this->setQuery($query);
     $this->skipSetRefTables = true;
     $this->mlTableList = $this->loadResultArray(0, false);
     $this->skipSetRefTables = false;
     if (!$this->mlTableList) {
         if ($this->getErrorNum() > 0) {
             JError::raiseWarning(200, JTEXT::_('No valid table list:') . $this->getErrorMsg());
         }
     }
     $pfunc = $this->profile($pfunc);
 }