Skip to content

Commit

Permalink
MINOR Fixed class documentation for CompositeDBField
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed Apr 12, 2012
1 parent a9f9505 commit 9bd7068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model/fieldtypes/CompositeDBField.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -85,7 +85,7 @@
* return $this->isChanged;
* }
*
* function hasValue() {
* function exists() {
* return ($this->getStreetName() || $this->getStreetNumber());
* }
* }
Expand Down Expand Up @@ -179,4 +179,4 @@ function isChanged();
*/
function exists();

}
}

0 comments on commit 9bd7068

Please sign in to comment.