Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use of scope resolution operator in PHP development example

1030334Aug 2 2013 — edited Aug 8 2013

I am relatively new to OOP in general so this question may sound dumb but

In this documentation:  Query Performance and Prefetching

To quote that text, "

The $db->setPrefetch() call is used to set the prefetch value. The microtime() calls are used to show how long the report took to generate.

A new Db::fetchRow() method is used to get one row at a time. It is called in a loop after the query has been run"

Why the does it use the scope resolution operator? Isn't it used for just static methods and overridden methods.

I do not see any static declaration when this method is entered into class.

To quote the method declaration:

  /** * Fetch a row of data. Call this in a loop after calling Db::execute() * * @return array An array of data for one row of the query */

public function fetchRow() {

$row = oci_fetch_array($this->stid, OCI_ASSOC + OCI_RETURN_NULLS);

return($row);

}

Am I missing something really trivial thing about this concept?

Thank you.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2013
Added on Aug 2 2013
1 comment
1,371 views