Skip to content

Commit

Permalink
Forgot to document TableMetadata DAO class.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Feb 8, 2015
1 parent c715652 commit 17f681e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions core/DataAccess/TableMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@
*/
namespace Piwik\DataAccess;

use Piwik\Common;
use Piwik\Db;

/**
* TODO
* Data Access Object that can be used to get metadata information about
* the MySQL tables Piwik uses.
*/
class TableMetadata
{
/**
* TODO
* Returns the list of column names for a table.
*
* @param string $table Prefixed table name.
* @return string[] List of column names..
*/
public function getColumns($table)
{
Expand All @@ -33,7 +36,12 @@ public function getColumns($table)
}

/**
* TODO
* Returns the list of idaction columns in a table. A column is
* assumed to be an idaction reference if it has `"idaction"` in its
* name (eg, `"idaction_url"` or `"idaction_content_name"`.
*
* @param string $table Prefixed table name.
* @return string[]
*/
public function getIdActionColumnNames($table)
{
Expand Down

0 comments on commit 17f681e

Please sign in to comment.