src/libraries/adapters/DatabaseMySql.php
/**
    * Gets diagnostic information for debugging.
    *
    * @return array
    */
Gets diagnostic information for debugging.
@return array
Gets diagnostic information for debugging . @return array
public function diagnostics()
  {
    $utilityObj = new Utility;
    $diagnostics = array();
    $res = $this->db->execute("SELECT * FROM `{$this->mySqlTablePrefix}photo` WHERE owner=:owner LIMIT 1", array(':owner' => $this->owner));
    if($res == 1)
      $diagnostics[] = $utilityObj->diagnosticLine(true, 'Database connectivity is okay.');
    else
      $diagnostics[] = $utilityObj->diagnosticLine(false, 'Could not properly connect to the database.');
    return $diagnostics;
  }
public function diagnostics ( ) { $ utilityObj = new Utility ; $ diagnostics = array ( ) ; $ res = $ this -> db -> execute ( " SELECT * FROM ` { $ this -> mySqlTablePrefix } photo` WHERE owner=:owner LIMIT 1 " , array ( ':owner' => $ this -> owner ) ) ; if ( $ res == 1 ) $ diagnostics [ ] = $ utilityObj -> diagnosticLine ( true , 'Database connectivity is okay.' ) ; else $ diagnostics [ ] = $ utilityObj -> diagnosticLine ( false , 'Could not properly connect to the database.' ) ; return $ diagnostics ; }
Gets diagnostic information for debugging.
Gets diagnostic information for debugging .