Inheritance: extends Nette\Object
示例#1
0
 /**
  * @param string $key
  * @param string $name
  * @param string $column
  * @param string $name_second
  */
 public function __construct($key, $name, $column, $name_second)
 {
     parent::__construct($key, $name, $column);
     $this->name_second = $name_second;
 }
示例#2
0
 /**
  * Apply fitler and tell whether row passes conditions or not
  * @param  mixed  $row
  * @param  Filter $filter
  * @return mixed
  */
 protected function applyFilter($row, Filter $filter)
 {
     if (is_array($row) || $row instanceof \Traversable) {
         foreach ($row as $key => $value) {
             if (FALSE !== strpos(Strings::toAscii($value), Strings::toAscii($filter->getValue()))) {
                 return $row;
             }
         }
     }
     return FALSE;
 }
示例#3
0
 /**
  * @param string $key
  * @param string $name
  * @param string $optionas
  * @param string $column
  */
 public function __construct($key, $name, array $options, $column)
 {
     parent::__construct($key, $name, $column);
     $this->options = $options;
 }