%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/modules/socialnetwork/lib/ |
Current File : /home/bitrix/www/bitrix/modules/socialnetwork/lib/log.php |
<?php /** * Bitrix Framework * @package bitrix * @subpackage socialnetwork * @copyright 2001-2012 Bitrix */ namespace Bitrix\Socialnetwork; use Bitrix\Main\Entity; class LogTable extends Entity\DataManager { public static function getTableName() { return 'b_sonet_log'; } public static function getUfId() { return 'SONET_LOG'; } public static function getMap() { $fieldsMap = array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'ENTITY_TYPE' => array( 'data_type' => 'string', ), 'ENTITY_ID' => array( 'data_type' => 'integer', ), 'EVENT_ID' => array( 'data_type' => 'string', ), 'USER_ID' => array( 'data_type' => 'integer', ), 'USER' => array( 'data_type' => 'Bitrix\Main\UserTable', 'reference' => array('=this.USER_ID' => 'ref.ID'), ), 'TITLE' => array( 'data_type' => 'string', ), 'MESSAGE' => array( 'data_type' => 'text', ), 'TEXT_MESSAGE' => array( 'data_type' => 'text', ), 'URL' => array( 'data_type' => 'string', ), 'PARAMS' => array( 'data_type' => 'text', ), 'SOURCE_ID' => array( 'data_type' => 'integer', ), 'LOG_DATE' => array( 'data_type' => 'datetime', ), 'LOG_UPDATE' => array( 'data_type' => 'datetime', ), 'COMMENTS_COUNT' => array( 'data_type' => 'integer', ), 'TRANSFORM' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'RATING_TYPE_ID' => array( 'data_type' => 'string', ), 'RATING_ENTITY_ID' => array( 'data_type' => 'integer', ), ); return $fieldsMap; } }