Debug::getCssSources

public getCssSources () Returns the css sources

Debug::getVersion

public getVersion () Generates a link to the current version documentation

Debug::getMajorVersion

public getMajorVersion () Returns the major framework’s version

Debug::getJsSources

public getJsSources () Returns the javascript sources

Debug

Source on GitHub Provides debug capabilities to Phalcon applications Methods public setUri (mixed $uri) Change the base URI for static resources public setShowBackTrace (mixed $showBackTrace) Sets if files the exception’s backtrace must be showed public setShowFiles (mixed $showFiles) Set if files part of the backtrace must be shown in the output public setShowFileFragment (mixed $showFileFragment) Sets if files must be completely opened and showed in the output or just the fragment related to

Db\Result\Pdo::getInternalResult

public getInternalResult () Gets the internal PDO result object

Db\Result\Pdo::fetch

public fetch ([mixed $fetchStyle], [mixed $cursorOrientation], [mixed $cursorOffset]) Fetches an array/object of strings that corresponds to the fetched row, or FALSE if there are no more rows. This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode $result = $connection->query("SELECT * FROM robots ORDER BY name"); $result->setFetchMode(Phalcon\Db::FETCH_OBJ); while ($robot = $result->fetch()) { echo $robot->name; }

Db\Result\Pdo::setFetchMode

public setFetchMode (mixed $fetchMode, [mixed $colNoOrClassNameOrObject], [mixed $ctorargs]) Changes the fetching mode affecting Phalcon\Db\Result\Pdo::fetch() //Return array with integer indexes $result->setFetchMode(\Phalcon\Db::FETCH_NUM); //Return associative array without integer indexes $result->setFetchMode(\Phalcon\Db::FETCH_ASSOC); //Return associative array together with integer indexes $result->setFetchMode(\Phalcon\Db::FETCH_BOTH); //Return an object $result->setFetch

Db\Result\Pdo::execute

public execute () Allows to execute the statement again. Some database systems don’t support scrollable cursors, So, as cursors are forward only, we need to execute the cursor again to fetch rows from the begining

Db\Result\Pdo::dataSeek

public dataSeek (mixed $number) Moves internal resultset cursor to another position letting us to fetch a certain row $result = $connection->query("SELECT * FROM robots ORDER BY name"); $result->dataSeek(2); // Move to third row on result $row = $result->fetch(); // Fetch third row