Example #1
0
 /**
  * Get list of link tables
  *
  * @param string $match
  * @return array
  */
 function getLinkTables($match = null)
 {
     $return = array();
     $st = $this->db->query(suxDB::showTablesQuery());
     foreach ($st->fetchAll(PDO::FETCH_NUM) as $val) {
         if (preg_match('/^link__/', $val[0]) && (!$match || mb_strpos($val[0], "__{$match}"))) {
             $return[] = $val[0];
         }
     }
     return $return;
 }