code/pages/WikiPage.php
public function Form() {
		// The editing form hasn't been put in place by the 'edit' action
		// so lets just show the status form
		$append = '';
		if (!$this->form) {
			if (WikiPage::$show_edit_button || $this->data()->canEdit()) {
				// create the information form 
				$this->form = $this->StatusForm();
			}
		} else {
			// if we have got an editing form, then we'll add a New Page
			// form if we have permissions to do so
			if (Permission::check(MANAGE_WIKI_PAGES)) {
				$append = $this->CreatePageForm()->forTemplate();
			}
		}

		return $this->form->forTemplate() . $append;
	}
public function Form() {
		// The editing form hasn't been put in place by the 'edit' action
		// so lets just show the status form
		$append = '';
		if (!$this->form) {
			if (WikiPage::$show_edit_button || $this->data()->canEdit()) {
				// create the information form 
				$this->form = $this->StatusForm();
			}
		} else {
			// if we have got an editing form, then we'll add a New Page
			// form if we have permissions to do so
			if (Permission::check(MANAGE_WIKI_PAGES)) {
				$append = $this->CreatePageForm()->forTemplate();
			}
		}

		return $this->form->forTemplate() . $append;
	}
public function Form ( ) { // The editing form hasn't been put in place by the 'edit' action // so lets just show the status form $ append = '' ; if ( ! $ this -> form ) { if ( WikiPage :: $ show_edit_button || $ this -> data ( ) -> canEdit ( ) ) { // create the information form  $ this -> form = $ this -> StatusForm ( ) ; } } else { // if we have got an editing form, then we'll add a New Page // form if we have permissions to do so if ( Permission :: check ( MANAGE_WIKI_PAGES ) ) { $ append = $ this -> CreatePageForm ( ) -> forTemplate ( ) ; } } return $ this -> form -> forTemplate ( ) . $ append ; }
Return the form to the user if it exists, otherwise some information
about who is currently editing

@return Form
Return the form to the user if it exists otherwise some information about who is currently editing