public function canSubmit() {

		return 
			$this instanceof InputElement && isset($this->attributes['type']) && $this->attributes['type'] == 'submit' ||
			$this instanceof ImageElement ||
			$this instanceof SubmitInputElement ||
			$this instanceof ButtonElement && $this->attributes['type'] == 'submit';

	}
public function canSubmit() {

		return 
			$this instanceof InputElement && isset($this->attributes['type']) && $this->attributes['type'] == 'submit' ||
			$this instanceof ImageElement ||
			$this instanceof SubmitInputElement ||
			$this instanceof ButtonElement && $this->attributes['type'] == 'submit';

	}
public function canSubmit ( ) { return $ this instanceof InputElement && isset ( $ this -> attributes [ 'type' ] ) && $ this -> attributes [ 'type' ] == 'submit' || $ this instanceof ImageElement || $ this instanceof SubmitInputElement || $ this instanceof ButtonElement && $ this -> attributes [ 'type' ] == 'submit' ; }
check whether element can submit a form

@return boolean $result
check whether element can submit a form