[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/includes/runtime/ -> BaseModel.php (summary)

(no description)

File Size: 89 lines (2 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Vtiger_Base_Model:: (8 methods):
  __construct()
  get()
  getForSql()
  set()
  setData()
  getData()
  has()
  isEmpty()


Class: Vtiger_Base_Model  - X-Ref

Base Model Class

__construct($values=array()   X-Ref
Constructor

param: Array $values

get($key)   X-Ref
Function to get the value for a given key

param: $key
return: Value for the given key

getForSql($key, $skipEmtpy=true)   X-Ref
Function to get the value if its safe to use for SQL Query (column).

param: <String> $key
param: <Boolean> $skipEmpty - Skip the check if string is empty
return: Value for the given key

set($key,$value)   X-Ref
Function to set the value for a given key

param: $key
param: $value
return: Vtiger_Base_Model

setData($values)   X-Ref
Function to set all the values for the Object

param: Array (key-value mapping) $values
return: Vtiger_Base_Model

getData()   X-Ref
Function to get all the values of the Object

return: Array (key-value mapping)

has($key)   X-Ref
Function to check if the key exists.

param: String $key

isEmpty($key)   X-Ref
Function to check if the key is empty.

param: type $key



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1