function Test_for_StatusKeys() { $Object = new Ak(); $this->assertFalse(Ak::objectHasBeenModified($Object)); $this->assertEqual(Ak::getStatusKey($Object), Ak::getStatusKey($Object)); $Object->name = 'Bermi'; $this->assertTrue(Ak::objectHasBeenModified($Object)); $this->assertTrue(Ak::objectHasBeenModified($Object)); Ak::resetObjectModificationsWacther($Object); $this->assertFalse(Ak::objectHasBeenModified($Object)); }
function hasBeenModified() { return Ak::objectHasBeenModified($this); }