Make an object actually hold up-to-date sanitized data after updating it

feature/node-rewrite
Sven Slootweg 13 years ago
parent 5f8d9f8332
commit cbbb7b2a88

@ -249,8 +249,6 @@ class Container extends CPHPDatabaseRecordClass
$this->uRootPassword = $sRootPassword; $this->uRootPassword = $sRootPassword;
$this->InsertIntoDatabase(); $this->InsertIntoDatabase();
var_dump($this->sTemplate->sTemplateName);
$command = shrink_command("vzctl create {$this->sInternalId} $command = shrink_command("vzctl create {$this->sInternalId}
--ostemplate {$this->sTemplate->sTemplateName} --ostemplate {$this->sTemplate->sTemplateName}
"); ");

@ -34,6 +34,11 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
$this->EventConstructed(); $this->EventConstructed();
} }
public function RefreshData()
{
$this->ConstructDataset($this->sId);
}
public function ConstructDataset($uDataSource, $uCommunityId = 0) public function ConstructDataset($uDataSource, $uCommunityId = 0)
{ {
$bind_datasets = true; $bind_datasets = true;
@ -348,6 +353,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
} }
$this->PurgeCache(); $this->PurgeCache();
$this->RefreshData();
return $result; return $result;
} }

Loading…
Cancel
Save