%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/modules/socialnetwork/lib/ |
Current File : /home/bitrix/www/bitrix/modules/socialnetwork/lib/workgroup.php |
<?php /** * Bitrix Framework * @package bitrix * @subpackage socialnetwork * @copyright 2001-2012 Bitrix */ namespace Bitrix\Socialnetwork; use Bitrix\Main\Entity; use Bitrix\Main\Localization\Loc; use Bitrix\Main\NotImplementedException; Loc::loadMessages(__FILE__); class WorkgroupTable extends Entity\DataManager { const AUTO_MEMBERSHIP_YES = 'Y'; const AUTO_MEMBERSHIP_NO = 'N'; public static function getAutoMembershipValuesAll() { return array(self::AUTO_MEMBERSHIP_NO, self::AUTO_MEMBERSHIP_YES); } public static function getTableName() { return 'b_sonet_group'; } public static function getUfId() { return 'SONET_GROUP'; } public static function getMap() { $fieldsMap = array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'ACTIVE' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'SITE_ID' => array( 'data_type' => 'string', ), 'SUBJECT_ID' => array( 'data_type' => 'integer', ), 'WORKGROUP_SUBJECT' => array( 'data_type' => '\Bitrix\Socialnetwork\WorkgroupSubject', 'reference' => array('=this.SUBJECT_ID' => 'ref.ID') ), 'NAME' => array( 'data_type' => 'string' ), 'DESCRIPTION' => array( 'data_type' => 'text' ), 'KEYWORDS' => array( 'data_type' => 'string' ), 'CLOSED' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'VISIBLE' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'OPENED' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'DATE_CREATE' => array( 'data_type' => 'datetime' ), 'DATE_UPDATE' => array( 'data_type' => 'datetime' ), 'DATE_ACTIVITY' => array( 'data_type' => 'datetime' ), 'IMAGE_ID' => array( 'data_type' => 'integer', ), 'OWNER_ID' => array( 'data_type' => 'integer', ), 'WORKGROUP_OWNER' => array( 'data_type' => '\Bitrix\Main\User', 'reference' => array('=this.OWNER_ID' => 'ref.ID') ), 'INITIATE_PERMS' => array( 'data_type' => 'string' ), 'NUMBER_OF_MEMBERS' => array( 'data_type' => 'integer', ), 'PROJECT' => array( 'data_type' => 'boolean', 'values' => array('N','Y') ), 'PROJECT_DATE_START' => array( 'data_type' => 'datetime' ), 'PROJECT_DATE_FINISH' => array( 'data_type' => 'datetime' ), 'SEARCH_INDEX' => array( 'data_type' => 'text', ), ); return $fieldsMap; } public static function add(array $data) { throw new NotImplementedException("Use CSocNetGroup class."); } public static function update($primary, array $data) { throw new NotImplementedException("Use CSocNetGroup class."); } public static function delete($primary) { throw new NotImplementedException("Use CSocNetGroup class."); } }