Nette\Database\Table\ActiveRow::__construct PHP Метод

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

public __construct ( array $data, Selection $table )
$data array
$table Selection
    public function __construct(array $data, Selection $table)
    {
        $this->data = $data;
        $this->table = $table;
    }

Usage Example

Пример #1
0
 public function __construct(array $data, NSelection $table)
 {
     if (!($table instanceof Selection || $table instanceof GroupedSelection)) {
         throw new \Nette\InvalidArgumentException();
     }
     parent::__construct($data, $table);
 }