filter class
This commit is contained in:
23
src/Filter/InputFilter.php
Normal file
23
src/Filter/InputFilter.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Itguild\Tables\Filter;
|
||||
|
||||
use Itguild\Tables\Filter\Filter;
|
||||
|
||||
class InputFilter extends Filter
|
||||
{
|
||||
|
||||
public function fetch()
|
||||
{
|
||||
// if(is_array($this->data)){
|
||||
// $this->html = "<td>";
|
||||
//// var_dump(key($this->data));
|
||||
// $key = key($this->data);
|
||||
// foreach ($this->data as $value){
|
||||
// $this->html .= "<input type='$key' name='$this->name' value='$value'>";
|
||||
// }
|
||||
// return $this->html . "</td>";
|
||||
// }
|
||||
return "<td><input type='$this->data' name='$this->name'></td>";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user