コード例 #1
0
ファイル: mysqlx.php プロジェクト: javigomez/neno
 /**
  * Get all the tables that belong to a particular component.
  *
  * @param   string $componentName Component name
  *
  * @return array
  */
 public function getComponentTables($componentName)
 {
     $tablePattern = NenoHelper::getTableNamePatternBasedOnComponentName($componentName);
     $query = 'SHOW TABLES LIKE ' . $this->quote($tablePattern . '%');
     $tablesList = $this->executeQuery($query, true, true);
     return NenoHelper::convertOnePropertyObjectListToArray($tablesList);
 }