Piwik\Common::prefixTables PHP Method

prefixTables() public static method

Returns an array containing the prefixed table names of every passed argument.
public static prefixTables ( ) : array
return array The prefixed names in an array.
    public static function prefixTables()
    {
        $result = array();
        foreach (func_get_args() as $table) {
            $result[] = self::prefixTable($table);
        }
        return $result;
    }

Usage Example

Ejemplo n.º 1
0
 public static function getDeleteTableLogTables()
 {
     $result = Common::prefixTables('log_conversion', 'log_link_visit_action', 'log_visit', 'log_conversion_item');
     if (Db::isLockPrivilegeGranted()) {
         $result[] = Common::prefixTable('log_action');
     }
     return $result;
 }
All Usage Examples Of Piwik\Common::prefixTables