Esempio n. 1
0
 protected function getColumnNameAndOptions(ColumnMap $column)
 {
     $name = strtolower($column->getName());
     $relation = $column->getRelation();
     $options = array('label' => $relation ? $relation->getName() : ucfirst(str_replace("_", " ", $name)), 'id' => 'table-' . str_replace('_', '-', $column->getTableName()) . '-column-' . str_replace("_", "-", $name) . rand());
     return array($name, $options);
 }