Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
timemanentryentity.php
1<?php
2
4
5final class TimemanEntryEntity extends Entity
6{
7 const ENTITY_TYPE = 'tm';
8 const MODULE_ID = 'timeman';
9 const XML_ID_PREFIX = 'TIMEMAN_ENTRY_';
10
15 public function canRead($userId)
16 {
17 return true;
18 }
23 public function canAdd($userId)
24 {
25 return $this->canRead($userId);
26 }
27
32 public function canEditOwn($userId)
33 {
34 return true;
35 }
36
41 public function canEdit($userId)
42 {
43 return false;
44 }
45}
canEdit($userId)
const XML_ID_PREFIX
const MODULE_ID
canRead($userId)
canAdd($userId)
const ENTITY_TYPE
canEditOwn($userId)