Example #1
0
 /**
  * Is serchable ?
  * 
  * @return bool
  */
 public function isSearchable()
 {
     return $this->field->isSearchable();
 }
 /**
  * Apply annotation to field
  * 
  * @param Field            $field
  * @param ColumnAnnotation $annotation
  */
 protected function applyAnnotation(Field $field, ColumnAnnotation $annotation)
 {
     $field->setTitle($annotation->title);
     $field->setWidth($annotation->width);
     $field->setProperty($annotation->property);
     $field->setOrderable($annotation->orderable);
     $field->setSearchable($annotation->searchable);
     $field->setGloballySearchable($annotation->globalSearch);
 }