예제 #1
0
 function UnInstallDB()
 {
     Loader::includeModule($this->MODULE_ID);
     // Drop PersonTable
     Application::getConnection(\Adelshin\Person\PersonTable::getConnectionName())->queryExecute('drop table if exists ' . Base::getInstance('\\Adelshin\\Person\\PersonTable')->getDBTableName());
     // Drop GroupTable
     Application::getConnection(\Adelshin\Person\GroupsTable::getConnectionName())->queryExecute('drop table if exists ' . Base::getInstance('\\Adelshin\\Person\\GroupsTable')->getDBTableName());
     Option::delete($this->MODULE_ID);
 }
예제 #2
0
 public function getArElementsRelation()
 {
     $result = PersonTable::getList(array('select' => array('ID', 'FIRST_NAME', 'LAST_NAME', 'GENDER', 'GROUPS.TITLE'), 'order' => array('ID' => 'DESC')));
     return $result->fetchAll();
 }