private function create_page($suburb) { $page = new Page($suburb, $this->suburb_template, $this->title_template, $this->page_template, $this->parent_page_id); $page->save(); $creation_method = $page->get_creation_method(); if ($creation_method == "Add") { $this->pages_added++; } else { if ($creation_method == "Update") { $this->pages_updated++; } } }