Skip to content
This repository
Browse code

MINOR Fixed class documentation for CompositeDBField

  • Loading branch information...
commit 9bd7068394129a4f65cbe8373ab2ac1a32d95fbb 1 parent a9f9505
Sean Harvey authored April 12, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  model/fieldtypes/CompositeDBField.php
8  model/fieldtypes/CompositeDBField.php
@@ -7,7 +7,7 @@
7 7
  * 
8 8
  * Example with a combined street name and number:
9 9
  * <code>
10  
-* class Street extends DBFields implements CompositeDBField() {
  10
+* class Street extends DBField implements CompositeDBField {
11 11
 * 	protected $streetNumber;
12 12
 * 	protected $streetName;
13 13
 * 	protected $isChanged = false;
@@ -42,7 +42,7 @@
42 42
 * 	}
43 43
 * 	
44 44
 * 	function setValue($value, $record = null, $markChanged=true) {
45  
-* 		if ($value instanceof Street && $value->hasValue()) {
  45
+* 		if ($value instanceof Street && $value->exists()) {
46 46
 * 			$this->setStreetName($value->getStreetName(), $markChanged);
47 47
 * 			$this->setStreetNumber($value->getStreetNumber(), $markChanged);
48 48
 * 			if($markChanged) $this->isChanged = true;
@@ -85,7 +85,7 @@
85 85
 * 		return $this->isChanged;
86 86
 * 	}
87 87
 * 	
88  
-* 	function hasValue() {
  88
+* 	function exists() {
89 89
 * 		return ($this->getStreetName() || $this->getStreetNumber());
90 90
 * 	}
91 91
 * }
@@ -179,4 +179,4 @@ function isChanged();
179 179
 	 */
180 180
 	function exists();
181 181
 	
182  
-}
  182
+}

0 notes on commit 9bd7068

Please sign in to comment.
Something went wrong with that request. Please try again.