]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/result/class_DatabaseResult.php
Copyright updated
[core.git] / inc / classes / main / result / class_DatabaseResult.php
index 69c23ff6952173fa2a423ac902adc59c7e72a953..61d0769540608ca7f211bc2b9931afcf7f2d1a4b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -120,7 +120,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
         * "Iterator" method next() to advance to the next valid entry. This method
         * does also check if result is invalid
         *
-        * @return      $nextValid      Wether the next entry is valid
+        * @return      $nextValid      Whether the next entry is valid
         */
        public function next () {
                // Default is not valid
@@ -177,7 +177,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
        /**
         * Checks if next() and rewind will give a valid result
         *
-        * @return      $isValid Wether the next/rewind entry is valid
+        * @return      $isValid Whether the next/rewind entry is valid
         */
        public function valid () {
                // By default nothing is valid
@@ -194,9 +194,9 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
        }
 
        /**
-        * Determines wether the status of the query was fine (LocalfileDatabase::RESULT_OKAY)
+        * Determines whether the status of the query was fine (LocalfileDatabase::RESULT_OKAY)
         *
-        * @return      $ifStatusOkay   Wether the status of the query was okay
+        * @return      $ifStatusOkay   Whether the status of the query was okay
         */
        public function ifStatusIsOkay () {
                return ((isset($this->resultArray[BaseDatabaseFrontend::RESULT_INDEX_STATUS])) && ($this->resultArray[BaseDatabaseFrontend::RESULT_INDEX_STATUS] === LocalfileDatabase::RESULT_OKAY));
@@ -229,7 +229,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
         * @todo        0% done
         */
        public function searchEntry (LocalSearchCriteria $criteriaInstance) {
-               $this->debugBackTrace(__METHOD__ . ': Unfinished!');
+               $this->debugBackTrace('[' . '[' . __METHOD__ . ':' . __LINE__ . ']:  Unfinished!');
        }
 
        /**
@@ -306,9 +306,9 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
        }
 
        /**
-        * Checks wether we have out-dated entries or not
+        * Checks whether we have out-dated entries or not
         *
-        * @return      $needsUpdate    Wether we have out-dated entries
+        * @return      $needsUpdate    Whether we have out-dated entries
         */
        public function ifDataNeedsFlush () {
                $needsUpdate = (count($this->outDated) > 0);
@@ -337,7 +337,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
         * Find a key inside the result array
         *
         * @param       $key    The key we shall find
-        * @return      $found  Wether the key was found or not
+        * @return      $found  Whether the key was found or not
         */
        public function find ($key) {
                // By default nothing is found