function create($oContentClass) { if ($this->exists()) { throw new AnwUnexpectedException("An existing pagegroup can't be created"); } $this->sContentClass = $oContentClass->getName(); $this->nId = AnwStorage::createPageGroup($this); //this will set the group id $this->bExists = true; }