ILIAS
Release_5_0_x_branch Revision 61816
|
Class arConverter. More...
Public Member Functions | |
__construct ($table_name, $class_name) | |
readStructure () | |
downloadClassFile () | |
setTableName ($table_name) | |
getTableName () | |
setStructure ($structure) | |
getStructure () | |
addStructure (stdClass $structure) | |
setClassName ($class_name) | |
getClassName () |
Data Fields | |
const | REGEX = "/([a-z]*)\\(([0-9]*)\\)/us" |
Protected Member Functions | |
returnAttributesForField (stdClass $field) |
Static Protected Member Functions | |
static | lookupFieldType ($string) |
static | lookupFieldLength ($string) |
Protected Attributes | |
$table_name = '' | |
$class_name = '' | |
$structure = array() | |
$ids = array() |
Static Protected Attributes | |
static | $field_map |
static | $length_map |
Class arConverter.
$arConverter = new arConverter('my_msql_table_name', 'arMyRecordClass'); $arConverter->readStructure(); $arConverter->downloadClassFile();
Definition at line 16 of file class.arConverter.php.
arConverter::__construct | ( | $table_name, | |
$class_name | |||
) |
$table_name | |
$class_name |
Definition at line 68 of file class.arConverter.php.
References $class_name, $table_name, readStructure(), setClassName(), and setTableName().
arConverter::addStructure | ( | stdClass | $structure | ) |
stdClass | $structure |
Definition at line 252 of file class.arConverter.php.
References $structure.
Referenced by readStructure().
arConverter::downloadClassFile | ( | ) |
Definition at line 84 of file class.arConverter.php.
References $txt, exit, getClassName(), getStructure(), getTableName(), and returnAttributesForField().
arConverter::getClassName | ( | ) |
Definition at line 271 of file class.arConverter.php.
References $class_name.
Referenced by downloadClassFile().
arConverter::getStructure | ( | ) |
Definition at line 244 of file class.arConverter.php.
References $structure.
Referenced by downloadClassFile().
arConverter::getTableName | ( | ) |
Definition at line 228 of file class.arConverter.php.
References $table_name.
Referenced by downloadClassFile(), and readStructure().
|
staticprotected |
$string |
Definition at line 190 of file class.arConverter.php.
References lookupFieldType().
Referenced by returnAttributesForField().
|
staticprotected |
$string |
Definition at line 178 of file class.arConverter.php.
Referenced by lookupFieldLength(), and returnAttributesForField().
arConverter::readStructure | ( | ) |
Definition at line 75 of file class.arConverter.php.
References $res, addStructure(), and getTableName().
Referenced by __construct().
|
protected |
stdClass | $field |
Definition at line 154 of file class.arConverter.php.
References arFieldList\FIELDTYPE, arFieldList\HAS_FIELD, arFieldList\IS_NOTNULL, arFieldList\IS_PRIMARY, arFieldList\IS_UNIQUE, arFieldList\LENGTH, lookupFieldLength(), and lookupFieldType().
Referenced by downloadClassFile().
arConverter::setClassName | ( | $class_name | ) |
string | $class_name |
Definition at line 263 of file class.arConverter.php.
References $class_name.
Referenced by __construct().
arConverter::setStructure | ( | $structure | ) |
array | $structure |
Definition at line 236 of file class.arConverter.php.
References $structure.
arConverter::setTableName | ( | $table_name | ) |
string | $table_name |
Definition at line 220 of file class.arConverter.php.
References $table_name.
Referenced by __construct().
|
protected |
Definition at line 53 of file class.arConverter.php.
Referenced by __construct(), getClassName(), and setClassName().
|
staticprotected |
Definition at line 22 of file class.arConverter.php.
|
protected |
Definition at line 61 of file class.arConverter.php.
|
staticprotected |
Definition at line 34 of file class.arConverter.php.
|
protected |
Definition at line 57 of file class.arConverter.php.
Referenced by addStructure(), getStructure(), and setStructure().
|
protected |
Definition at line 49 of file class.arConverter.php.
Referenced by __construct(), getTableName(), and setTableName().
const arConverter::REGEX = "/([a-z]*)\\(([0-9]*)\\)/us" |
Definition at line 18 of file class.arConverter.php.