public function getValue ($params, $fetchMode = \PDO::FETCH_ASSOC, &$db = FALSE)
	{
		
		// Get database slave for read

		if ($db === FALSE)
		{
			$db	=& self::_getDbSlave ();
		}
		
		// Set table

		$params['from']	= '`' . static::$dbTable . '`';
		
		// Return value

		return $db->getValue ($params, $fetchMode);

	}
public function getValue ($params, $fetchMode = \PDO::FETCH_ASSOC, &$db = FALSE)
	{
		
		// Get database slave for read

		if ($db === FALSE)
		{
			$db	=& self::_getDbSlave ();
		}
		
		// Set table

		$params['from']	= '`' . static::$dbTable . '`';
		
		// Return value

		return $db->getValue ($params, $fetchMode);

	}
public function getValue ( $ params , $ fetchMode = \ PDO :: FETCH_ASSOC , & $ db = FALSE ) { // Get database slave for read if ( $ db === FALSE ) { $ db = & self :: _getDbSlave ( ) ; } // Set table $ params [ 'from' ] = '`' . static :: $ dbTable . '`' ; // Return value return $ db -> getValue ( $ params , $ fetchMode ) ; }
Return a single row
@param array $params Parameter array
@param int $fetchMode PDO fetch mode, default to assoc
@param \PDO $db Database connection to use, default to slave resource
@return mixed
Return a single row