Example #1
0
 public function getTotal()
 {
     if (PFMigratorHelper::fmProInstalled()) {
         return count($this->getTables());
     }
     return 1;
 }
Example #2
0
 public function getTotal()
 {
     if (!PFMigratorHelper::fmProInstalled()) {
         return 1;
     }
     $query = $this->_db->getQuery(true);
     $query->select('COUNT(*)')->from('#__pf_note_versions_tmp');
     $this->_db->setQuery($query);
     $total = (int) $this->_db->loadResult();
     return $total;
 }