uawdijnntqw1x1x1
IP : 18.217.230.80
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
kirov.axolotls.ru
/
bitrix
/
modules
/
imopenlines
/
lib
/
model
/
roleaccess.php
/
/
<?php namespace Bitrix\ImOpenLines\Model; use Bitrix\Main\ArgumentException; use Bitrix\Main\Application; use Bitrix\Main\Entity; class RoleAccessTable extends Entity\DataManager { /** * @inheritdoc */ public static function getTableName() { return 'b_imopenlines_role_access'; } /** * @inheritdoc */ public static function getMap() { return array( 'ID' => new Entity\IntegerField('ID', array( 'primary' => true, 'autocomplete' => true, )), 'ROLE_ID' => new Entity\IntegerField('ROLE_ID', array( 'required' => true, )), 'ACCESS_CODE' => new Entity\StringField('ACCESS_CODE', array( 'required' => true, )), 'ROLE' => new Entity\ReferenceField( 'ROLE', 'Bitrix\ImOpenLines\Model\Role', array('=this.ROLE_ID' => 'ref.ID'), array('join_type' => 'INNER') ) ); } /** * Deletes all records from the table * @return Entity\DeleteResult */ public static function truncate() { $connection = Application::getConnection(); $entity = self::getEntity(); $sql = "TRUNCATE TABLE ".$entity->getDBTableName(); $connection->queryExecute($sql); $result = new Entity\DeleteResult(); return $result; } /** * Deletes all access codes associated with the specified role. * @param int $roleId Id of the role. * @return Entity\DeleteResult * @throws ArgumentException */ public static function deleteByRoleId($roleId) { $roleId = (int)$roleId; if($roleId <= 0) throw new ArgumentException('Role id should be greater than zero', 'roleId'); $connection = Application::getConnection(); $entity = self::getEntity(); $sql = "DELETE FROM ".$entity->getDBTableName()." WHERE ROLE_ID = ".$roleId; $connection->queryExecute($sql); $result = new Entity\DeleteResult(); return $result; } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/modules/imopenlines/lib/model/roleaccess.php