getTable($key); parent::__construct($table); $name = $table->getComponentName(); $data = $graph->getData($name); if(is_array($data)) { foreach($data as $k=>$v): $table->setData($v); $this->add($this->table->getRecord()); endforeach; } } } ?>