You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
445 B
PHTML
24 lines
445 B
PHTML
|
10 years ago
|
<?php
|
||
|
|
|
||
|
|
namespace Illuminate\Database\Query\Processors;
|
||
|
|
|
||
|
|
class SQLiteProcessor extends Processor
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Process the results of a column listing query.
|
||
|
|
*
|
||
|
|
* @param array $results
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
public function processColumnListing($results)
|
||
|
|
{
|
||
|
|
$mapping = function ($r) {
|
||
|
|
$r = (object) $r;
|
||
|
|
|
||
|
|
return $r->name;
|
||
|
|
};
|
||
|
|
|
||
|
|
return array_map($mapping, $results);
|
||
|
|
}
|
||
|
|
}
|