Debug::getJsSources

public getJsSources () Returns the javascript sources

Debug::getCssSources

public getCssSources () Returns the css sources

Debug::debugVar

public debugVar (mixed $varz, [mixed $key]) Adds a variable to the debug output

Debug::clearVars

public clearVars () Clears are variables added previously

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::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::numRows

public numRows () Gets number of rows returned by a resultset $result = $connection->query("SELECT * FROM robots ORDER BY name"); echo 'There are ', $result->numRows(), ' rows in the resultset';

Db\Result\Pdo::getInternalResult

public getInternalResult () Gets the internal PDO result object

Db\Result\Pdo::fetchArray

public fetchArray () Returns an array 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_NUM); while ($robot = result->fetchArray()) { print_r($robot); }

Db\Result\Pdo::fetchAll

public fetchAll ([mixed $fetchStyle], [mixed $fetchArgument], [mixed $ctorArgs]) Returns an array of arrays containing all the records in the result 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"); $robots = $result->fetchAll();