Permalink
Browse files

MINOR Fixed class documentation for CompositeDBField

  • Loading branch information...
1 parent a9f9505 commit 9bd7068394129a4f65cbe8373ab2ac1a32d95fbb @halkyon halkyon committed Apr 12, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 model/fieldtypes/CompositeDBField.php
View
8 model/fieldtypes/CompositeDBField.php
@@ -7,7 +7,7 @@
*
* Example with a combined street name and number:
* <code>
-* class Street extends DBFields implements CompositeDBField() {
+* class Street extends DBField implements CompositeDBField {
* protected $streetNumber;
* protected $streetName;
* protected $isChanged = false;
@@ -42,7 +42,7 @@
* }
*
* function setValue($value, $record = null, $markChanged=true) {
-* if ($value instanceof Street && $value->hasValue()) {
+* if ($value instanceof Street && $value->exists()) {
* $this->setStreetName($value->getStreetName(), $markChanged);
* $this->setStreetNumber($value->getStreetNumber(), $markChanged);
* if($markChanged) $this->isChanged = true;
@@ -85,7 +85,7 @@
* return $this->isChanged;
* }
*
-* function hasValue() {
+* function exists() {
* return ($this->getStreetName() || $this->getStreetNumber());
* }
* }
@@ -179,4 +179,4 @@ function isChanged();
*/
function exists();
-}
+}

0 comments on commit 9bd7068

Please sign in to comment.