예제 #1
0
 /**
  * Get Settings of indices.
  *
  * @param  string|array $index
  * @return mixed
  */
 public function getSettings($index = null)
 {
     if ($index == null) {
         $index = $this->index;
     }
     $prefix = $this->connection->getIndexPrefix();
     if (is_array($index)) {
         foreach ($index as $key => $value) {
             $index[$key] = $prefix . $value;
         }
     } else {
         $index = $prefix . $index;
     }
     $compiled = $this->grammar->compileGetSettings($index);
     return $this->processor->processGetSettings($this, $this->connection->indexGetSettings($compiled));
 }