Commit 2ef0e16c authored by Elias Villiger's avatar Elias Villiger
Browse files

Initial tinkering with fillStoreRecord

parent a8a05937
......@@ -53,6 +53,7 @@ class FillStoreForm {
public function __construct() {
$this->store = Store::getInstance();
$this->dbIndexData = $this->store->getVar(PARAM_DB_INDEX_DATA, STORE_SIP);
if ($this->dbIndexData === false) {
$this->dbIndexData = DB_INDEX_DEFAULT; // Fallback for FORMs which are not called via SIP;
......@@ -65,6 +66,14 @@ class FillStoreForm {
}
$this->feSpecNative = $this->loadFormElementsBasedOnSIP();
// TODO EV 5467
$form = $this->feSpecNative['form'];
$table = $form . 'magic';
$recordId = $this->feSpecNative['r'];
$record = $this->dbArray[$this->dbIndexData]->sql("SELECT * FROM Test WHERE id = 1", ROW_EXPECT_1);
Store::setStore($record, STORE_RECORD, true);
$this->evaluate = new Evaluate($this->store, $this->dbArray[$this->dbIndexData]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment