CDBTree
class CDBTree
Nested Sets
Traits
Methods
Возвращает активное соединение с БД в рамках приложения
Сохраняет пару ключ/значение в БД
Constructor
Returns a Left and Right IDs and Level of an element or false on error
Inserts a record into the table with nested sets
Assigns a node with all its children to another parent
Deletes a record wihtout deleting its children
Deletes a record with all its children
Details
in DbConnection at line 22
final static Connection
getDbConnection()
Возвращает активное соединение с БД в рамках приложения
in DbConnection at line 35
static void
configSet(string $key, miced $value)
Сохраняет пару ключ/значение в БД
in DbConnection at line 47
static mixed
configGet(string $key)
Возвращает значение связанное с ключем из БД
in DbConnection at line 60
static mixed
configGetAll()
Возвращает все ключи/значения из БД
in DbConnection at line 78
static void
configUnset(string $key)
Удаляет пару ключ/значение из БД
at line 58
void
__construct(string $tableName, string $itemId = 'id', array $fieldNames = array())
Constructor
at line 73
array
getNodeInfo(int $ID)
Returns a Left and Right IDs and Level of an element or false on error
at line 89
bool
insert(int $ID, array $data)
Inserts a record into the table with nested sets
at line 124
bool
moveAll($ID, $newParentId)
Assigns a node with all its children to another parent
at line 177
bool
delete(int $ID)
Deletes a record wihtout deleting its children
at line 204
bool
deleteAll(int $ID)
Deletes a record with all its children