コード例 #1
0
ファイル: Column.php プロジェクト: mikemirten/ConstructorCMS
 /**
  * Is serchable ?
  * 
  * @return bool
  */
 public function isSearchable()
 {
     return $this->field->isSearchable();
 }
コード例 #2
0
 /**
  * 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);
 }