MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_Function_sqlite

Source Location: /MDB2_Driver_sqlite-1.5.0b4/MDB2/Driver/Function/sqlite.php

Class Overview

MDB2_Driver_Function_Common
   |
   --MDB2_Driver_Function_sqlite

MDB2 SQLite driver for the function modules


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
MDB2 SQLite driver for the function modules


[ Top ]


Method Detail

__construct (Constructor)   [line 64]

MDB2_Driver_Function_sqlite __construct( $db_index)

Constructor

Parameters:

   $db_index   — 

[ Top ]

now   [line 79]

string now( [ $type = 'timestamp'])

Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time.
  • Return: to call a variable with the current timestamp
  • Access: public

Parameters:

   $type   — 

[ Top ]

random   [line 134]

return random( )

return string to call a function to get random value inside an SQL statement
  • Return: string to generate float between 0 and 1
  • Access: public

[ Top ]

replace   [line 148]

string replace( $str, $from_str, $to_str)

return string to call a function to get a replacement inside an SQL statement.
  • Return: to call a function to get a replace
  • Access: public

Parameters:

   $str   — 
   $from_str   — 
   $to_str   — 

[ Top ]

substring   [line 117]

string substring( $value, [ $position = 1], [ $length = null])

return string to call a function to get a substring inside an SQL statement
  • Return: to call a function to get a substring
  • Access: public

Parameters:

   $value   — 
   $position   — 
   $length   — 

[ Top ]

unixtimestamp   [line 103]

string unixtimestamp( string $expression)

return string to call a function to get the unix timestamp from a iso timestamp
  • Return: to call a variable with the timestamp
  • Access: public

Parameters:

string   $expression   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.