OpenSkill\Datatable\Columns\Searchable\Searchable::REGEX PHP Method

REGEX() public static method

Will return a new searchable that will allow normal searching which also allows regex searching.
public static REGEX ( ) : OpenSkill\Datatable\Columns\Searchable\RegexSearchable
return OpenSkill\Datatable\Columns\Searchable\RegexSearchable
    public static function REGEX()
    {
        return new RegexSearchable();
    }

Usage Example

コード例 #1
0
 /**
  * Simple test that will test if the immutable object is created as wished
  */
 public function testBasicColumnConfiguration()
 {
     $name = "fooBar";
     $cc = ColumnConfigurationBuilder::create()->name($name)->searchable(Searchable::REGEX())->orderable(Orderable::NONE())->build();
     $this->assertSame($name, $cc->getName(), "Name should be set correctly");
     $this->assertTrue($cc->getSearch()->isSearchable(), "The column should be searchable");
     $this->assertFalse($cc->getOrder()->isOrderable(), "The column should be orderable");
 }
All Usage Examples Of OpenSkill\Datatable\Columns\Searchable\Searchable::REGEX