Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed class documentation for CompositeDBField

  • Loading branch information...
commit 9bd7068394129a4f65cbe8373ab2ac1a32d95fbb 1 parent a9f9505
@halkyon halkyon authored
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();
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.