This object is sent to DB to be executed

uses the exceptions handler
uses translate errors
uses check timezones and rights
package OWR
subpackage DB
used_by \OWR\CLI\Controller
used_by \OWR\Model\Users
used_by \OWR\Controller
used_by \OWR\DAO\Objects
used_by \OWR\DAO\Users
used_by \OWR\DAO\News
used_by \OWR\DAO\news\Contents
used_by \OWR\DAO\news\relations\Tags
used_by \OWR\DAO\news\Relations
used_by \OWR\DAO\news\Tags
used_by \OWR\DAO\Streams
used_by \OWR\DAO\Sessions
used_by \OWR\DAO\users\Tokens
used_by \OWR\DAO\streams\Contents
used_by \OWR\DAO\streams\relations\Name
used_by \OWR\DAO\streams\Groups
used_by \OWR\DAO\streams\Relations
used_by \OWR\User

 Methods

Constructor

__construct(array $datas, array $fields, boolean $force) 
access public
author Pierre-Alain Mignot

Parameters

$datas

array

the datas

$fields

array

the fields

$force

boolean

used to specify that we just check value (and not if empty)

Valid the contents of a parameter following the field definition

_getParameter(array $datas, string $name, array $field) : array
access private
author Pierre-Alain Mignot

Parameters

$datas

array

the datas

$name

string

the name of the field

$field

array

the fields

Returns

arraythe param on success

Checks, sanitizes and sets the datas

_makeRequest(array $datas, array $fields, boolean $force) : array
access private
author Pierre-Alain Mignot

Parameters

$datas

array

the datas

$fields

array

the fields

$force

boolean

used to specify that we just check value (and not if empty)

Returns

arraythe request

 Constants

 

<p>type representing the current timestamp (= time())</p>

PARAM_CURRENT_TIMESTAMP : int
 

<p>type representing an email</p>

PARAM_EMAIL : int
 

<p>type representing a hash (= md5())</p>

PARAM_HASH : int
 

<p>type representing an IP address</p>

PARAM_IP : int
 

<p>type representing a lang</p>

PARAM_LANG : int
   

<p>type representing a null value</p>

PARAM_NULL : int
 

<p>type representing a password</p>

PARAM_PASSWD : int
 

<p>type representing a user rights</p>

PARAM_RIGHTS : int
 

<p>type representing a serialized value</p>

PARAM_SERIALIZED : int
 

<p>type representing a timezone</p>

PARAM_TIMEZONE : int
 

<p>type representing an url</p>

PARAM_URL : int