Метод | Описание | |
---|---|---|
__construct ( $str_kind ) | Kind is required | |
addBoolean ( $str_name, boolean $bol_index = TRUE ) : |
Add a boolean field to the schema | |
addDatetime ( $str_name, boolean $bol_index = TRUE ) : |
Add a datetime field to the schema | |
addFloat ( $str_name, boolean $bol_index = TRUE ) : |
Add a float|double field to the schema | |
addGeopoint ( $str_name, boolean $bol_index = TRUE ) : |
Add a geopoint field to the schema | |
addInteger ( $str_name, boolean $bol_index = TRUE ) : |
Add an integer field to the schema | |
addProperty ( $str_name, $int_type = self::PROPERTY_STRING, boolean $bol_index = TRUE ) | Add a field to the known field array | |
addString ( $str_name, boolean $bol_index = TRUE ) : |
Add a string field to the schema | |
addStringList ( $str_name, boolean $bol_index = TRUE ) : |
Add a string-list (array of strings) field to the schema | |
createEntity ( ) : |
Create a new instance of this GDS Entity class | |
getKind ( ) : string | Get the Kind | |
getProperties ( ) : array | Get the configured fields | |
setEntityClass ( $str_class ) | Set the class to use when instantiating new Entity objects |
public addBoolean ( $str_name, boolean $bol_index = TRUE ) : |
||
$str_name | ||
$bol_index | boolean | |
Результат |
public addDatetime ( $str_name, boolean $bol_index = TRUE ) : |
||
$str_name | ||
$bol_index | boolean | |
Результат |
public addGeopoint ( $str_name, boolean $bol_index = TRUE ) : |
||
$str_name | ||
$bol_index | boolean | |
Результат |
public addInteger ( $str_name, boolean $bol_index = TRUE ) : |
||
$str_name | ||
$bol_index | boolean | |
Результат |
public addProperty ( $str_name, $int_type = self::PROPERTY_STRING, boolean $bol_index = TRUE ) | ||
$str_name | ||
$int_type | ||
$bol_index | boolean |
public addStringList ( $str_name, boolean $bol_index = TRUE ) : |
||
$str_name | ||
$bol_index | boolean | |
Результат |
final public createEntity ( ) : |
||
Результат |
public getProperties ( ) : array | ||
Результат | array |
final public setEntityClass ( $str_class ) | ||
$str_class |