Grido\Components\Filters\Filter::__construct PHP Метод

__construct() публичный Метод

public __construct ( Grid $grid, string $name, string $label )
$grid Grido\Grid
$name string
$label string
    public function __construct($grid, $name, $label)
    {
        $name = Helpers::formatColumnName($name);
        $this->addComponentToGrid($grid, $name);
        $this->label = $label;
        $this->type = get_class($this);
        $form = $this->getForm();
        $filters = $form->getComponent(self::ID, FALSE);
        if ($filters === NULL) {
            $filters = $form->addContainer(self::ID);
        }
        $filters->addComponent($this->getFormControl(), $name);
    }